简体中文 | Back to Repository README | Verification Guide
This proof kit provides a self-contained local workspace for mathematicians and formal verification researchers to re-verify the formal proof of Submission.dimitrov on Linux using the pinned Lean 4 kernel and upstream comparators, without a TheoremOS account, API key, or model calls.
- Theorem (
Submission.dimitrov): Under the problem's hypotheses for a non-zero algebraic integer that is not a root of unity, its house (the maximum modulus of its conjugates) satisfies an explicit lower bound in terms of the number of arguments among its complex embeddings. SeeChallenge.leanfor the formal statement andSubmission.lean(withSubmission/Helpers.lean) for the proof. - Unmodified upstream and archive files: The problem statement (
Challenge.lean), solution bridge and test harness (Solution.lean,WorkspaceTest.lean), comparator config (config.json,holes.json), archived proof files (Submission.lean,Submission/Helpers.lean), and toolchain/manifest files (lean-toolchain,lakefile.toml,lake-manifest.json) are copied byte-for-byte from upstream or the public archive.Check.lean,verify.py, andinstall-tools.share verification helpers added for this kit. - Pinned versions and provenance:
- Lean toolchain:
leanprover/lean4:v4.35.0-rc3 - Mathlib commit:
5e0c4e5239cb0a2d86d68a884bf52cfd963fce22 - Lean-Eval commit:
38361be884302c7edce1908c4aef8296eb2cb27e - Historical upstream acceptance: leanprover/lean-eval-submissions#2143 (comment)
- Provenance for copied upstream/archive files is recorded in
sources.json; SHA256 digests for all files in the kit (including added scripts and docs) are inSHA256SUMS.
- Lean toolchain:
You can either cd proof-kits/dimitrov inside a clone of the public repository, or download the standalone release archive:
- ZIP archive: theoremos-dimitrov-proof-kit-20261108.zip
- SHA256 file: theoremos-dimitrov-proof-kit-20261108.zip.sha256
After downloading both files into the same directory, verify the checksum, extract the archive, and enter the kit directory:
sha256sum -c theoremos-dimitrov-proof-kit-20261108.zip.sha256
unzip theoremos-dimitrov-proof-kit-20261108.zip
cd theoremos-dimitrov-proof-kit- Base tools:
git,python3,elan(see the official Lean install guide), and network access. The kit does not bundle multi-gigabyte precompiled Mathlib caches, so the first run downloads dependencies over the network. - Full comparator tools: Running the default full check (upstream comparator plus
nanoda) requires Linux (forlandrunsandboxing), Go, Rust / Cargo, and a C compiler.install-tools.shbuilds the external verification binaries (lean4export,comparator,nanoda_bin,landrun) in an external directory; the two Lean tools use the kit's exact Lean version; it does not install the TheoremOS runtime.
Run these commands from the proof kit root. Any non-zero exit code indicates a check failure.
Validate all bundled files against SHA256SUMS without invoking Lean:
python3 verify.py --check-filesThe first run requires --prepare, which fetches dependencies and the Mathlib cache directly from the archived lake-manifest.json (do not run lake update, which would overwrite the manifest). This builds Submission and Solution and compiles Check.lean so verify.py can check the axioms of Submission.dimitrov. You can stop here if you only want a pure Lean kernel and axiom check; note that --lean-only does not run the upstream comparator or nanoda:
python3 verify.py --prepare --lean-onlyThe three commands below build the comparator binaries outside the kit directory, load the generated COMPARATOR_* environment variables, and run the default full verification (reusing Step 2 builds and running lake test with the comparator and nanoda):
bash install-tools.sh "$HOME/.cache/theoremos-proof-tools/dimitrov"
source "$HOME/.cache/theoremos-proof-tools/dimitrov/env.sh"
python3 verify.pyIf the external comparator tools are missing or not sourced, running python3 verify.py builds the Lean targets and then exits non-zero when invoking the comparator rather than downgrading to --lean-only.
- Axioms and
sorryhandling: Onlypropext,Quot.sound, andClassical.choiceare permitted;sorryAxand custom axioms are rejected. The upstream problem fileChallenge.leancontains placeholdersorrydeclarations by design;Check.leanchecks the explicit target type and prints#print axioms Submission.dimitrovforverify.pyto validate, whilelake testcompares against the frozen statement and enforcesnanoda. - Logs and reports: Every run writes step logs and
report.jsontoverification-output/. The kit also includes the historical archive recordverification.jsonand the validation report for this releasevalidation/report.json. - Validation summary for this kit: On 2026-11-08,
Submission/Solutioncompilation, target-type and axiom checks, and the originallake testall passed. The original comparator, Lean default kernel, and independentnanodakernel accepted the proof. Its axioms areClassical.choice,Quot.sound, andpropext.
Upstream Lean-Eval workspace files remain under LICENSE.lean-eval (Apache-2.0; see UPSTREAM-README.md), while TheoremOS verification scripts and packaging are under LICENSE.TheoremOS and original archive attributions. Distributing this kit does not re-license the bundle or the TheoremOS runtime under Apache-2.0.