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.Open.RangeCriterion |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | |
| 4 | /-! # Parameter Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.ParameterPoints |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Open subschemes represent the condition that a parameter map lands in the specified open subset. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {S : Scheme.{u}} (M : Over S) (U : M.left.Opens) |
| 17 | |
| 18 | def openParameterScheme : Over S := Over.mk (U.ι ≫ M.hom) |
| 19 | |
| 20 | def openParameterInclusion : openParameterScheme M U ⟶ M := Over.homMk U.ι rfl |
| 21 | |
| 22 | instance openParameterInclusion_open : IsOpenImmersion (openParameterInclusion M U).left := |
| 23 | inferInstanceAs (IsOpenImmersion U.ι) |
| 24 | |
| 25 | def openParameterPointEquiv (T : Over S) : |
| 26 | (T ⟶ openParameterScheme M U) ≃ {x : T ⟶ M // Set.range x.left ⊆ (U : Set _)} where |
| 27 | toFun y := ⟨y ≫ openParameterInclusion M U, by |
| 28 | rintro _ ⟨t, rfl⟩ |
| 29 | exact (y.left t).property⟩ |
| 30 | invFun x := by |
| 31 | let l : T.left ⟶ U := |
| 32 | IsOpenImmersion.lift U.ι x.val.left ((Scheme.Opens.range_ι U).symm ▸ x.property) |
| 33 | exact Over.homMk l (by |
| 34 | change l ≫ (U.ι ≫ M.hom) = T.hom |
| 35 | rw [← Category.assoc, IsOpenImmersion.lift_fac] |
| 36 | exact x.val.w) |
| 37 | left_inv y := by |
| 38 | apply Over.OverMorphism.ext |
| 39 | apply (cancel_mono U.ι).mp |
| 40 | exact IsOpenImmersion.lift_fac _ _ _ |
| 41 | right_inv x := by |
| 42 | apply Subtype.ext |
| 43 | apply Over.OverMorphism.ext |
| 44 | exact IsOpenImmersion.lift_fac U.ι x.val.left _ |
| 45 | |
| 46 | theorem openParameterPointEquiv_val (T : Over S) (y : T ⟶ openParameterScheme M U) : |
| 47 | (openParameterPointEquiv M U T y).val = y ≫ openParameterInclusion M U := rfl |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.ParameterPoints |