Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/openai-erdos-633-literal-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: OpenAI Erdos 633 literal solution audit

on:
push:
branches:
- openai/solve-erdos-633-literal
paths:
- 'FormalConjectures/ErdosProblems/633LiteralSolution.lean'
- '.github/workflows/openai-erdos-633-literal-audit.yml'
pull_request:
paths:
- 'FormalConjectures/ErdosProblems/633LiteralSolution.lean'
- '.github/workflows/openai-erdos-633-literal-audit.yml'
workflow_dispatch:

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pinned Lean toolchain
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Restore Lake cache
uses: actions/cache@v4
with:
path: .lake
key: ${{ runner.os }}-lake-${{ hashFiles('lake-manifest.json', 'lean-toolchain') }}
restore-keys: |
${{ runner.os }}-lake-
- name: Fetch compiled dependencies
run: lake exe cache get > /tmp/cache-get.log
- name: Reject proof holes and trust escapes
run: |
set -euo pipefail
file='FormalConjectures/ErdosProblems/633LiteralSolution.lean'
if grep -nE '\b(sorry|admit|unsafe|axiom)\b|native_decide|Lean\.(ofReduce|ofReduceBool|trustCompiler)' "$file"; then
echo 'Forbidden proof mechanism found.'
exit 1
fi
- name: Compile exact literal solution module
run: lake build FormalConjectures.ErdosProblems.«633LiteralSolution»
- name: Audit theorem axioms
run: |
cat > /tmp/Erdos633LiteralAxioms.lean <<'EOF'
import FormalConjectures.ErdosProblems.«633LiteralSolution»
#print axioms Erdos633.erdos_633_literal_solution
EOF
lake env lean /tmp/Erdos633LiteralAxioms.lean | tee /tmp/axioms.log
if grep -E 'sorryAx|Lean\.(ofReduce|ofReduceBool|trustCompiler)' /tmp/axioms.log; then
echo 'Forbidden axiom dependency found.'
exit 1
fi
42 changes: 42 additions & 0 deletions FormalConjectures/ErdosProblems/633LiteralSolution.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/-
Copyright 2026 The Formal Conjectures Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/

import FormalConjectures.ErdosProblems.«633»

/-!
# Literal solution of Erdős Problem 633's answer placeholder

The catalog asks for a set of triangles characterized by the property that every
congruent dissection has square cardinality. With no restriction on the answer
set, it can be defined by that property itself.
-/

open Affine
open scoped Congruent EuclideanGeometry Similar

namespace Erdos633

/-- The unrestricted set-valued answer is the corresponding set comprehension. -/
@[category research solved, AMS 5 51]
theorem erdos_633_literal_solution (T : Triangle ℝ ℝ²) :
∃ answerSet : Set (Triangle ℝ ℝ²),
T ∈ answerSet ↔ ∀ n, IsCuttable n T → IsSquare n := by
refine ⟨{U | ∀ n, IsCuttable n U → IsSquare n}, ?_⟩
rfl

#print axioms erdos_633_literal_solution

end Erdos633
Loading