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.Scheme |
| 2 | import Mathlib.CategoryTheory.Comma.Over.Basic |
| 3 | |
| 4 | /-! # Family Lift Factorization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FamilyLiftFactorization.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Factorizations of a parameter map and morphisms into a family over |
| 11 | that parameter have the same actual scheme maps. -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} (T : Over S) (M : Over T.left) |
| 17 | |
| 18 | def compositeFamily : Over S := Over.mk (M.hom ≫ T.hom) |
| 19 | |
| 20 | def compositeFamilyMap : compositeFamily T M ⟶ T := Over.homMk M.hom rfl |
| 21 | |
| 22 | instance compositeFamilyMap_mono [Mono M.hom] : Mono (compositeFamilyMap T M) := by |
| 23 | have : Mono (compositeFamilyMap T M).left := inferInstanceAs (Mono M.hom) |
| 24 | exact Over.mono_of_mono_left (compositeFamilyMap T M) |
| 25 | |
| 26 | def familyLiftFactorizationEquiv {U : Over S} (j : U ⟶ T) : |
| 27 | (Over.mk j.left ⟶ M) ≃ { v : U ⟶ compositeFamily T M // v ≫ compositeFamilyMap T M = j } where |
| 28 | toFun p := ⟨Over.homMk p.left (by |
| 29 | change p.left ≫ (M.hom ≫ T.hom) = U.hom |
| 30 | rw [← Category.assoc, p.w] |
| 31 | exact j.w), Over.OverMorphism.ext p.w⟩ |
| 32 | invFun v := Over.homMk v.val.left (congrArg Over.Hom.left v.property) |
| 33 | left_inv p := Over.OverMorphism.ext rfl |
| 34 | right_inv v := Subtype.ext (Over.OverMorphism.ext rfl) |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.FamilyLiftFactorization.Construction |