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.OpenImmersion |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | |
| 4 | /-! # Open Family Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.OpenFamilyPoints |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Morphisms to an open subscheme over a base are exactly the morphisms |
| 11 | to its ambient scheme whose images lie in that open. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | variable {S : Scheme.{u}} (M : Over S) (U : M.left.Opens) |
| 21 | |
| 22 | def openFamily : Over S := Over.mk (U.ι ≫ M.hom) |
| 23 | |
| 24 | def openFamilyInclusion : openFamily M U ⟶ M := Over.homMk U.ι rfl |
| 25 | |
| 26 | def openFamilyLift (T : Over S) (p : T ⟶ M) (hp : ∀ y : T.left, p.left y ∈ U) : |
| 27 | T ⟶ openFamily M U := by |
| 28 | have hr : Set.range p.left ⊆ Set.range U.ι := by |
| 29 | rintro _ ⟨y, rfl⟩ |
| 30 | exact ⟨⟨p.left y, hp y⟩, rfl⟩ |
| 31 | refine Over.homMk (IsOpenImmersion.lift U.ι p.left hr) ?_ |
| 32 | change IsOpenImmersion.lift U.ι p.left hr ≫ (U.ι ≫ M.hom) = T.hom |
| 33 | rw [← Category.assoc, IsOpenImmersion.lift_fac] |
| 34 | exact p.w |
| 35 | |
| 36 | theorem openFamilyLift_fac (T : Over S) (p : T ⟶ M) (hp : ∀ y : T.left, p.left y ∈ U) : |
| 37 | openFamilyLift M U T p hp ≫ openFamilyInclusion M U = p := by |
| 38 | apply Over.OverMorphism.ext |
| 39 | exact IsOpenImmersion.lift_fac U.ι p.left _ |
| 40 | |
| 41 | def openFamilyPointEquiv (T : Over S) : |
| 42 | (T ⟶ openFamily M U) ≃ { p : T ⟶ M // ∀ y : T.left, p.left y ∈ U } where |
| 43 | toFun a := ⟨a ≫ openFamilyInclusion M U, fun y => (a.left y).property⟩ |
| 44 | invFun p := openFamilyLift M U T p.val p.property |
| 45 | left_inv a := by |
| 46 | apply Over.OverMorphism.ext |
| 47 | apply (cancel_mono U.ι).mp |
| 48 | exact IsOpenImmersion.lift_fac U.ι (a.left ≫ U.ι) _ |
| 49 | right_inv p := Subtype.ext (openFamilyLift_fac M U T p.val p.property) |
| 50 | |
| 51 | end Construction |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.OpenFamilyPoints |