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.Cocycle |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Diagonal |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Symmetry |
| 4 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.SwitchLineDescent |
| 5 | |
| 6 | /-! # Effective Cech Descent -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.EffectiveCechDescent |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Effective descent from actual affine Čech gluing |
| 14 | |
| 15 | The input consists of an isomorphism between the two actual scalar |
| 16 | extensions, with its diagonal, transposition, and triple-product |
| 17 | compatibilities. The coaction equations and effective descent are proved. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.ModuleCat TensorProduct _root_.AlgebraicGeometry |
| 21 | open scoped TensorProduct ChangeOfRings |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | section |
| 26 | |
| 27 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.ModuleModels OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Switch OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.TripleGluing |
| 28 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Diagonal OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Symmetry OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Cocycle |
| 29 | |
| 30 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 31 | (M : ModuleCat.{u} S) |
| 32 | |
| 33 | /-- Ordinary affine Čech gluing, expressed as actual module isomorphisms and diagrams. -/ |
| 34 | structure CechDatum where |
| 35 | gluing : Cech.ModuleModels.firstPullback R S M ≅ Cech.ModuleModels.secondPullback R S M |
| 36 | diagonal : gluing.hom ≫ Cech.Diagonal.secondEvaluation R S M = Cech.Diagonal.firstEvaluation R S M |
| 37 | symmetry : Cech.Symmetry.swappedHom R S M gluing = gluing.inv |
| 38 | cocycle : Cech.TripleGluing.gluing12 R S M gluing ≫ Cech.TripleGluing.gluing23 R S M gluing = Cech.TripleGluing.gluing13 R S M gluing |
| 39 | |
| 40 | /-- The coordinate switch determines the original gluing isomorphism. -/ |
| 41 | theorem gluingSwitch_injective (σ τ : Cech.ModuleModels.firstPullback R S M ≅ Cech.ModuleModels.secondPullback R S M) |
| 42 | (h : Cech.Switch.gluingSwitch R S M σ = Cech.Switch.gluingSwitch R S M τ) : σ = τ := by |
| 43 | apply Iso.ext |
| 44 | apply ModuleCat.hom_ext |
| 45 | apply LinearMap.ext |
| 46 | intro p |
| 47 | apply (Cech.ModuleModels.secondModel R S M).injective |
| 48 | have hh := DFunLike.congr_fun h (Cech.ModuleModels.firstModel R S M p) |
| 49 | change Cech.ModuleModels.secondModel R S M (σ.hom ((Cech.ModuleModels.firstModel R S M).symm (Cech.ModuleModels.firstModel R S M p))) = |
| 50 | Cech.ModuleModels.secondModel R S M (τ.hom ((Cech.ModuleModels.firstModel R S M).symm (Cech.ModuleModels.firstModel R S M p))) at hh |
| 51 | erw [AddEquiv.symm_apply_apply] at hh |
| 52 | exact hh |
| 53 | |
| 54 | @[ext] |
| 55 | theorem CechDatum.ext (D E : CechDatum R S M) (h : D.gluing = E.gluing) : D = E := by |
| 56 | cases D |
| 57 | cases E |
| 58 | cases h |
| 59 | rfl |
| 60 | |
| 61 | /-- The tensor descent switch extracted from the actual Čech diagrams. -/ |
| 62 | def CechDatum.toSwitch (D : CechDatum R S M) : |
| 63 | DescentSwitch.SwitchDatum R S ((restrictScalars (algebraMap R S)).obj M) where |
| 64 | switch := Cech.Switch.gluingSwitch R S M D.gluing |
| 65 | second_smul := Cech.Switch.gluingSwitch_second_smul R S M D.gluing |
| 66 | diagonal_switch := Cech.Diagonal.gluingSwitch_diagonal R S M D.gluing D.diagonal |
| 67 | involutive := Cech.Symmetry.gluingSwitch_involutive R S M D.gluing D.symmetry |
| 68 | cocycle := Cech.Cocycle.gluingSwitch_cocycle R S M D.gluing D.cocycle |
| 69 | |
| 70 | /-- Extracting the coaction loses no information from the original Čech gluing data. -/ |
| 71 | theorem CechDatum.eq_of_coaction_eq (D E : CechDatum R S M) |
| 72 | (h : D.toSwitch.coaction = E.toSwitch.coaction) : D = E := by |
| 73 | apply CechDatum.ext |
| 74 | exact gluingSwitch_injective R S M D.gluing E.gluing |
| 75 | (DescentSwitch.SwitchDatum.switch_eq_of_coaction_eq D.toSwitch E.toSwitch h) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | section |
| 80 | |
| 81 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) |
| 82 | (M : ModuleCat.{u} S) |
| 83 | |
| 84 | /-- The Čech diagrams with the algebra structure specified by the actual ring map. -/ |
| 85 | abbrev RingMapDatum := letI := f.toAlgebra; CechDatum R S M |
| 86 | |
| 87 | /-- The native Čech gluing gives the standard tensor switch with the ring-map scalar structures. -/ |
| 88 | def ringMapSwitch (D : RingMapDatum f M) : SwitchCoalgebra.SwitchDatum f M := by |
| 89 | letI := f.toAlgebra |
| 90 | exact D.toSwitch |
| 91 | |
| 92 | /-- The actual extension/restriction coalgebra derived from ordinary affine Čech data. -/ |
| 93 | def moduleDatum (D : RingMapDatum f M) : Affine.Descent.ModuleDatum f := |
| 94 | SwitchCoalgebra.moduleDatum f M (ringMapSwitch f M D) |
| 95 | |
| 96 | /-- The module on the base constructed by effective descent of the Čech gluing. -/ |
| 97 | def descendedModule (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : ModuleCat.{u} R := |
| 98 | Affine.Descent.descendedModule f hf (moduleDatum f M D) |
| 99 | |
| 100 | /-- Its actual scalar extension recovers the original module. -/ |
| 101 | def baseChangeIso (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : |
| 102 | (extendScalars f).obj (descendedModule f M hf D) ≅ M := |
| 103 | Affine.Descent.baseChangeIso f hf (moduleDatum f M D) |
| 104 | |
| 105 | /-- Effective descent recovers the full coaction derived from the original Čech gluing. -/ |
| 106 | def descentDataIso (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : |
| 107 | (Comonad.comparison (extendRestrictScalarsAdj f)).obj (descendedModule f M hf D) ≅ |
| 108 | moduleDatum f M D := |
| 109 | Affine.Descent.descentDataIso f hf (moduleDatum f M D) |
| 110 | |
| 111 | end |
| 112 | |
| 113 | variable {R S : CommRingCat.{u}} (f : R ⟶ S) |
| 114 | |
| 115 | /-- Actual affine Čech gluing on the global sections of a geometric line bundle. -/ |
| 116 | structure LineDatum where |
| 117 | line : Line.Bundles.LineBundle (Spec S) |
| 118 | cech : RingMapDatum f.hom ((moduleSpecΓFunctor (R := S)).obj line.sheaf) |
| 119 | |
| 120 | /-- The geometric descent coaction is derived from the Čech isomorphism and its diagrams. -/ |
| 121 | def LineDatum.coactionDatum (D : LineDatum f) : Geometric.AffineDescent.LineDatum f where |
| 122 | line := D.line |
| 123 | coaction := (moduleDatum f.hom _ D.cech).a |
| 124 | counit := (moduleDatum f.hom _ D.cech).counit |
| 125 | coassoc := (moduleDatum f.hom _ D.cech).coassoc |
| 126 | |
| 127 | /-- Effective descent produces a genuine line bundle on a noetherian affine base. -/ |
| 128 | def descendedLine [IsNoetherianRing R] (hf : f.hom.FaithfullyFlat) (D : LineDatum f) : |
| 129 | Line.Bundles.LineBundle (Spec R) := |
| 130 | Geometric.AffineDescent.descend f hf D.coactionDatum |
| 131 | |
| 132 | /-- The geometric pullback of the constructed line bundle recovers the given bundle. -/ |
| 133 | def descendedLinePullbackIso [IsNoetherianRing R] (hf : f.hom.FaithfullyFlat) (D : LineDatum f) : |
| 134 | (Scheme.Modules.pullback (Spec.map f)).obj (descendedLine f hf D).sheaf ≅ D.line.sheaf := |
| 135 | Geometric.AffineDescent.descendPullbackIso f hf D.coactionDatum |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.EffectiveCechDescent |