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 Mathlib.Data.Fintype.EquivFin |
| 2 | import Mathlib.Data.Fintype.Sum |
| 3 | import Mathlib.SetTheory.Cardinal.Finite |
| 4 | |
| 5 | /-! # Conjugate Labels -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.ConjugateLabels.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | A choice of exactly one label in each conjugate pair gives the two |
| 13 | rank-three block families. Both sides are indexed by one common Fin s; |
| 14 | the resulting total label map is a bijection, not a separation premise. |
| 15 | -/ |
| 16 | |
| 17 | variable {I : Type*} (c : Equiv.Perm I) (hc : Function.Involutive c) |
| 18 | (chosen : Set I) (hchosen : ∀ i, i ∈ chosen ↔ c i ∉ chosen) |
| 19 | |
| 20 | def conjugateLabelEquiv : chosen ⊕ chosen ≃ I := |
| 21 | Equiv.ofBijective (Sum.elim Subtype.val (fun i : chosen => c i.val)) (by |
| 22 | constructor |
| 23 | · intro x y he |
| 24 | rcases x with x | x <;> rcases y with y | y |
| 25 | · exact congrArg Sum.inl (Subtype.ext he) |
| 26 | · change x.val = c y.val at he |
| 27 | exact False.elim (((hchosen y.val).mp y.property) (he ▸ x.property)) |
| 28 | · change c x.val = y.val at he |
| 29 | exact False.elim (((hchosen x.val).mp x.property) (he.symm ▸ y.property)) |
| 30 | · exact congrArg Sum.inr (Subtype.ext (c.injective he)) |
| 31 | · intro i |
| 32 | by_cases hi : i ∈ chosen |
| 33 | · exact ⟨Sum.inl ⟨i, hi⟩, rfl⟩ |
| 34 | · have hci : c i ∈ chosen := (hchosen (c i)).mpr (by rwa [hc i]) |
| 35 | exact ⟨Sum.inr ⟨c i, hci⟩, hc i⟩) |
| 36 | |
| 37 | include c hc hchosen in |
| 38 | theorem chosen_card [Fintype I] (s : ℕ) (hcard : Fintype.card I = 2 * s) : |
| 39 | Nat.card chosen = s := by |
| 40 | have he := Nat.card_congr (conjugateLabelEquiv c hc chosen hchosen) |
| 41 | have hi : Nat.card I = 2 * s := by simpa only [Nat.card_eq_fintype_card] using hcard |
| 42 | rw [Nat.card_sum, hi] at he |
| 43 | omega |
| 44 | |
| 45 | def indexedConjugateLabels [Fintype I] (s : ℕ) (hcard : Fintype.card I = 2 * s) : |
| 46 | (Fin s ⊕ Fin s) ≃ I := by |
| 47 | classical |
| 48 | let : Fintype chosen := Fintype.ofFinite _ |
| 49 | have hs : Fintype.card chosen = s := by |
| 50 | simpa only [Nat.card_eq_fintype_card] using chosen_card c hc chosen hchosen s hcard |
| 51 | let e := (Fintype.equivFinOfCardEq hs).symm |
| 52 | exact (Equiv.sumCongr e e).trans (conjugateLabelEquiv c hc chosen hchosen) |
| 53 | |
| 54 | theorem indexedConjugateLabels_opposite [Fintype I] (s : ℕ) (hcard : Fintype.card I = 2 * s) |
| 55 | (i : Fin s) : |
| 56 | indexedConjugateLabels c hc chosen hchosen s hcard (Sum.inr i) = |
| 57 | c (indexedConjugateLabels c hc chosen hchosen s hcard (Sum.inl i)) := rfl |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.ConjugateLabels.Construction |