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.CocycleCoalgebra |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleNormalization |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Cocycle |
| 4 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Geometric.AffineDescent |
| 5 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.EffectiveCechDescent |
| 6 | |
| 7 | /-! # Cocycle Effective Descent -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleEffectiveDescent |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Effective descent from an invertible affine Čech cocycle |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.ModuleCat TensorProduct _root_.AlgebraicGeometry |
| 18 | open scoped TensorProduct ChangeOfRings |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | section |
| 23 | |
| 24 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.ModuleModels OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Switch OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.TripleGluing OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Cocycle |
| 25 | |
| 26 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (M : ModuleCat.{u} S) |
| 27 | |
| 28 | /-- Ordinary invertible affine gluing with just the triple-overlap cocycle. -/ |
| 29 | structure CechCocycle where |
| 30 | gluing : Cech.ModuleModels.firstPullback R S M ≅ Cech.ModuleModels.secondPullback R S M |
| 31 | cocycle : Cech.TripleGluing.gluing12 R S M gluing ≫ Cech.TripleGluing.gluing23 R S M gluing = Cech.TripleGluing.gluing13 R S M gluing |
| 32 | |
| 33 | /-- The actual module cocycle gives the switch from which both coalgebra laws are derived. -/ |
| 34 | def CechCocycle.toSwitch (D : CechCocycle R S M) : |
| 35 | CocycleSwitchNext.CocycleSwitch R S ((restrictScalars (algebraMap R S)).obj M) where |
| 36 | switch := Cech.Switch.gluingSwitch R S M D.gluing |
| 37 | second_smul := Cech.Switch.gluingSwitch_second_smul R S M D.gluing |
| 38 | cocycle := Cech.Cocycle.gluingSwitch_cocycle R S M D.gluing D.cocycle |
| 39 | |
| 40 | @[ext] |
| 41 | theorem CechCocycle.ext (D E : CechCocycle R S M) (h : D.gluing = E.gluing) : D = E := by |
| 42 | cases D |
| 43 | cases E |
| 44 | cases h |
| 45 | rfl |
| 46 | |
| 47 | /-- Coaction extraction retains the entire original affine gluing isomorphism. -/ |
| 48 | theorem CechCocycle.eq_of_coaction_eq (D E : CechCocycle R S M) |
| 49 | (h : D.toSwitch.coaction = E.toSwitch.coaction) : D = E := by |
| 50 | apply CechCocycle.ext |
| 51 | apply EffectiveCechDescent.gluingSwitch_injective R S M D.gluing E.gluing |
| 52 | exact CocycleNormalization.switch_eq_of_coaction_eq D.toSwitch E.toSwitch h |
| 53 | |
| 54 | end |
| 55 | |
| 56 | section |
| 57 | |
| 58 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) (M : ModuleCat.{u} S) |
| 59 | |
| 60 | abbrev RingMapDatum := letI := f.toAlgebra; CechCocycle R S M |
| 61 | |
| 62 | def ringMapSwitch (D : RingMapDatum f M) : CocycleCoalgebra.CocycleSwitch f M := by |
| 63 | letI := f.toAlgebra |
| 64 | exact D.toSwitch |
| 65 | |
| 66 | /-- The module descent coalgebra is constructed from the ordinary Čech cocycle. -/ |
| 67 | def moduleDatum (D : RingMapDatum f M) : Affine.Descent.ModuleDatum f := |
| 68 | CocycleCoalgebra.moduleDatum f M (ringMapSwitch f M D) |
| 69 | |
| 70 | def descendedModule (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : ModuleCat.{u} R := |
| 71 | Affine.Descent.descendedModule f hf (moduleDatum f M D) |
| 72 | |
| 73 | /-- Effective faithfully flat descent recovers the original module. -/ |
| 74 | def baseChangeIso (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : |
| 75 | (extendScalars f).obj (descendedModule f M hf D) ≅ M := |
| 76 | Affine.Descent.baseChangeIso f hf (moduleDatum f M D) |
| 77 | |
| 78 | /-- It also recovers the entire coaction extracted from the original gluing. -/ |
| 79 | def descentDataIso (hf : f.FaithfullyFlat) (D : RingMapDatum f M) : |
| 80 | (Comonad.comparison (extendRestrictScalarsAdj f)).obj (descendedModule f M hf D) ≅ |
| 81 | moduleDatum f M D := |
| 82 | Affine.Descent.descentDataIso f hf (moduleDatum f M D) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | variable {R S : CommRingCat.{u}} (f : R ⟶ S) |
| 87 | |
| 88 | /-- A genuine line bundle with an invertible module Čech cocycle on its global sections. -/ |
| 89 | structure LineDatum where |
| 90 | line : Line.Bundles.LineBundle (Spec S) |
| 91 | cech : RingMapDatum f.hom ((moduleSpecΓFunctor (R := S)).obj line.sheaf) |
| 92 | |
| 93 | def LineDatum.coactionDatum (D : LineDatum f) : Geometric.AffineDescent.LineDatum f where |
| 94 | line := D.line |
| 95 | coaction := (moduleDatum f.hom _ D.cech).a |
| 96 | counit := (moduleDatum f.hom _ D.cech).counit |
| 97 | coassoc := (moduleDatum f.hom _ D.cech).coassoc |
| 98 | |
| 99 | /-- The cocycle descends the actual line bundle over a noetherian affine base. -/ |
| 100 | def descendedLine [IsNoetherianRing R] (hf : f.hom.FaithfullyFlat) (D : LineDatum f) : |
| 101 | Line.Bundles.LineBundle (Spec R) := |
| 102 | Geometric.AffineDescent.descend f hf D.coactionDatum |
| 103 | |
| 104 | /-- The pullback of the descended line bundle recovers the given geometric line bundle. -/ |
| 105 | def descendedLinePullbackIso [IsNoetherianRing R] (hf : f.hom.FaithfullyFlat) (D : LineDatum f) : |
| 106 | (Scheme.Modules.pullback (Spec.map f)).obj (descendedLine f hf D).sheaf ≅ D.line.sheaf := |
| 107 | Geometric.AffineDescent.descendPullbackIso f hf D.coactionDatum |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleEffectiveDescent |