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.ReferenceFamily.EtaleHomDerivation |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 4 | |
| 5 | /-! # Etale Algebra Derivation Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleAlgebraDerivationFunctor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Derivations on an etale algebra diagram form a module diagram |
| 12 | with the uniquely constructed etale restriction maps. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | variable (k : Type) [CommRing k] {J : Type} [Category J] |
| 17 | (F : J ⥤ CommAlgCat k) |
| 18 | (hF : ∀ {i j : J} (f : i ⟶ j), (F.map f).hom.toRingHom.Etale) |
| 19 | |
| 20 | def etaleAlgebraDerivationFunctor : J ⥤ ModuleCat k where |
| 21 | obj i := ModuleCat.of k (Derivation k (F.obj i) (F.obj i)) |
| 22 | map f := ModuleCat.ofHom (EtaleHomDerivation.etaleAlgHomDerivationLinear (F.map f).hom (hF f)) |
| 23 | map_id i := by |
| 24 | apply ModuleCat.hom_ext |
| 25 | have hq : (F.map (𝟙 i)).hom = AlgHom.id k (F.obj i) := |
| 26 | congrArg (fun f : F.obj i ⟶ F.obj i => f.hom) (F.map_id i) |
| 27 | have he : (AlgHom.id k (F.obj i)).toRingHom.Etale := hq ▸ hF (𝟙 i) |
| 28 | exact (EtaleHomDerivation.etaleAlgHomDerivationLinear_congr _ _ (hF (𝟙 i)) he hq).trans |
| 29 | (EtaleHomDerivation.etaleAlgHomDerivationLinear_id he) |
| 30 | map_comp f g := by |
| 31 | apply ModuleCat.hom_ext |
| 32 | have hq : (F.map (f ≫ g)).hom = (F.map g).hom.comp (F.map f).hom := |
| 33 | congrArg (fun h => h.hom) (F.map_comp f g) |
| 34 | have he : ((F.map g).hom.comp (F.map f).hom).toRingHom.Etale := hq ▸ hF (f ≫ g) |
| 35 | exact (EtaleHomDerivation.etaleAlgHomDerivationLinear_congr _ _ (hF (f ≫ g)) he hq).trans |
| 36 | (EtaleHomDerivation.etaleAlgHomDerivationLinear_comp (F.map f).hom (F.map g).hom (hF f) (hF g) he) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleAlgebraDerivationFunctor |