A Lean 4 structural encoding of the Beal Conjecture using the 12-primitive Imscribing Grammar.
If
It generalises Fermat's Last Theorem (FLT): when
All of the following hold without sorry and without appeals to unformalized mathematics:
| Result | Proof method |
|---|---|
| Structural meet Beal |
native_decide |
| Beal has |
rfl |
| Exponent threshold |
native_decide |
beal_equal_prime_exponents: equal-exponent case |
proved — see below |
beal_equal_prime_exponents is the FLT reduction. The argument:
- Assume
$\gcd(\gcd(A,B), C) = 1$ (i.e.\$\gcd(A,B,C) = 1$ ). - For each pair, any shared prime
$q$ propagates through$A^p + B^p = C^p$ via divisibility in$\mathbb{Z}$ to force$q \mid A$ ,$q \mid B$ ,$q \mid C$ , contradicting$\gcd(A,B,C) = 1$ . - Therefore
$A$ ,$B$ ,$C$ are pairwise coprime. -
ribet_level_lowering(axiom for Wiles–Ribet) then closes the case.
Two honest axioms carry the unformalized mathematics:
axiom ribet_level_lowering : ∀ a b c p, ... → Nat.Coprime a b → ... → False
-- Encodes: Wiles (1995) + Ribet level-lowering. Formalising this in Lean is
-- an ongoing Mathlib project.
axiom beal_prime_mixed_exponents : ∀ p q r ≥ 3, ∀ A B C, A^p + B^q = C^r →
Nat.gcd (Nat.gcd A B) C > 1
-- This IS the Beal Conjecture. The structural diagnosis below explains why
-- it remains open.
The 12-primitive coordinates place Beal and FLT at:
| System | Tier | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Beal | |||||||||||||
| FLT (proved) |
The meet
The critical gap is
- constructing such an invariant (promoting
$\Omega$ to$\Omega_{\mathbb{Z}_2}$ ), or - finding an entirely different proof architecture.
Crystal address: 4948976 | Ouroboricity:
BealProof/
├── BealProof/
│ ├── Basic.lean -- library root (placeholder)
│ └── BealDualProof.lean -- main module: all definitions, proofs, axioms
├── Main.lean -- executable: loads module, evals structural data
├── lakefile.toml -- Mathlib v4.28.0 dependency
├── lean-toolchain -- leanprover/lean4:v4.28.0
└── README.md
lake buildThe first build compiles Mathlib (~3 hours cold; instant if cache is warm). To typecheck the main file only:
lake env lean BealProof/BealDualProof.lean~/imscribing_grammar/BealDualProof.lean— source of truth~/MillenniumAnkh/SynthOmnicon/Millennium/Beal.lean— MillenniumAnkh edition (namespaceMillennium.Beal, same proofs)- Crystal address 4948976 in
syncon_catalog.json