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.HilbertConstruction.Local.TensorPowerValues |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.OpenIsomorphismGluing |
| 3 | |
| 4 | /-! # Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The power of a tensor product of line bundles is isomorphic to the tensor product of their powers, by gluing the checked local comparisons. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : Scheme.{u}} |
| 17 | |
| 18 | structure TensorPower.Gluing.TensorFrameOpen (L M : Line.Bundles.LineBundle X) where |
| 19 | openSet : X.Opens |
| 20 | leftFrame : Line.Bundles.structureModule openSet.toScheme ≅ (Scheme.Modules.pullback openSet.ι).obj L.sheaf |
| 21 | rightFrame : Line.Bundles.structureModule openSet.toScheme ≅ (Scheme.Modules.pullback openSet.ι).obj M.sheaf |
| 22 | |
| 23 | def TensorPower.Gluing.tensorFrameCover (L M : Line.Bundles.LineBundle X) : TensorPower.Gluing.TensorFrameOpen L M → X.Opens := TensorPower.Gluing.TensorFrameOpen.openSet |
| 24 | |
| 25 | theorem TensorPower.Gluing.tensorFrameCover_covers (L M : Line.Bundles.LineBundle X) (x : X) : |
| 26 | ∃ i : TensorPower.Gluing.TensorFrameOpen L M, x ∈ TensorPower.Gluing.tensorFrameCover L M i := by |
| 27 | obtain ⟨U, hxU, ⟨e⟩⟩ := L.locallyTrivial x |
| 28 | obtain ⟨V, hxV, ⟨f⟩⟩ := M.locallyTrivial x |
| 29 | exact ⟨⟨U ⊓ V, (L.frameRestrict inf_le_left e).symm, (M.frameRestrict inf_le_right f).symm⟩, |
| 30 | hxU, hxV⟩ |
| 31 | |
| 32 | def TensorPower.Gluing.tensorPowerComparisonData (L M : Line.Bundles.LineBundle X) (n : ℕ) : |
| 33 | Module.OpenMapGluing.OpenCoverModuleMaps (TensorPower.Gluing.tensorFrameCover L M) |
| 34 | (TensorPower.PowerSheaf.tensorPowerModule (Tensor.ProductSheaf.tensorModule L.sheaf M.sheaf) n) |
| 35 | (Tensor.ProductSheaf.tensorModule (TensorPower.PowerSheaf.tensorPowerModule L.sheaf n) (TensorPower.PowerSheaf.tensorPowerModule M.sheaf n)) where |
| 36 | localMap i := (Local.TensorPowerComparison.localTensorPowerRestrictionIso i.openSet.ι i.leftFrame.hom i.rightFrame.hom n).hom |
| 37 | agree i j V hi hj := by |
| 38 | change V ≤ i.openSet at hi |
| 39 | change V ≤ j.openSet at hj |
| 40 | let f : V.toScheme ⟶ i.openSet.toScheme := X.homOfLE hi |
| 41 | let g : V.toScheme ⟶ j.openSet.toScheme := X.homOfLE hj |
| 42 | have : IsOpenImmersion f := inferInstanceAs (IsOpenImmersion (X.homOfLE hi)) |
| 43 | have : IsOpenImmersion g := inferInstanceAs (IsOpenImmersion (X.homOfLE hj)) |
| 44 | have hfi : f ≫ i.openSet.ι = V.ι := X.homOfLE_ι hi |
| 45 | have hgj : g ≫ j.openSet.ι = V.ι := X.homOfLE_ι hj |
| 46 | have hiV : V ≤ (f ≫ i.openSet.ι).opensRange := by |
| 47 | intro x hx |
| 48 | change ∃ y : V.toScheme, (f ≫ i.openSet.ι) y = x |
| 49 | exact ⟨⟨x, hx⟩, congrArg (fun k : V.toScheme ⟶ X => k ⟨x, hx⟩) hfi⟩ |
| 50 | have hjV : V ≤ (g ≫ j.openSet.ι).opensRange := by |
| 51 | intro x hx |
| 52 | change ∃ y : V.toScheme, (g ≫ j.openSet.ι) y = x |
| 53 | exact ⟨⟨x, hx⟩, congrArg (fun k : V.toScheme ⟶ X => k ⟨x, hx⟩) hgj⟩ |
| 54 | have hiR : V ≤ i.openSet.ι.opensRange := by rwa [i.openSet.opensRange_ι] |
| 55 | have hjR : V ≤ j.openSet.ι.opensRange := by rwa [j.openSet.opensRange_ι] |
| 56 | have H : Local.TensorPowerValues.localTensorPowerValue i.openSet.ι i.leftFrame i.rightFrame n V hiR = |
| 57 | Local.TensorPowerValues.localTensorPowerValue j.openSet.ι j.leftFrame j.rightFrame n V hjR := |
| 58 | (Local.TensorPowerValues.localTensorPowerValue_comp f i.openSet.ι i.leftFrame i.rightFrame n V hiV).symm.trans |
| 59 | ((Local.TensorPowerValues.localTensorPowerValue_congr (hfi.trans hgj.symm) |
| 60 | (Local.TensorPowerValues.refinedPullbackFrame f i.openSet.ι i.leftFrame) (Local.TensorPowerValues.refinedPullbackFrame g j.openSet.ι j.leftFrame) |
| 61 | (Local.TensorPowerValues.refinedPullbackFrame f i.openSet.ι i.rightFrame) (Local.TensorPowerValues.refinedPullbackFrame g j.openSet.ι j.rightFrame) |
| 62 | n V hiV hjV).trans |
| 63 | (Local.TensorPowerValues.localTensorPowerValue_comp g j.openSet.ι j.leftFrame j.rightFrame n V hjV)) |
| 64 | exact (Local.TensorPowerValues.localTensorPowerValue_restriction i.openSet.ι i.leftFrame i.rightFrame n V hiR).trans |
| 65 | (H.trans (Local.TensorPowerValues.localTensorPowerValue_restriction j.openSet.ι j.leftFrame j.rightFrame n V hjR).symm) |
| 66 | |
| 67 | def Line.Bundles.LineBundle.tensorPowerTensorIso (L M : Line.Bundles.LineBundle X) (n : ℕ) : |
| 68 | ((L.tensor M).tensorPower n).sheaf ≅ ((L.tensorPower n).tensor (M.tensorPower n)).sheaf := |
| 69 | (TensorPower.Gluing.tensorPowerComparisonData L M n).glueIso (TensorPower.Gluing.tensorFrameCover_covers L M) |
| 70 | (fun i => inferInstanceAs (IsIso |
| 71 | (Local.TensorPowerComparison.localTensorPowerRestrictionIso i.openSet.ι i.leftFrame.hom i.rightFrame.hom n).hom)) |
| 72 | |
| 73 | theorem Line.Bundles.LineBundle.tensorPowerTensorIso_restrict (L M : Line.Bundles.LineBundle X) (n : ℕ) (i : TensorPower.Gluing.TensorFrameOpen L M) : |
| 74 | (Scheme.Modules.restrictFunctor i.openSet.ι).map (L.tensorPowerTensorIso M n).hom = |
| 75 | (Local.TensorPowerComparison.localTensorPowerRestrictionIso i.openSet.ι i.leftFrame.hom i.rightFrame.hom n).hom := |
| 76 | (TensorPower.Gluing.tensorPowerComparisonData L M n).glueIso_restrict (TensorPower.Gluing.tensorFrameCover_covers L M) _ i |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |