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.AbelianScheme.CentralAction.Composition |
| 2 | |
| 3 | /-! # Automorphisms -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Automorphisms.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Integral central correspondences are actual automorphisms. Their |
| 10 | complementary exponents multiply to a power of the q-marking shift. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | def natCentralType {s : ℕ} (a : Fin s → ℕ) (h : ℕ) (ha : ∀ v, a v ≤ h) : TateComparison.Local.IntegralType s := |
| 15 | ⟨CentralRepresentatives.Construction.centralType (fun v => a v) h, by |
| 16 | refine ⟨Int.natCast_nonneg h, ?_⟩ |
| 17 | intro v i |
| 18 | exact ⟨Int.natCast_nonneg _, Int.ofNat_le.mpr (ha v)⟩⟩ |
| 19 | |
| 20 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 21 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 22 | (D : TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 23 | (hgeometry : D.HasIntegralModelGeometry) (hgood : D.IsGoodCompletelySplitPrime) |
| 24 | (hIsogenyQuotient : D.RealizesIsogenyQuotient) (A : Interface.Construction.ActionData D) |
| 25 | (hTateComparison : Interface.Construction.Conclusion D hgeometry hgood hIsogenyQuotient A) |
| 26 | |
| 27 | def natCentralMap (a : Fin s → ℕ) (h : ℕ) (ha : ∀ v, a v ≤ h) : End D.space := |
| 28 | PEL.Construction.centralModuliMap D hgeometry hIsogenyQuotient hTateComparison.flags (natCentralType a h ha) (fun v => a v) |
| 29 | (fun _ _ => rfl) |
| 30 | |
| 31 | theorem natCentralMap_comp (a b : Fin s → ℕ) (h k : ℕ) |
| 32 | (ha : ∀ v, a v ≤ h) (hb : ∀ v, b v ≤ k) : |
| 33 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha ≫ |
| 34 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison b k hb = |
| 35 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun v => a v + b v) (h + k) |
| 36 | (fun v => Nat.add_le_add (ha v) (hb v)) := by |
| 37 | have hw : (natCentralType (fun v => a v + b v) (h + k) |
| 38 | (fun v => Nat.add_le_add (ha v) (hb v))).val = |
| 39 | CentralRepresentatives.Construction.centralType (fun v => (a v : ℤ) + b v) ((h : ℤ) + k) := by |
| 40 | simp only [natCentralType, Nat.cast_add] |
| 41 | exact Composition.Construction.centralModuliMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 42 | (natCentralType a h ha) (natCentralType b k hb) |
| 43 | (natCentralType (fun v => a v + b v) (h + k) (fun v => Nat.add_le_add (ha v) (hb v))) |
| 44 | (fun v => a v) (fun v => b v) h k rfl rfl hw |
| 45 | |
| 46 | theorem natCentralMap_scalar : |
| 47 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun _ => 1) 2 (by intro; omega) = |
| 48 | A.markingShift.hom := by |
| 49 | obtain ⟨_, he⟩ := Interface.Construction.correspondenceMap_of_graph |
| 50 | (D.correspondence (TateComparison.Local.IntegralType.central s)) A.markingShift hTateComparison.scalarGraph |
| 51 | exact he |
| 52 | |
| 53 | theorem natCentralMap_zero : |
| 54 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun _ => 0) 0 (fun _ => le_rfl) = |
| 55 | 𝟙 D.space := by |
| 56 | have hc := natCentralMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 57 | (fun _ => 1) (fun _ => 0) 2 0 (by intro; omega) (fun _ => le_rfl) |
| 58 | simp only [Nat.add_zero] at hc |
| 59 | rw [natCentralMap_scalar] at hc |
| 60 | apply (cancel_epi A.markingShift.hom).mp |
| 61 | simpa only [Category.comp_id] using hc |
| 62 | |
| 63 | /-- Iteration of an actual central automorphism is the correspondence |
| 64 | whose chosen and opposite exponents have all been multiplied by n. -/ |
| 65 | theorem natCentralMap_pow (a : Fin s → ℕ) (h : ℕ) (ha : ∀ v, a v ≤ h) (n : ℕ) : |
| 66 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha ^ n = |
| 67 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun v => a v * n) (h * n) |
| 68 | (fun v => Nat.mul_le_mul_right n (ha v)) := by |
| 69 | induction n with |
| 70 | | zero => |
| 71 | simp only [pow_zero, Nat.mul_zero] |
| 72 | exact (natCentralMap_zero D hgeometry hgood hIsogenyQuotient A hTateComparison).symm |
| 73 | | succ n ih => |
| 74 | rw [pow_succ', End.mul_def, ih] |
| 75 | have hc := natCentralMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 76 | (fun v => a v * n) a (h * n) h (fun v => Nat.mul_le_mul_right n (ha v)) ha |
| 77 | simpa only [Nat.mul_add, Nat.mul_one] using hc |
| 78 | |
| 79 | theorem natCentralMap_scalar_pow (n : ℕ) : |
| 80 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun _ => n) (2 * n) (by intro; omega) = |
| 81 | End.of A.markingShift.hom ^ n := by |
| 82 | induction n with |
| 83 | | zero => exact natCentralMap_zero D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 84 | | succ n ih => |
| 85 | have hc := natCentralMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 86 | (fun _ => n) (fun _ => 1) (2 * n) 2 (by intro; omega) (by intro; omega) |
| 87 | have hr : 2 * n + 2 = 2 * (n + 1) := by omega |
| 88 | simp only [hr] at hc |
| 89 | rw [← hc, ih, natCentralMap_scalar, pow_succ', End.mul_def] |
| 90 | |
| 91 | /-- Every integral central moduli map is an automorphism on all components. -/ |
| 92 | theorem natCentralMap_isIso (a : Fin s → ℕ) (h : ℕ) (ha : ∀ v, a v ≤ h) : |
| 93 | IsIso (natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha) := by |
| 94 | let f : End D.space := natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha |
| 95 | let g : End D.space := natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun v => h - a v) h |
| 96 | (fun v => Nat.sub_le _ _) |
| 97 | let p : End D.space := natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun _ => h) (2 * h) |
| 98 | (by intro; omega) |
| 99 | have hfg : f ≫ g = p := by |
| 100 | have hc := natCentralMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison a (fun v => h - a v) h h |
| 101 | ha (fun v => Nat.sub_le _ _) |
| 102 | simpa only [Nat.add_sub_of_le (ha _), ← two_mul] using hc |
| 103 | have hgf : g ≫ f = p := by |
| 104 | have hc := natCentralMap_comp D hgeometry hgood hIsogenyQuotient A hTateComparison (fun v => h - a v) a h h |
| 105 | (fun v => Nat.sub_le _ _) ha |
| 106 | simpa only [Nat.sub_add_cancel (ha _), ← two_mul] using hc |
| 107 | have hcomm : Commute (f : End D.space) g := by |
| 108 | change g ≫ f = f ≫ g |
| 109 | rw [hgf, hfg] |
| 110 | have hunit : IsUnit (f * g : End D.space) := by |
| 111 | rw [End.mul_def, hgf] |
| 112 | change IsUnit (natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison (fun _ => h) (2 * h) _) |
| 113 | rw [natCentralMap_scalar_pow] |
| 114 | exact ((isUnit_iff_isIso (End.of A.markingShift.hom)).mpr inferInstance).pow h |
| 115 | exact (isUnit_iff_isIso f).mp (hcomm.isUnit_mul_iff.mp hunit).1 |
| 116 | |
| 117 | def natCentralAutomorphism (a : Fin s → ℕ) (h : ℕ) (ha : ∀ v, a v ≤ h) : Aut D.space := by |
| 118 | have := natCentralMap_isIso D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha |
| 119 | exact asIso (natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison a h ha) |
| 120 | |
| 121 | theorem localType_ext {u v : TateComparison.Local.LocalType s} (hm : u.multiplier = v.multiplier) |
| 122 | (he : u.exponent = v.exponent) : u = v := by |
| 123 | cases u |
| 124 | cases v |
| 125 | cases hm |
| 126 | cases he |
| 127 | rfl |
| 128 | |
| 129 | theorem centralModuliMap_isIso (t : TateComparison.Local.IntegralType s) (a : Fin s → ℤ) |
| 130 | (ha : ∀ v i, t.val.exponent v i = a v) : |
| 131 | IsIso (PEL.Construction.centralModuliMap D hgeometry hIsogenyQuotient hTateComparison.flags t a ha) := by |
| 132 | let aN : Fin s → ℕ := fun v => (a v).toNat |
| 133 | let hN := t.val.multiplier.toNat |
| 134 | have hnonneg (v : Fin s) : 0 ≤ a v := by |
| 135 | rw [← ha v 0] |
| 136 | exact (t.property.2 v 0).1 |
| 137 | have hab : ∀ v, aN v ≤ hN := by |
| 138 | intro v |
| 139 | apply Int.toNat_le_toNat |
| 140 | rw [← ha v 0] |
| 141 | exact (t.property.2 v 0).2 |
| 142 | have ht : t = natCentralType aN hN hab := by |
| 143 | apply Subtype.ext |
| 144 | apply localType_ext |
| 145 | · exact (Int.toNat_of_nonneg t.property.1).symm |
| 146 | · funext v i |
| 147 | rw [ha v i] |
| 148 | exact (Int.toNat_of_nonneg (hnonneg v)).symm |
| 149 | have := PEL.Construction.central_correspondence_source_isIso D hgeometry hIsogenyQuotient hTateComparison.flags t a ha |
| 150 | have hm : PEL.Construction.centralModuliMap D hgeometry hIsogenyQuotient hTateComparison.flags t a ha = |
| 151 | natCentralMap D hgeometry hgood hIsogenyQuotient A hTateComparison aN hN hab := by |
| 152 | apply (cancel_epi (D.correspondence t).source).mp |
| 153 | rw [PEL.Construction.centralModuliMap_source] |
| 154 | rw [ht] |
| 155 | exact (PEL.Construction.centralModuliMap_source D hgeometry hIsogenyQuotient hTateComparison.flags (natCentralType aN hN hab) |
| 156 | (fun v => aN v) (fun _ _ => rfl)).symm |
| 157 | rw [hm] |
| 158 | exact natCentralMap_isIso D hgeometry hgood hIsogenyQuotient A hTateComparison aN hN hab |
| 159 | |
| 160 | def centralModuliAutomorphism (t : TateComparison.Local.IntegralType s) (a : Fin s → ℤ) |
| 161 | (ha : ∀ v i, t.val.exponent v i = a v) : Aut D.space := by |
| 162 | have := centralModuliMap_isIso D hgeometry hgood hIsogenyQuotient A hTateComparison t a ha |
| 163 | exact asIso (PEL.Construction.centralModuliMap D hgeometry hIsogenyQuotient hTateComparison.flags t a ha) |
| 164 | |
| 165 | theorem centralModuliAutomorphism_graph (t : TateComparison.Local.IntegralType s) (a : Fin s → ℤ) |
| 166 | (ha : ∀ v i, t.val.exponent v i = a v) : |
| 167 | Interface.Construction.CorrespondenceIsGraph (D.correspondence t) |
| 168 | (centralModuliAutomorphism D hgeometry hgood hIsogenyQuotient A hTateComparison t a ha) := by |
| 169 | have := PEL.Construction.central_correspondence_source_isIso D hgeometry hIsogenyQuotient hTateComparison.flags t a ha |
| 170 | refine ⟨asIso (D.correspondence t).source, rfl, ?_⟩ |
| 171 | exact (PEL.Construction.centralModuliMap_source D hgeometry hIsogenyQuotient hTateComparison.flags t a ha).symm |
| 172 | |
| 173 | include hTateComparison in |
| 174 | /-- The two automorphisms in CentralAction's statement are constructed, with the |
| 175 | specified clearing convention for T3 and the unshifted C0 correspondence. -/ |
| 176 | theorem exists_central_moduli_automorphisms (active : Fin s) (fullSide : Fin s → Bool) : |
| 177 | ∃ (σT σC : Aut D.space), |
| 178 | Interface.Construction.CorrespondenceIsGraph (D.correspondence (CentralRepresentatives.Construction.clearedT3Type active)) |
| 179 | (σT ≪≫ A.markingShift) ∧ |
| 180 | Interface.Construction.CorrespondenceIsGraph (D.correspondence (CentralRepresentatives.Construction.c0IntegralType active fullSide)) σC := by |
| 181 | let eT := centralModuliAutomorphism D hgeometry hgood hIsogenyQuotient A hTateComparison (CentralRepresentatives.Construction.clearedT3Type active) |
| 182 | (fun v => CentralRepresentatives.Construction.t3Exponents active v + 1) (fun _ _ => rfl) |
| 183 | let eC := centralModuliAutomorphism D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 184 | (CentralRepresentatives.Construction.c0IntegralType active fullSide) (CentralRepresentatives.Construction.c0Exponents active fullSide) (fun _ _ => rfl) |
| 185 | refine ⟨eT ≪≫ A.markingShift.symm, eC, ?_, ?_⟩ |
| 186 | · have he : (eT ≪≫ A.markingShift.symm) ≪≫ A.markingShift = eT := by |
| 187 | apply Iso.ext |
| 188 | change (eT.hom ≫ A.markingShift.inv) ≫ A.markingShift.hom = eT.hom |
| 189 | rw [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 190 | rw [he] |
| 191 | exact centralModuliAutomorphism_graph D hgeometry hgood hIsogenyQuotient A hTateComparison (CentralRepresentatives.Construction.clearedT3Type active) |
| 192 | (fun v => CentralRepresentatives.Construction.t3Exponents active v + 1) (fun _ _ => rfl) |
| 193 | · exact centralModuliAutomorphism_graph D hgeometry hgood hIsogenyQuotient A hTateComparison |
| 194 | (CentralRepresentatives.Construction.c0IntegralType active fullSide) (CentralRepresentatives.Construction.c0Exponents active fullSide) (fun _ _ => rfl) |
| 195 | |
| 196 | end |
| 197 | |
| 198 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Automorphisms.Construction |