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.RingTheory.Ideal.Operations |
| 2 | |
| 3 | /-! # Prime Avoidance -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.PrimeAvoidance.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: simultaneous avoidance of finitely many prime ideals and one arbitrary ideal -/ |
| 10 | |
| 11 | theorem finitePrimeAvoidance {R ι : Type*} [CommRing R] [Finite ι] |
| 12 | (I J : Ideal R) (P : ι → Ideal R) (hP : ∀ i, (P i).IsPrime) |
| 13 | (hJ : ¬ I ≤ J) (hI : ∀ i, ¬ I ≤ P i) : |
| 14 | ∃ x : R, x ∈ I ∧ x ∉ J ∧ ∀ i, x ∉ P i := by |
| 15 | classical |
| 16 | let := Fintype.ofFinite ι |
| 17 | let Q : Option ι → Ideal R := fun i => i.elim J P |
| 18 | have hp : ∀ i ∈ (Finset.univ : Finset (Option ι)), i ≠ none → i ≠ none → (Q i).IsPrime := by |
| 19 | intro i _ hi _ |
| 20 | cases i with |
| 21 | | none => exact (hi rfl).elim |
| 22 | | some i => exact hP i |
| 23 | have hnot : ¬ (I : Set R) ⊆ ⋃ i ∈ (↑(Finset.univ : Finset (Option ι)) : Set (Option ι)), Q i := by |
| 24 | intro h |
| 25 | obtain ⟨i, _, hi⟩ := (Ideal.subset_union_prime none none hp).mp h |
| 26 | cases i with |
| 27 | | none => exact hJ hi |
| 28 | | some i => exact hI i hi |
| 29 | obtain ⟨x, hxI, hx⟩ := Set.not_subset.mp hnot |
| 30 | refine ⟨x, hxI, ?_, ?_⟩ |
| 31 | · intro hxJ |
| 32 | exact hx (Set.mem_iUnion.mpr ⟨none, Set.mem_iUnion.mpr ⟨Finset.mem_univ _, hxJ⟩⟩) |
| 33 | · intro i hxi |
| 34 | exact hx (Set.mem_iUnion.mpr ⟨some i, Set.mem_iUnion.mpr ⟨Finset.mem_univ _, hxi⟩⟩) |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.PrimeAvoidance.BundleCycles |