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.Finite.MapPureTrace |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartSections |
| 3 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule |
| 4 | import Mathlib.RingTheory.Flat.EquationalCriterion |
| 5 | |
| 6 | /-! # Flat Coefficient Sections -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The original iterated direct-image coefficients on an affine ambient |
| 13 | open are the genuine finite projective algebra of the finite flat map. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | variable {Y X Z : Scheme.{u}} (f : Y ⟶ X) (i : X ⟶ Z) (U : Z.Opens) |
| 21 | |
| 22 | abbrev quotientRing := Γ(X, i ⁻¹ᵁ U) |
| 23 | abbrev coefficientRing := Γ(Y, f ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 24 | |
| 25 | @[instance_reducible] def quotientAlgebra : Algebra Γ(Z, U) (quotientRing i U) := |
| 26 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionAlgebra i U |
| 27 | |
| 28 | @[instance_reducible] def coefficientAlgebra : |
| 29 | Algebra (quotientRing i U) (coefficientRing f i U) := |
| 30 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionAlgebra f (i ⁻¹ᵁ U) |
| 31 | |
| 32 | @[instance_reducible] def ambientAlgebra : Algebra Γ(Z, U) (coefficientRing f i U) := |
| 33 | ((f.app (i ⁻¹ᵁ U)).hom.comp (i.app U).hom).toAlgebra |
| 34 | |
| 35 | attribute [local instance] quotientAlgebra coefficientAlgebra ambientAlgebra |
| 36 | |
| 37 | instance scalarTower : IsScalarTower Γ(Z, U) (quotientRing i U) (coefficientRing f i U) := |
| 38 | IsScalarTower.of_algebraMap_eq' rfl |
| 39 | |
| 40 | def literalIso : |
| 41 | (Affine.ModuleExactSections.sections U).obj (Cech.StructurePullbackUnit.coefficients f i) ≅ |
| 42 | ModuleCat.of Γ(Z, U) (coefficientRing f i U) := |
| 43 | (show Γ(Cech.StructurePullbackUnit.coefficients f i, U) ≃ₗ[Γ(Z, U)] |
| 44 | coefficientRing f i U from |
| 45 | { toFun := fun x => x |
| 46 | invFun := fun x => x |
| 47 | left_inv := fun _ => rfl |
| 48 | right_inv := fun _ => rfl |
| 49 | map_add' := fun _ _ => rfl |
| 50 | map_smul' := fun _ _ => rfl }).toModuleIso |
| 51 | |
| 52 | def chartIso (hU : IsAffineOpen U) : |
| 53 | (AffineOpen.InternalHom.sections U hU).obj (Cech.StructurePullbackUnit.coefficients f i) ≅ |
| 54 | ModuleCat.of Γ(Z, U) (coefficientRing f i U) := |
| 55 | (Affine.ChartSections.iso U hU (Cech.StructurePullbackUnit.coefficients f i)).symm ≪≫ |
| 56 | literalIso f i U |
| 57 | |
| 58 | variable [IsFinite f] [Flat f] [IsClosedImmersion i] [IsLocallyNoetherian X] |
| 59 | (hU : IsAffineOpen U) |
| 60 | |
| 61 | include hU in |
| 62 | omit [Flat f] [IsLocallyNoetherian X] in |
| 63 | theorem finite : Module.Finite (quotientRing i U) (coefficientRing f i U) := |
| 64 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_finite f (i ⁻¹ᵁ U) (hU.preimage i) |
| 65 | |
| 66 | include hU in |
| 67 | theorem projective : Module.Projective (quotientRing i U) (coefficientRing f i U) := by |
| 68 | let : Module.Flat (quotientRing i U) (coefficientRing f i U) := |
| 69 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_flat f (i ⁻¹ᵁ U) (hU.preimage i) |
| 70 | let : IsNoetherianRing (quotientRing i U) := |
| 71 | IsLocallyNoetherian.component_noetherian ⟨i ⁻¹ᵁ U, hU.preimage i⟩ |
| 72 | let : Module.FinitePresentation (quotientRing i U) (coefficientRing f i U) := |
| 73 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_finitePresentation f (i ⁻¹ᵁ U) (hU.preimage i) |
| 74 | exact Module.Flat.projective_of_finitePresentation |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |