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.Topology.Instances.Complex |
| 2 | import Mathlib.FieldTheory.AlgebraicClosure |
| 3 | import Mathlib.Topology.NhdsWithin |
| 4 | |
| 5 | /-! # Dense Algebraic Coordinates -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.DenseAlgebraicCoordinates.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Algebraic complex coordinates are dense. This supplies the coordinate |
| 12 | approximation step for choosing arithmetic fibers in native neighborhoods. -/ |
| 13 | |
| 14 | open Set _root_.Complex |
| 15 | open scoped _root_.Topology |
| 16 | |
| 17 | theorem complex_subfield_dense_of_I_mem (K : Subfield ℂ) (hI : Complex.I ∈ K) : |
| 18 | Dense (K : Set ℂ) := by |
| 19 | rcases Complex.subfield_eq_of_closed (Subfield.isClosed_topologicalClosure K) with hreal | htop |
| 20 | · have hi := K.le_topologicalClosure hI |
| 21 | rw [hreal] at hi |
| 22 | obtain ⟨r, hr⟩ := hi |
| 23 | have h := congrArg Complex.im hr |
| 24 | simp at h |
| 25 | · apply dense_iff_closure_eq.mpr |
| 26 | change (K.topologicalClosure : Set ℂ) = Set.univ |
| 27 | rw [htop] |
| 28 | rfl |
| 29 | |
| 30 | theorem algebraic_complex_coordinates_dense : Dense {z : ℂ | IsAlgebraic ℚ z} := by |
| 31 | let K := (algebraicClosure ℚ ℂ).toSubfield |
| 32 | have hi : IsAlgebraic ℚ Complex.I := by |
| 33 | apply IsAlgebraic.of_pow (n := 2) (by decide) |
| 34 | rw [Complex.I_sq] |
| 35 | exact (isAlgebraic_one : IsAlgebraic ℚ (1 : ℂ)).neg |
| 36 | have hiK : Complex.I ∈ K := mem_algebraicClosure_iff.mpr hi |
| 37 | have hK : (K : Set ℂ) = {z : ℂ | IsAlgebraic ℚ z} := by |
| 38 | ext z |
| 39 | exact mem_algebraicClosure_iff |
| 40 | rw [← hK] |
| 41 | exact complex_subfield_dense_of_I_mem K hiK |
| 42 | |
| 43 | theorem algebraic_coordinate_tuples_dense (Index : Type*) : |
| 44 | Dense {z : Index → ℂ | ∀ i, IsAlgebraic ℚ (z i)} := by |
| 45 | simpa only [Set.pi, Set.mem_univ, forall_true_left, Set.mem_ofPred_eq] using |
| 46 | dense_pi (s := fun _ : Index => {z : ℂ | IsAlgebraic ℚ z}) Set.univ |
| 47 | (fun _ _ => algebraic_complex_coordinates_dense) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.ArithmeticGeometry.Descent.CMVariety.DenseAlgebraicCoordinates.Abelian |