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.NumberTheory.PadicHodge.IntegralComparison.Affine.HomEvaluation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.QuasicoherentLocalization |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | |
| 5 | /-! # Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Quasicoherent sections on an actual principal subopen are the |
| 12 | canonical scalar extension, including the original evaluation map. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) (r : Γ(X, U)) |
| 23 | |
| 24 | abbrev openSubset := X.basicOpen r |
| 25 | abbrev inclusion : openSubset U r ⟶ U := homOfLE (X.basicOpen_le r) |
| 26 | |
| 27 | local instance sectionModule (M : X.Modules) : |
| 28 | Module Γ(X, U) Γ(M, openSubset U r) := |
| 29 | Module.compHom _ (algebraMap Γ(X, U) Γ(X, openSubset U r)) |
| 30 | |
| 31 | local instance sectionTower (M : X.Modules) : |
| 32 | IsScalarTower Γ(X, U) Γ(X, openSubset U r) Γ(M, openSubset U r) where |
| 33 | smul_assoc a b m := by |
| 34 | change (algebraMap Γ(X, U) Γ(X, openSubset U r) a * b) • m = |
| 35 | algebraMap Γ(X, U) Γ(X, openSubset U r) a • (b • m) |
| 36 | exact mul_smul _ _ _ |
| 37 | |
| 38 | def restriction (M : X.Modules) : Γ(M, U) →ₗ[Γ(X, U)] Γ(M, openSubset U r) where |
| 39 | toFun := M.presheaf.map (inclusion U r).op |
| 40 | map_add' := map_add _ |
| 41 | map_smul' a m := M.map_smul (inclusion U r) a m |
| 42 | |
| 43 | include hU in |
| 44 | theorem isBaseChange (M : X.Modules) [M.IsQuasicoherent] : |
| 45 | IsBaseChange Γ(X, openSubset U r) (restriction U r M) := by |
| 46 | let : IsLocalization.Away r Γ(X, openSubset U r) := hU.isLocalization_basicOpen r |
| 47 | let : IsLocalizedModule.Away r (restriction U r M) := |
| 48 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.QuasicoherentLocalization.affineOpen_quasicoherent_sections_localize M ⟨U, hU⟩ r |
| 49 | exact IsLocalizedModule.isBaseChange (Submonoid.powers r) Γ(X, openSubset U r) _ |
| 50 | |
| 51 | def iso (M : X.Modules) [M.IsQuasicoherent] : |
| 52 | Γ(X, openSubset U r) ⊗[Γ(X, U)] Γ(M, U) ≃ₗ[Γ(X, openSubset U r)] Γ(M, openSubset U r) := |
| 53 | (Sections.isBaseChange U hU r M).equiv |
| 54 | |
| 55 | @[simp] |
| 56 | theorem iso_tmul (M : X.Modules) [M.IsQuasicoherent] |
| 57 | (a : Γ(X, openSubset U r)) (m : Γ(M, U)) : |
| 58 | iso U hU r M (a ⊗ₜ[Γ(X, U)] m) = a • M.presheaf.map (inclusion U r).op m := rfl |
| 59 | |
| 60 | theorem iso_tmul_one (M : X.Modules) [M.IsQuasicoherent] (m : Γ(M, U)) : |
| 61 | iso U hU r M (1 ⊗ₜ[Γ(X, U)] m) = M.presheaf.map (inclusion U r).op m := by |
| 62 | rw [iso_tmul, one_smul] |
| 63 | |
| 64 | theorem naturality {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 65 | (f : M ⟶ N) (x : Γ(X, openSubset U r) ⊗[Γ(X, U)] Γ(M, U)) : |
| 66 | iso U hU r N ((f.val.app (op U)).hom.baseChange Γ(X, openSubset U r) x) = |
| 67 | f.val.app (op (openSubset U r)) (iso U hU r M x) := by |
| 68 | induction x using TensorProduct.inductionOn with |
| 69 | | add x y hx hy => simp only [map_add, hx, hy] |
| 70 | | tmul a m => |
| 71 | rw [LinearMap.baseChange_tmul, iso_tmul, iso_tmul, map_smul] |
| 72 | exact congrArg (fun z => a • z) |
| 73 | (PresheafOfModules.naturality_apply f.val (inclusion U r).op m).symm |
| 74 | |
| 75 | theorem evaluation_restriction (M N : X.Modules) |
| 76 | (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U)) (m : Γ(M, U)) : |
| 77 | Affine.HomEvaluation.evaluation M N (openSubset U r) |
| 78 | ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N).presheaf.map (inclusion U r).op q) |
| 79 | (M.presheaf.map (inclusion U r).op m) = |
| 80 | N.presheaf.map (inclusion U r).op (Affine.HomEvaluation.evaluation M N U q m) := |
| 81 | Affine.HomEvaluation.restriction M N U (inclusion U r) q m |
| 82 | |
| 83 | theorem evaluation_iso_tmul (M N : X.Modules) |
| 84 | [M.IsQuasicoherent] [N.IsQuasicoherent] [(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N).IsQuasicoherent] |
| 85 | (a b : Γ(X, openSubset U r)) |
| 86 | (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U)) (m : Γ(M, U)) : |
| 87 | Affine.HomEvaluation.evaluation M N (openSubset U r) |
| 88 | (iso U hU r (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N) (a ⊗ₜ[Γ(X, U)] q)) |
| 89 | (iso U hU r M (b ⊗ₜ[Γ(X, U)] m)) = |
| 90 | iso U hU r N ((a * b) ⊗ₜ[Γ(X, U)] Affine.HomEvaluation.evaluation M N U q m) := by |
| 91 | simp only [iso_tmul, map_smul, LinearMap.smul_apply] |
| 92 | rw [evaluation_restriction, mul_smul] |
| 93 | exact smul_comm _ _ _ |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections |