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.AbelianModuli.HilbertConstruction.Ordered.SectionCechIndices |
| 2 | import Mathlib.Data.Finset.Sort |
| 3 | |
| 4 | /-! # Finite Subsets -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.FiniteSubsets |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Ordered Čech tuples correspond to finite subsets of the same size. -/ |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {ι : Type u} [LinearOrder ι] |
| 15 | |
| 16 | def orderedCechIndexFinset {q : ℕ} (a : Ordered.SectionCechIndices.OrderedCechIndex ι q) : Finset ι := |
| 17 | Finset.univ.image a.val |
| 18 | |
| 19 | theorem orderedCechIndexFinset_card {q : ℕ} (a : Ordered.SectionCechIndices.OrderedCechIndex ι q) : |
| 20 | (orderedCechIndexFinset a).card = q + 1 := by |
| 21 | rw [orderedCechIndexFinset, Finset.card_image_of_injective _ a.property.injective, |
| 22 | Finset.card_univ, Fintype.card_fin] |
| 23 | |
| 24 | def orderedCechIndexFinsetEquiv (ι : Type u) [LinearOrder ι] (q : ℕ) : |
| 25 | Ordered.SectionCechIndices.OrderedCechIndex ι q ≃ {s : Finset ι // s.card = q + 1} where |
| 26 | toFun a := ⟨orderedCechIndexFinset a, orderedCechIndexFinset_card a⟩ |
| 27 | invFun s := ⟨s.val.orderEmbOfFin s.property, (s.val.orderEmbOfFin s.property).strictMono⟩ |
| 28 | left_inv a := by |
| 29 | apply Subtype.ext |
| 30 | exact (Finset.orderEmbOfFin_unique (orderedCechIndexFinset_card a) |
| 31 | (fun k ↦ Finset.mem_image.mpr ⟨k, Finset.mem_univ _, rfl⟩) a.property).symm |
| 32 | right_inv s := by |
| 33 | apply Subtype.ext |
| 34 | change Finset.univ.image (s.val.orderEmbOfFin s.property) = s.val |
| 35 | have h := Finset.map_orderEmbOfFin_univ s.val s.property |
| 36 | rw [Finset.map_eq_image] at h |
| 37 | exact h |
| 38 | |
| 39 | theorem orderedCechIndexFinset_delete {q : ℕ} (a : Ordered.SectionCechIndices.OrderedCechIndex ι (q + 1)) |
| 40 | (k : Fin (q + 2)) : |
| 41 | orderedCechIndexFinset (a.delete k) = (orderedCechIndexFinset a).erase (a.val k) := by |
| 42 | ext x |
| 43 | constructor |
| 44 | · intro hx |
| 45 | obtain ⟨j, _, rfl⟩ := Finset.mem_image.mp hx |
| 46 | apply Finset.mem_erase.mpr |
| 47 | constructor |
| 48 | · change a.val (k.succAbove j) ≠ a.val k |
| 49 | exact fun he ↦ Fin.succAbove_ne k j (a.property.injective he) |
| 50 | · exact Finset.mem_image.mpr ⟨k.succAbove j, Finset.mem_univ _, rfl⟩ |
| 51 | · intro hx |
| 52 | obtain ⟨hne, hin⟩ := Finset.mem_erase.mp hx |
| 53 | obtain ⟨j, _, rfl⟩ := Finset.mem_image.mp hin |
| 54 | have hj : j ≠ k := fun he ↦ hne (congrArg a.val he) |
| 55 | obtain ⟨l, hl⟩ := Fin.exists_succAbove_eq hj |
| 56 | apply Finset.mem_image.mpr |
| 57 | refine ⟨l, Finset.mem_univ _, ?_⟩ |
| 58 | change a.val (k.succAbove l) = a.val j |
| 59 | exact congrArg a.val hl |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.FiniteSubsets |