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.AlgebraicGeometry.Isogenies.NeighborCounting.EtaleLineSumCounts |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ThreeParameterCounts |
| 3 | |
| 4 | /-! # Canonical Values -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.CanonicalValues |
| 11 | |
| 12 | /-! Evaluate the original three finite parameter counts at the native |
| 13 | canonical targets, retaining both line permutations and repeated values. -/ |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ThreeParameterCounts OAI.AlgebraicGeometry.Isogenies.NeighborCounting.EtaleLineSumCounts |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | variable {q : ℕ} [Fact q.Prime] {X : Type} |
| 19 | attribute [local instance] Classical.propDecidable |
| 20 | local instance : Fintype (Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) := Fintype.ofFinite _ |
| 21 | |
| 22 | def lineParameterValue (fallback : X) (f : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 23 | (e : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) |
| 24 | (U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) : X := |
| 25 | if h : Module.finrank (ZMod q) U = 1 then f (e ⟨U, h⟩) else fallback |
| 26 | |
| 27 | def canonicalParameterValue (x z xz : X) |
| 28 | (y xy : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 29 | (e e' : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) |
| 30 | (i : Fin 3) (U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) (flag : Bool) : X := |
| 31 | Fin.cases (if flag then x else lineParameterValue x y e U) |
| 32 | (Fin.cases (if flag then lineParameterValue xz xy e' U else z) (fun _ => xz)) i |
| 33 | |
| 34 | theorem canonicalParameterValue_zero (x z xz : X) (y xy : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 35 | (e e' : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) |
| 36 | (U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) (flag : Bool) : |
| 37 | canonicalParameterValue x z xz y xy e e' 0 U flag = |
| 38 | if flag then x else lineParameterValue x y e U := rfl |
| 39 | |
| 40 | theorem canonicalParameterValue_one (x z xz : X) (y xy : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 41 | (e e' : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) |
| 42 | (U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) (flag : Bool) : |
| 43 | canonicalParameterValue x z xz y xy e e' 1 U flag = |
| 44 | if flag then lineParameterValue xz xy e' U else z := rfl |
| 45 | |
| 46 | theorem canonicalParameterValue_two (x z xz : X) (y xy : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 47 | (e e' : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) |
| 48 | (U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q)) (flag : Bool) : |
| 49 | canonicalParameterValue x z xz y xy e e' 2 U flag = xz := rfl |
| 50 | |
| 51 | theorem lineParameterValue_line (fallback : X) (f : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 52 | (e : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) (J : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) : |
| 53 | lineParameterValue fallback f e J.val = f (e J) := by |
| 54 | simp only [lineParameterValue, dite_eq_left J.property] |
| 55 | rfl |
| 56 | |
| 57 | theorem lineParameterValue_sum (fallback : X) (f : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 58 | (e : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) : |
| 59 | (∑ U : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q), |
| 60 | if Module.finrank (ZMod q) U = 1 then |
| 61 | ({lineParameterValue fallback f e U} : Multiset X) else 0) = AbelianScheme.FrobeniusKernel.OperatorSpecification.Construction.etaleLineMultiset f := by |
| 62 | apply EtaleLineSumCounts.line_sum_eq_of_equiv _ f e |
| 63 | intro J |
| 64 | simp only [lineParameterValue, dite_eq_left J.property] |
| 65 | rfl |
| 66 | |
| 67 | theorem original_canonical_parameter_counts |
| 68 | (A : Fin 3 → Type) [∀ i, Fintype (A i)] |
| 69 | (coordinates : ∀ i : Fin 3, A i ≃ |
| 70 | {J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q) // |
| 71 | Module.finrank (ZMod q) J = i.val + 1}) |
| 72 | (x z xz : X) (y xy : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q → X) |
| 73 | (e e' : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q ≃ AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q) : |
| 74 | ThreeParameterCounts.originalLabeledParameters A coordinates (canonicalParameterValue x z xz y xy e e') 0 = |
| 75 | {x} + q • AbelianScheme.FrobeniusKernel.OperatorSpecification.Construction.etaleLineMultiset y ∧ |
| 76 | ThreeParameterCounts.originalLabeledParameters A coordinates (canonicalParameterValue x z xz y xy e e') 1 = |
| 77 | AbelianScheme.FrobeniusKernel.OperatorSpecification.Construction.etaleLineMultiset xy + q ^ 2 • {z} ∧ |
| 78 | ThreeParameterCounts.originalLabeledParameters A coordinates (canonicalParameterValue x z xz y xy e e') 2 = |
| 79 | {xz} := by |
| 80 | have hdim : Module.finrank (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q) = 2 := by simp |
| 81 | have h := ThreeParameterCounts.original_three_parameter_counts A coordinates |
| 82 | (canonicalParameterValue x z xz y xy e e') hdim |
| 83 | simpa only [canonicalParameterValue_zero, canonicalParameterValue_one, canonicalParameterValue_two, |
| 84 | Bool.false_eq_true, ↓reduceIte, lineParameterValue_sum, |
| 85 | Nat.card_eq_fintype_card, ZMod.card] using h |
| 86 | |
| 87 | end AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.CanonicalValues |
| 88 | |
| 89 | namespace AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.CanonicalValues.CoordinateCases |
| 90 | |
| 91 | /-! The exhaustive projection and identity-flag cases of each original |
| 92 | rank-three coordinate parameter. -/ |
| 93 | |
| 94 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCounts.Construction |
| 95 | |
| 96 | variable {q : ℕ} [Fact q.Prime] |
| 97 | attribute [local instance] Classical.propDecidable |
| 98 | |
| 99 | abbrev projection (J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q)) := |
| 100 | J.map (LinearMap.fst (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q) (ZMod q)) |
| 101 | |
| 102 | abbrev identityFlag (J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q)) : Bool := |
| 103 | decide (SubspaceCounts.Construction.identityLine ≤ J) |
| 104 | |
| 105 | theorem line_projection_cases (J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q)) |
| 106 | (hJ : Module.finrank (ZMod q) J = 1) : |
| 107 | (projection J = ⊥ ∧ identityFlag J = true) ∨ |
| 108 | ∃ L : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q, projection J = L.val ∧ identityFlag J = false := by |
| 109 | rcases SubspaceCounts.Construction.line_cases J hJ with h | ⟨hd, hdim⟩ |
| 110 | · left |
| 111 | subst J |
| 112 | constructor |
| 113 | · apply le_antisymm ?_ bot_le |
| 114 | intro z hz |
| 115 | obtain ⟨w, hw, rfl⟩ := Submodule.mem_map.mp hz |
| 116 | exact hw |
| 117 | · exact decide_eq_true le_rfl |
| 118 | · exact Or.inr ⟨⟨projection J, hdim⟩, rfl, |
| 119 | decide_eq_false (SubspaceCounts.Construction.identityLine_not_le_of_disjoint J hd)⟩ |
| 120 | |
| 121 | theorem plane_projection_cases (J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q)) |
| 122 | (hJ : Module.finrank (ZMod q) J = 2) : |
| 123 | (∃ L : AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtaleLine q, projection J = L.val ∧ identityFlag J = true) ∨ |
| 124 | (projection J = ⊤ ∧ identityFlag J = false) := by |
| 125 | have hdim : Module.finrank (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q) = 2 := by simp |
| 126 | rcases SubspaceCounts.Construction.plane_cases hdim J hJ with ⟨hc, hr⟩ | ⟨hd, hp⟩ |
| 127 | · exact Or.inl ⟨⟨projection J, hr⟩, rfl, decide_eq_true hc⟩ |
| 128 | · exact Or.inr ⟨hp, decide_eq_false (SubspaceCounts.Construction.identityLine_not_le_of_disjoint J hd)⟩ |
| 129 | |
| 130 | theorem full_projection_case (J : Submodule (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q × ZMod q)) |
| 131 | (hJ : Module.finrank (ZMod q) J = 3) : |
| 132 | projection J = ⊤ ∧ identityFlag J = true := by |
| 133 | have hdim : Module.finrank (ZMod q) (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.ActiveEtalePlane q) = 2 := by simp |
| 134 | have h := SubspaceCounts.Construction.full_kernel_unique hdim J hJ |
| 135 | subst J |
| 136 | simp [projection, identityFlag, LinearMap.range_eq_top.mpr LinearMap.fst_surjective] |
| 137 | |
| 138 | end AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.CanonicalValues.CoordinateCases |
| 139 | |
| 140 | end |
| 141 | |
| 142 | end OAI |