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.ProjectiveFinite.SelectedFixed |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.ResidueRecovery |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointResidue |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.SourceIntrinsicRecovery |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FiberPrincipalSupport |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.ParameterSource |
| 7 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.SectionSourceCoordinates |
| 8 | |
| 9 | /-! # Selected Source Recovery -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.SelectedSourceRecovery |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! The original finite point section is recovered by the actual |
| 16 | selected native principal comparison. Scalar fixedness and all support |
| 17 | conditions are derived from the selected fiber component. -/ |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite _root_.HomologicalComplex |
| 19 | open scoped TensorProduct |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | private theorem join_equalities {A : Type*} {a b c d : A} |
| 25 | (hab : a = b) (hcd : c = d) (hbc : b = c) : a = d := |
| 26 | hab.trans (hbc.trans hcd) |
| 27 | |
| 28 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 29 | variable {R : Type} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 30 | [IsArtinianRing R] [IsLocalRing R] {n g : ℕ} |
| 31 | attribute [local instance] MvPolynomial.gradedAlgebra IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 32 | variable (X Y : Over (Spec (CommRingCat.of R))) [Nonempty X.left] (f : Y ⟶ X) |
| 33 | [IsFinite f.left] [Etale f.left] |
| 34 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n+1)) [IsClosedImmersion i.left] |
| 35 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 36 | [Smooth Y.hom] [IsProper Y.hom] [GeometricallyConnected Y.hom] |
| 37 | [SmoothOfRelativeDimension g X.hom] |
| 38 | (s₀ : Spec (CommRingCat.of R) ⟶ Y.left) (hbase : s₀ ≫ Y.hom = 𝟙 _) |
| 39 | (B : ℕ) (hB : n+2≤B) (U : (Projective.IntrinsicOverlap.Intrinsic.space R (n+1)).Opens) (hU : IsAffineOpen U) |
| 40 | (D : ProjectivePoint.PointParameterData.Chart.Data X i (s₀ ≫ f.left) g U hU) |
| 41 | (hgood : TraceBasis.Good R Y X f (i.left ⁻¹ᵁ U)) |
| 42 | (z : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) |
| 43 | (hz : |
| 44 | letI : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i.left ⁻¹ᵁ U) |
| 45 | letI : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 46 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 47 | letI := IntegralComparison.Finite.SectionEvaluation.quotientAlgebra R X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains |
| 48 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := hgood.2.2 |
| 49 | letI : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := f.left.finite_app _ hgood.1 |
| 50 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 51 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i.left ⁻¹ᵁ U) hgood.1 |
| 52 | (1 ⊗ₜ[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U] z : R ⊗[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U] IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) = |
| 53 | FiberSectionTrace.component (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) R |
| 54 | (IntegralComparison.Finite.SectionEvaluation.evaluation R X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains)) |
| 55 | (he : |
| 56 | letI : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i.left ⁻¹ᵁ U) |
| 57 | letI : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 58 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 59 | letI := IntegralComparison.Finite.SectionEvaluation.quotientAlgebra R X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains |
| 60 | IntegralComparison.Finite.SectionEvaluation.evaluation R X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains z = 1) |
| 61 | |
| 62 | attribute [local instance] IntegralComparison.Smooth.ProjectivePointTransfer.sourceSeparated |
| 63 | IntegralComparison.Smooth.ProjectiveSectionClassData.composite_smooth |
| 64 | IntegralComparison.Smooth.ProjectiveFormTrace.composite_proper IntegralComparison.Smooth.ProjectiveFormTrace.composite_connected |
| 65 | |
| 66 | abbrev forms := GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R Y g |
| 67 | local instance forms_qc : (forms (g := g) Y).IsQuasicoherent := |
| 68 | IntegralComparison.Smooth.FormCoherence.Integral.quasicoherent R Y g |
| 69 | local instance pushedForms_qc : ((Scheme.Modules.pushforward f.left).obj |
| 70 | (forms (g := g) Y)).IsQuasicoherent := |
| 71 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom f.left |
| 72 | local instance projectiveSeparated : (Projective.IntrinsicOverlap.Intrinsic.model R (n+1)).left.IsSeparated := by |
| 73 | change (Proj (homogeneousSubmodule (Fin (n+2)) R)).IsSeparated |
| 74 | constructor |
| 75 | rw [← terminal.comp_from (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n+2)))] |
| 76 | infer_instance |
| 77 | |
| 78 | include hbase in |
| 79 | abbrev sourceClosed : IsClosedImmersion s₀ := by |
| 80 | let : Subsingleton (Spec (CommRingCat.of R)) := Ring.KrullDimLE.subsingleton_primeSpectrum R |
| 81 | exact isClosedImmersion_of_comp_eq_id Y.hom s₀ hbase |
| 82 | abbrev targetClosed := ResidueRecoveryData.section_closed X Y f i s₀ hbase |
| 83 | abbrev targetSection := SectionEvaluationNaturality.image_retraction R Y X f s₀ hbase |
| 84 | |
| 85 | local instance sourceBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 86 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 87 | local instance targetBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) := |
| 88 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i.left ⁻¹ᵁ U) |
| 89 | local instance baseTower : IsScalarTower R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 90 | AffineOpen.DeRhamTrace.sectionTower R Y X f (i.left ⁻¹ᵁ U) |
| 91 | |
| 92 | abbrev selectedSection := Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 93 | (z • OrdinaryFormScalars.Ordinary.map R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) g |
| 94 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) 1 (fun a => i.left.app U (D.parameters a)))) |
| 95 | |
| 96 | abbrev selectedClass := by |
| 97 | letI := targetClosed X Y f i s₀ hbase |
| 98 | exact ProjectivePoint.SectionCoordinates.sectionClass X i (s₀ ≫ f.left) |
| 99 | (targetSection X Y f s₀ hbase) B hB U hU D |
| 100 | ((Scheme.Modules.pushforward f.left).obj (forms (g := g) Y)) |
| 101 | (selectedSection X Y f i s₀ U hU D z) |
| 102 | |
| 103 | abbrev residue_eq := by |
| 104 | letI := D.finiteVariables |
| 105 | letI := D.coordinates |
| 106 | letI := D.coordinateTower |
| 107 | letI := D.coordinateEtale |
| 108 | have h := ProjectiveFinite.EtalePointResidue.eq_residue D.dimension X Y f i s₀ hbase B hB U hU |
| 109 | D.contains hgood D.coordinate D.below_coordinate D.equations D.generates D.regular |
| 110 | D.conormalBasis D.conormalBasis_apply D.quotientBasis D.parameters D.quotientBasis_apply |
| 111 | D.point_generates D.point_regular D.ambientBasis D.ambientBasis_apply D.coordinateIndex z hz |
| 112 | exact h |
| 113 | |
| 114 | abbrev selected_fixed := ProjectiveFinite.SelectedFixed.fixed X Y f i s₀ hbase B hB U hU D hgood z hz he |
| 115 | |
| 116 | abbrev supportConditions := by |
| 117 | letI := sourceClosed Y s₀ hbase |
| 118 | letI := targetClosed X Y f i s₀ hbase |
| 119 | exact IntegralComparison.Finite.FiberPrincipalSupport.conditions R X Y f i.left s₀ hbase U hU D.contains hgood z hz |
| 120 | D.parameters (ProjectivePoint.ParameterSource.span X i (s₀ ≫ f.left) g U hU D.toParameterData) |
| 121 | |
| 122 | abbrev selectedAffine : IsAffineOpen (Y.left.basicOpen z) := (hgood.1.preimage f.left).basicOpen z |
| 123 | abbrev selectedBelow : Y.left.basicOpen z ≤ (f.left ≫ i.left) ⁻¹ᵁ U := Y.left.basicOpen_le z |
| 124 | abbrev cover := AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n+2)) |
| 125 | abbrev coverFull := AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.iSup_coordinateOpenCover_eq_top (R := R) (σ := Fin (n+2)) |
| 126 | abbrev coverAffine := AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover_isAffineOpen (R := R) (σ := Fin (n+2)) |
| 127 | abbrev baseMap := AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n+2)) |
| 128 | |
| 129 | omit [IsNoetherianRing R] [Module.Injective R R] [Nonempty X.left] [Etale f.left] |
| 130 | [Smooth X.hom] [GeometricallyConnected X.hom] [GeometricallyConnected Y.hom] |
| 131 | [SmoothOfRelativeDimension g X.hom] in |
| 132 | theorem ordinary_map : |
| 133 | letI : IsClosedImmersion (s₀ ≫ f.left) := targetClosed X Y f i s₀ hbase |
| 134 | ResidueRecoveryData.ordinaryMap X Y f i s₀ hbase U hU D = |
| 135 | PrincipalPoint.Source.Comparison.ordinaryMap f.left i.left |
| 136 | (baseMap (R := R) (n := n)) (s₀ ≫ f.left) U hU D.contains |
| 137 | D.equations D.parameters D.generates |
| 138 | ((KoszulPoint.Ideal.append _ D.equations D.parameters).symm.trans D.point_generates) |
| 139 | (cover (R := R) (n := n)) (coverFull (R := R) (n := n)) (coverAffine (R := R) (n := n)) |
| 140 | (forms (g := g) Y) (D.codimension+g) (Nat.add_comm D.codimension g) := rfl |
| 141 | |
| 142 | abbrev selected_original_recovery := by |
| 143 | have h := residue_eq X Y f i s₀ hbase B hB U hU D hgood z hz |
| 144 | have hr := ResidueRecovery.comparison X Y f i s₀ hbase B hB U hU D |
| 145 | have he : ResidueRecoveryData.residue X Y f i s₀ hbase B hB U hU D = |
| 146 | selectedClass X Y f i s₀ hbase B hB U hU D z := by |
| 147 | convert h using 1 <;> (as_aux_lemma => rfl) |
| 148 | exact (congrArg (ResidueRecoveryData.ordinaryMap X Y f i s₀ hbase U hU D) he).symm.trans hr |
| 149 | |
| 150 | abbrev native_recovery := by |
| 151 | letI := targetClosed X Y f i s₀ hbase |
| 152 | let hfixed := selected_fixed X Y f i s₀ hbase B hB U hU D hgood z hz he |
| 153 | have hn := PrincipalPoint.SourceIntrinsicRecovery.Intrinsic.recovery f.left i.left |
| 154 | (baseMap (R := R) (n := n)) (s₀ ≫ f.left) U hU D.contains D.equations D.parameters D.generates |
| 155 | ((KoszulPoint.Ideal.append _ D.equations D.parameters).symm.trans D.point_generates) |
| 156 | (cover (R := R) (n := n)) (coverFull (R := R) (n := n)) (coverAffine (R := R) (n := n)) |
| 157 | (forms (g := g) Y) z (SectionIdealPuncturedCover.outside s₀.ker) |
| 158 | (supportConditions X Y f i s₀ hbase U hU D hgood z hz) |
| 159 | (selectedAffine X Y f i U hgood z) (selectedBelow X Y f i U z) |
| 160 | (selectedClass X Y f i s₀ hbase B hB U hU D z) hfixed |
| 161 | have hr := selected_original_recovery X Y f i s₀ hbase B hB U hU D hgood z hz |
| 162 | have hs := congrArg (PrincipalPoint.Source.Comparison.sourceOutput |
| 163 | (c := D.codimension) (g := g) f.left i.left (baseMap (R := R) (n := n)) |
| 164 | (cover (R := R) (n := n)) (forms (g := g) Y)) hr |
| 165 | have hm := ConcreteCategory.congr_hom (ordinary_map X Y f i s₀ hbase U hU D) |
| 166 | (selectedClass X Y f i s₀ hbase B hB U hU D z) |
| 167 | exact join_equalities hs.symm hn |
| 168 | (congrArg (PrincipalPoint.Source.Comparison.sourceOutput |
| 169 | (c := D.codimension) (g := g) f.left i.left (baseMap (R := R) (n := n)) |
| 170 | (cover (R := R) (n := n)) (forms (g := g) Y)) hm) |
| 171 | |
| 172 | end |
| 173 | |
| 174 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.SelectedSourceRecovery |