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.Affine.Descent |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 4 | |
| 5 | /-! # Beck Descent -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.BeckDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Explicit invariant objects for PoincareBundle descent |
| 13 | |
| 14 | The descended module is identified with the equalizer of the coaction |
| 15 | and the adjunction unit. The same equalizer constructs an invariant |
| 16 | sheaf globally. Effectiveness for general geometric pullback is not |
| 17 | assumed by these constructions. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Comonad _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {R S : Type u} [CommRing R] [CommRing S] |
| 25 | |
| 26 | /-- The explicit equalizer that imposes the affine descent relation. -/ |
| 27 | def moduleInvariants (f : R →+* S) (D : Affine.Descent.ModuleDatum.{u, u} f) : ModuleCat.{u} R := |
| 28 | equalizer ((ModuleCat.restrictScalars f).map D.a) |
| 29 | ((ModuleCat.extendRestrictScalarsAdj f).unit.app _) |
| 30 | |
| 31 | /-- Faithfully flat descent identifies its constructed module with the |
| 32 | explicit module of invariants. -/ |
| 33 | def moduleInvariantsIso (f : R →+* S) (hf : f.FaithfullyFlat) |
| 34 | (D : Affine.Descent.ModuleDatum.{u, u} f) : |
| 35 | moduleInvariants f D ≅ Affine.Descent.descendedModule f hf D := |
| 36 | ((ComonadicityInternal.comparisonAdjunction (ModuleCat.extendRestrictScalarsAdj f)).rightAdjointUniq |
| 37 | (Affine.Descent.descentEquivalence f hf).toAdjunction).app D |
| 38 | |
| 39 | /-- The explicit invariant module of a line datum is invertible. -/ |
| 40 | theorem moduleInvariants_invertible [IsNoetherianRing R] |
| 41 | (f : R →+* S) (hf : f.FaithfullyFlat) (D : Affine.Descent.ModuleDatum.{u, u} f) |
| 42 | [Module.Invertible S D.A] : Module.Invertible R (moduleInvariants f D) := by |
| 43 | have := Affine.Descent.descendedModule_invertible f hf D |
| 44 | exact Module.Invertible.congr (moduleInvariantsIso f hf D).symm.toLinearEquiv |
| 45 | |
| 46 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 47 | |
| 48 | /-- A geometric descent coaction with its counit and cocycle equations. -/ |
| 49 | abbrev SheafDatum := (Scheme.Modules.pullbackPushforwardAdjunction f).toComonad.Coalgebra |
| 50 | |
| 51 | /-- The globally defined sheaf of invariants. -/ |
| 52 | def invariantSheaf (D : SheafDatum f) : Y.Modules := |
| 53 | equalizer ((Scheme.Modules.pushforward f).map D.a) |
| 54 | ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app _) |
| 55 | |
| 56 | /-- Its inclusion into the direct image of the original module sheaf. -/ |
| 57 | def invariantSheafInclusion (D : SheafDatum f) : |
| 58 | invariantSheaf f D ⟶ (Scheme.Modules.pushforward f).obj D.A := |
| 59 | equalizer.ι _ _ |
| 60 | |
| 61 | /-- Pulling back the invariant sheaf has a canonical comparison with |
| 62 | the original module sheaf, respecting its full descent coaction. -/ |
| 63 | def invariantComparison (D : SheafDatum f) : |
| 64 | (Comonad.comparison (Scheme.Modules.pullbackPushforwardAdjunction f)).obj |
| 65 | (invariantSheaf f D) ⟶ D := |
| 66 | (ComonadicityInternal.comparisonAdjunction |
| 67 | (Scheme.Modules.pullbackPushforwardAdjunction f)).counit.app D |
| 68 | |
| 69 | /-- The invariant sheaf has the descent universal property. -/ |
| 70 | def invariantHomEquiv (D : SheafDatum f) (N : Y.Modules) : |
| 71 | ((Comonad.comparison (Scheme.Modules.pullbackPushforwardAdjunction f)).obj N ⟶ D) ≃ |
| 72 | (N ⟶ invariantSheaf f D) := |
| 73 | ComonadicityInternal.comparisonRightAdjointHomEquiv |
| 74 | (Scheme.Modules.pullbackPushforwardAdjunction f) D N |
| 75 | |
| 76 | /-- Preservation of the defining equalizer makes the canonical pullback |
| 77 | comparison an isomorphism. This isolates the local verification needed |
| 78 | for effective geometric descent. -/ |
| 79 | theorem invariantComparison_isIso_of_preservesEqualizer (D : SheafDatum f) |
| 80 | [hpres : PreservesLimit |
| 81 | (parallelPair ((Scheme.Modules.pushforward f).map D.a) |
| 82 | ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app _)) |
| 83 | (Scheme.Modules.pullback f)] : IsIso (invariantComparison f D).f := by |
| 84 | change IsIso ((ComonadicityInternal.comparisonAdjunction |
| 85 | (Scheme.Modules.pullbackPushforwardAdjunction f)).counit.app D).f |
| 86 | rw [ComonadicityInternal.comparisonAdjunction_counit_f] |
| 87 | change IsIso (IsLimit.conePointUniqueUpToIso (beckEqualizer D) |
| 88 | (@ComonadicityInternal.counitLimitOfPreservesEqualizer |
| 89 | _ _ _ _ _ _ (Scheme.Modules.pullbackPushforwardAdjunction f) D inferInstance hpres)).inv |
| 90 | exact (IsLimit.conePointUniqueUpToIso _ _).isIso_inv |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.BeckDescent |