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.AlgebraicGeometry.Morphisms.OpenImmersion |
| 2 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 3 | |
| 4 | /-! # Open Immersion Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OpenImmersionCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Cartesian pieces that are isomorphisms onto target opens assemble to an open immersion. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | theorem isOpenImmersion_of_cartesian_isomorphism_pieces {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 17 | {ι : Type v} (V U : ι → Scheme.{u}) (a : ∀ i, V i ⟶ X) (b : ∀ i, U i ⟶ Y) |
| 18 | (p : ∀ i, V i ⟶ U i) [∀ i, IsOpenImmersion (a i)] [∀ i, IsOpenImmersion (b i)] |
| 19 | [∀ i, IsIso (p i)] (H : ∀ i, IsPullback (a i) (p i) f (b i)) |
| 20 | (hcover : ∀ x : X, ∃ i, x ∈ Set.range (a i)) : IsOpenImmersion f := by |
| 21 | have hinj : Function.Injective f := by |
| 22 | intro x y hxy |
| 23 | obtain ⟨i, v, rfl⟩ := hcover x |
| 24 | have hp : f (a i v) = b i (p i v) := |
| 25 | congrArg (fun q : V i ⟶ Y => q v) (H i).w |
| 26 | obtain ⟨w, hw, hwp⟩ := Scheme.exists_preimage_of_isPullback (H i) y (p i v) (hxy.symm.trans hp) |
| 27 | exact (congrArg (a i) ((p i).isOpenEmbedding.injective hwp)).symm.trans hw |
| 28 | apply IsOpenImmersion.of_forall_source_exists f hinj |
| 29 | intro x |
| 30 | obtain ⟨i, hi⟩ := hcover x |
| 31 | refine ⟨V i, a i, inferInstance, hi, ?_⟩ |
| 32 | have hp : IsOpenImmersion (p i ≫ b i) := inferInstance |
| 33 | exact (congrArg (fun q : V i ⟶ Y => IsOpenImmersion q) (H i).w).mpr hp |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OpenImmersionCriterion |