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.Picard.PoincareBundle.Cech.CoalgebraFullness |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Canonical.CechCoaction |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.FullyFaithfulLift |
| 4 | |
| 5 | /-! # Morphism Descent -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.MorphismDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Effective descent of morphisms compatible with the original Čech gluing |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.ModuleCat |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleEffectiveDescent |
| 20 | |
| 21 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) |
| 22 | |
| 23 | theorem comparisonIso_inv_f (M : ModuleCat.{u} R) : |
| 24 | (Canonical.CechCoaction.comparisonIso f M).inv.f = 𝟙 _ := rfl |
| 25 | |
| 26 | /-- Forget a comparison-coalgebra factorization while retaining its exact module maps. -/ |
| 27 | theorem forget_fac {M A : ModuleCat.{u} R} {D : Affine.Descent.ModuleDatum f} |
| 28 | (e : (Comonad.comparison (extendRestrictScalarsAdj f)).obj A ≅ D) |
| 29 | (a : (Comonad.comparison (extendRestrictScalarsAdj f)).obj M ⟶ D) (b : M ⟶ A) |
| 30 | (h : (Comonad.comparison (extendRestrictScalarsAdj f)).map b ≫ e.hom = a) : |
| 31 | (extendScalars f).map b ≫ e.hom.f = a.f := |
| 32 | congrArg Comonad.Coalgebra.Hom.f h |
| 33 | |
| 34 | variable (M : ModuleCat.{u} R) (N : ModuleCat.{u} S) (D : CocycleEffectiveDescent.RingMapDatum f N) |
| 35 | (a : (extendScalars f).obj M ⟶ N) |
| 36 | (h : letI := f.toAlgebra |
| 37 | GluingMorphisms.PreservesGluing R S a (Canonical.CechCoaction.datum f M) D) |
| 38 | |
| 39 | /-- Original Čech compatibility gives a morphism from the actual comparison coalgebra. -/ |
| 40 | def compatibleHom : (Comonad.comparison (extendRestrictScalarsAdj f)).obj M ⟶ CocycleEffectiveDescent.moduleDatum f N D := |
| 41 | (Canonical.CechCoaction.comparisonIso f M).inv ≫ |
| 42 | CoalgebraFullness.ofGluing f ((extendScalars f).obj M) N |
| 43 | (Canonical.CechCoaction.datum f M) D a h |
| 44 | |
| 45 | theorem compatibleHom_f : (compatibleHom f M N D a h).f = a := by |
| 46 | change (Canonical.CechCoaction.comparisonIso f M).inv.f ≫ |
| 47 | (CoalgebraFullness.ofGluing f ((extendScalars f).obj M) N |
| 48 | (Canonical.CechCoaction.datum f M) D a h).f = a |
| 49 | rw [comparisonIso_inv_f, CoalgebraFullness.ofGluing_f] |
| 50 | exact Category.id_comp _ |
| 51 | |
| 52 | /-- The descended module morphism is constructed using faithfully flat comonadicity. -/ |
| 53 | def lift (hf : f.FaithfullyFlat) : M ⟶ CocycleEffectiveDescent.descendedModule f N hf D := by |
| 54 | have : (Comonad.comparison (extendRestrictScalarsAdj f)).IsEquivalence := |
| 55 | (comonadicExtendScalars hf).eqv |
| 56 | exact FullyFaithfulLift.lift (Comonad.comparison (extendRestrictScalarsAdj f)) |
| 57 | (CocycleEffectiveDescent.descentDataIso f N hf D) (compatibleHom f M N D a h) |
| 58 | |
| 59 | theorem lift_fac_coalgebra (hf : f.FaithfullyFlat) : |
| 60 | (Comonad.comparison (extendRestrictScalarsAdj f)).map (lift f M N D a h hf) ≫ |
| 61 | (CocycleEffectiveDescent.descentDataIso f N hf D).hom = compatibleHom f M N D a h := by |
| 62 | have : (Comonad.comparison (extendRestrictScalarsAdj f)).IsEquivalence := |
| 63 | (comonadicExtendScalars hf).eqv |
| 64 | exact FullyFaithfulLift.lift_fac (Comonad.comparison (extendRestrictScalarsAdj f)) |
| 65 | (CocycleEffectiveDescent.descentDataIso f N hf D) (compatibleHom f M N D a h) |
| 66 | |
| 67 | /-- Pulling back the descended map recovers the exact original Čech-compatible map. -/ |
| 68 | theorem lift_fac (hf : f.FaithfullyFlat) : |
| 69 | (extendScalars f).map (lift f M N D a h hf) ≫ (CocycleEffectiveDescent.baseChangeIso f N hf D).hom = a := |
| 70 | (forget_fac f (CocycleEffectiveDescent.descentDataIso f N hf D) (compatibleHom f M N D a h) |
| 71 | (lift f M N D a h hf) (lift_fac_coalgebra f M N D a h hf)).trans |
| 72 | (compatibleHom_f f M N D a h) |
| 73 | |
| 74 | /-- This descended morphism is uniquely determined by the original compatible map. -/ |
| 75 | theorem lift_unique (hf : f.FaithfullyFlat) (b : M ⟶ CocycleEffectiveDescent.descendedModule f N hf D) |
| 76 | (hb : (extendScalars f).map b ≫ (CocycleEffectiveDescent.baseChangeIso f N hf D).hom = a) : |
| 77 | b = lift f M N D a h hf := by |
| 78 | have : (Comonad.comparison (extendRestrictScalarsAdj f)).IsEquivalence := |
| 79 | (comonadicExtendScalars hf).eqv |
| 80 | apply FullyFaithfulLift.lift_unique (Comonad.comparison (extendRestrictScalarsAdj f)) |
| 81 | (CocycleEffectiveDescent.descentDataIso f N hf D) (compatibleHom f M N D a h) b |
| 82 | apply Comonad.Coalgebra.Hom.ext |
| 83 | exact hb.trans (compatibleHom_f f M N D a h).symm |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.MorphismDescent |