Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.FrobeniusFixedLifts |
| 2 | |
| 3 | /-! # Finite Field Lift -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFieldLift |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Canonical lifting of finite-field maps through nil ideals |
| 11 | |
| 12 | The Frobenius-fixed subring isomorphism constructs the lift. Uniqueness comes |
| 13 | from the fact that every element of the finite source satisfies x^q = x. |
| 14 | -/ |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.FrobeniusFixedLifts |
| 17 | |
| 18 | variable (p : ℕ) [Fact p.Prime] |
| 19 | variable (k : Type*) [Field k] [Fintype k] [CharP k p] |
| 20 | |
| 21 | def degree : ℕ+ := (FiniteField.card k p).choose |
| 22 | |
| 23 | omit [Fact p.Prime] in |
| 24 | theorem degree_card : Fintype.card k = p ^ (degree p k : ℕ) := |
| 25 | (FiniteField.card k p).choose_spec.2 |
| 26 | |
| 27 | variable {R S : Type*} [CommRing R] [CharP R p] [CommRing S] [CharP S p] |
| 28 | |
| 29 | def toFixed (κ : k →+* S) : k →+* FrobeniusFixedLifts.fixedSubring p (degree p k) S where |
| 30 | toFun a := ⟨κ a, by |
| 31 | change κ a ^ (p ^ (degree p k : ℕ)) = κ a |
| 32 | rw [← degree_card, ← map_pow, FiniteField.pow_card]⟩ |
| 33 | map_zero' := Subtype.ext (map_zero κ) |
| 34 | map_one' := Subtype.ext (map_one κ) |
| 35 | map_add' a b := Subtype.ext (map_add κ a b) |
| 36 | map_mul' a b := Subtype.ext (map_mul κ a b) |
| 37 | |
| 38 | variable (f : R →+* S) (hsurj : Function.Surjective f) |
| 39 | (hnil : ∀ r : R, f r = 0 → IsNilpotent r) |
| 40 | |
| 41 | def lift (κ : k →+* S) : k →+* R := |
| 42 | (FrobeniusFixedLifts.fixedSubring p (degree p k) R).subtype.comp |
| 43 | ((FrobeniusFixedLifts.fixedEquiv p (degree p k) (degree p k).pos f hnil hsurj).symm.toRingHom.comp (toFixed p k κ)) |
| 44 | |
| 45 | theorem lift_spec (κ : k →+* S) (a : k) : f (lift p k f hsurj hnil κ a) = κ a := |
| 46 | congrArg Subtype.val |
| 47 | ((FrobeniusFixedLifts.fixedEquiv p (degree p k) (degree p k).pos f hnil hsurj).apply_symm_apply (toFixed p k κ a)) |
| 48 | |
| 49 | theorem lift_pow (κ : k →+* S) (a : k) : |
| 50 | lift p k f hsurj hnil κ a ^ (p ^ (degree p k : ℕ)) = lift p k f hsurj hnil κ a := |
| 51 | ((FrobeniusFixedLifts.fixedEquiv p (degree p k) (degree p k).pos f hnil hsurj).symm (toFixed p k κ a)).property |
| 52 | |
| 53 | theorem lift_unique (κ : k →+* S) (g : k →+* R) (hg : ∀ a, f (g a) = κ a) : |
| 54 | g = lift p k f hsurj hnil κ := by |
| 55 | apply RingHom.ext |
| 56 | intro a |
| 57 | have hgpow : g a ^ (p ^ (degree p k : ℕ)) = g a := by |
| 58 | rw [← degree_card, ← map_pow, FiniteField.pow_card] |
| 59 | let x : FrobeniusFixedLifts.fixedSubring p (degree p k) R := ⟨g a, hgpow⟩ |
| 60 | let y : FrobeniusFixedLifts.fixedSubring p (degree p k) R := |
| 61 | ⟨lift p k f hsurj hnil κ a, lift_pow p k f hsurj hnil κ a⟩ |
| 62 | have hxy : FrobeniusFixedLifts.fixedMap p (degree p k) f x = FrobeniusFixedLifts.fixedMap p (degree p k) f y := |
| 63 | Subtype.ext ((hg a).trans (lift_spec p k f hsurj hnil κ a).symm) |
| 64 | exact congrArg Subtype.val (FrobeniusFixedLifts.fixedMap_injective p (degree p k) (degree p k).pos f hnil hxy) |
| 65 | |
| 66 | theorem lift_natural (κ : k →+* S) (a : R →+* R) (b : S →+* S) |
| 67 | (h : ∀ r : R, f (a r) = b (f r)) (x : k) : |
| 68 | a (lift p k f hsurj hnil κ x) = lift p k f hsurj hnil (b.comp κ) x := by |
| 69 | have he : a.comp (lift p k f hsurj hnil κ) = lift p k f hsurj hnil (b.comp κ) := by |
| 70 | apply lift_unique |
| 71 | intro z |
| 72 | exact (h _).trans (congrArg b (lift_spec p k f hsurj hnil κ z)) |
| 73 | exact DFunLike.congr_fun he x |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFieldLift |