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.HodgeConjecture.HeckeCycles.ReferenceDatum |
| 2 | |
| 3 | /-! # Initial Place Numbering -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.InitialPlaceNumbering.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Number the active archimedean pair first before any test, level, or |
| 10 | prime is chosen. The place representatives are only permuted. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 14 | |
| 15 | variable (E : IntermediateField ℚ ℂ) |
| 16 | [NumberField E] [NumberField.IsCMField E] |
| 17 | |
| 18 | def initialPlacePermutation (places : HeckeCycles.GeometricSource.CM.Places E) : Equiv.Perm (Fin places.count) := |
| 19 | Equiv.swap ⟨0, Nat.zero_lt_of_lt places.distinguished.isLt⟩ places.distinguished |
| 20 | |
| 21 | def activeFirstPlaces (places : HeckeCycles.GeometricSource.CM.Places E) : HeckeCycles.GeometricSource.CM.Places E where |
| 22 | count := places.count |
| 23 | representative i := places.representative (initialPlacePermutation E places i) |
| 24 | distinguished := ⟨0, Nat.zero_lt_of_lt places.distinguished.isLt⟩ |
| 25 | identity := by |
| 26 | dsimp [initialPlacePermutation] |
| 27 | rw [Equiv.swap_apply_left] |
| 28 | exact places.identity |
| 29 | complete := by |
| 30 | let e := (initialPlacePermutation E places).prodCongr (Equiv.refl Bool) |
| 31 | exact places.complete.comp e.bijective |
| 32 | |
| 33 | theorem activeFirstPlaces_representative (places : HeckeCycles.GeometricSource.CM.Places E) (i : Fin places.count) : |
| 34 | (activeFirstPlaces E places).representative i = |
| 35 | places.representative (initialPlacePermutation E places i) := rfl |
| 36 | |
| 37 | theorem activeFirstPlaces_active (places : HeckeCycles.GeometricSource.CM.Places E) : |
| 38 | (activeFirstPlaces E places).distinguished.val = 0 := rfl |
| 39 | |
| 40 | theorem activeFirstPlaces_prescribed (B : HeckeCycles.GeometricSource.CM.BallDatum E) (places : HeckeCycles.GeometricSource.CM.Places E) |
| 41 | (d : Gal(E/ℚ) → Bool) (z : HeckeCycles.GeometricSource.CM.BallChart) (w : HeckeCycles.GeometricSource.CM.Ambient E) : |
| 42 | HeckeCycles.GeometricSource.CM.prescribed E B (activeFirstPlaces E places) d z w ↔ HeckeCycles.GeometricSource.CM.prescribed E B places d z w := by |
| 43 | dsimp only [HeckeCycles.GeometricSource.CM.prescribed, activeFirstPlaces] |
| 44 | let o : Fin places.count := ⟨0, Nat.zero_lt_of_lt places.distinguished.isLt⟩ |
| 45 | let e := initialPlacePermutation E places |
| 46 | have he : ∀ i : Fin places.count, i = o ↔ e i = places.distinguished := by |
| 47 | intro i |
| 48 | have h0 : e o = places.distinguished := Equiv.swap_apply_left _ _ |
| 49 | rw [← h0] |
| 50 | exact e.injective.eq_iff.symm |
| 51 | constructor |
| 52 | · intro h i |
| 53 | have hi := h (e.symm i) |
| 54 | change (if e.symm i = o then _ else _) at hi |
| 55 | simpa only [← show e = initialPlacePermutation E places from rfl, he, |
| 56 | e.apply_symm_apply] using hi |
| 57 | · intro h i |
| 58 | change if i = o then _ else _ |
| 59 | simp only [he] |
| 60 | exact h (e i) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.InitialPlaceNumbering.Intrinsic |