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.TruncatedModel.FinitePointValueData |
| 2 | |
| 3 | /-! # Finite Point Value -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.FinitePointValue |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The original finite point class has its signed bounded residue |
| 10 | value through the selected component and the actual Serre maps. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite _root_.HomologicalComplex |
| 12 | open scoped TensorProduct |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | private theorem join_equalities {A : Type*} {a b c d : A} |
| 19 | (hab : a = b) (hcd : c = d) (hbc : b = c) : a = d := |
| 20 | hab.trans (hbc.trans hcd) |
| 21 | |
| 22 | private theorem lift_square_postcompose {A B C : AddCommGrpCat.{0}} |
| 23 | {T S : AddCommGrpCat.{2}} (a : A ⟶ B) (c : A ⟶ C) |
| 24 | (b : AdditiveTop.Comparison.lift.obj B ⟶ T) |
| 25 | (d : AdditiveTop.Comparison.lift.obj C ⟶ T) (e : T ⟶ S) |
| 26 | (h : AdditiveTop.Comparison.lift.map a ≫ b = |
| 27 | AdditiveTop.Comparison.lift.map c ≫ d) (x : A) : |
| 28 | e (b (ULift.up.{2,1} (ULift.up.{1,0} (a x)))) = |
| 29 | e (d (ULift.up.{2,1} (ULift.up.{1,0} (c x)))) := |
| 30 | congrArg e (ConcreteCategory.congr_hom h (ULift.up.{2,1} (ULift.up.{1,0} x))) |
| 31 | |
| 32 | variable (p : ℕ) [Fact p.Prime] (k : Type) [Field k] [Fintype k] [CharP k p] |
| 33 | (n : ℕ) [IsNoetherianRing (Truncated.Witt.Ring p k n)] |
| 34 | [IsArtinianRing (Truncated.Witt.Ring p k n)] [IsLocalRing (Truncated.Witt.Ring p k n)] |
| 35 | [Module.Injective (Truncated.Witt.Ring p k n) (Truncated.Witt.Ring p k n)] {d g : ℕ} |
| 36 | attribute [local instance] MvPolynomial.gradedAlgebra IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 37 | variable (X Y : Over (Spec (CommRingCat.of (Truncated.Witt.Ring p k n)))) [Nonempty X.left] (f : Y ⟶ X) |
| 38 | [IsFinite f.left] [Etale f.left] |
| 39 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model (Truncated.Witt.Ring p k n) (d+1)) [IsClosedImmersion i.left] |
| 40 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 41 | [Smooth Y.hom] [IsProper Y.hom] [GeometricallyConnected Y.hom] |
| 42 | [SmoothOfRelativeDimension g X.hom] [SmoothOfRelativeDimension g Y.hom] |
| 43 | (s₀ : Spec (CommRingCat.of (Truncated.Witt.Ring p k n)) ⟶ Y.left) (hbase : s₀ ≫ Y.hom = 𝟙 _) |
| 44 | (B : ℕ) (hB : d+2≤B) (U : (Projective.IntrinsicOverlap.Intrinsic.space (Truncated.Witt.Ring p k n) (d+1)).Opens) (hU : IsAffineOpen U) |
| 45 | (D : ProjectivePoint.PointParameterData.Chart.Data X i (s₀ ≫ f.left) g U hU) |
| 46 | (hgood : FiniteEtale.TraceBasis.Good (Truncated.Witt.Ring p k n) Y X f (i.left ⁻¹ᵁ U)) |
| 47 | (z : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) |
| 48 | (hz : |
| 49 | letI : Algebra (Truncated.Witt.Ring p k n) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (Truncated.Witt.Ring p k n) X (i.left ⁻¹ᵁ U) |
| 50 | letI : Algebra (Truncated.Witt.Ring p k n) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 51 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (Truncated.Witt.Ring p k n) Y (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 52 | letI := IntegralComparison.Finite.SectionEvaluation.quotientAlgebra (Truncated.Witt.Ring p k n) X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains |
| 53 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := hgood.2.2 |
| 54 | 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 |
| 55 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 56 | AffineOpen.DeRhamTrace.sectionEtale (Truncated.Witt.Ring p k n) Y X f (i.left ⁻¹ᵁ U) hgood.1 |
| 57 | (1 ⊗ₜ[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U] z : (Truncated.Witt.Ring p k n) ⊗[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U] IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) = |
| 58 | FiniteEtale.FiberSectionTrace.component (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) (Truncated.Witt.Ring p k n) |
| 59 | (IntegralComparison.Finite.SectionEvaluation.evaluation (Truncated.Witt.Ring p k n) X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains)) |
| 60 | (he : |
| 61 | letI : Algebra (Truncated.Witt.Ring p k n) (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i.left U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (Truncated.Witt.Ring p k n) X (i.left ⁻¹ᵁ U) |
| 62 | letI : Algebra (Truncated.Witt.Ring p k n) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := |
| 63 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra (Truncated.Witt.Ring p k n) Y (f.left ⁻¹ᵁ (i.left ⁻¹ᵁ U)) |
| 64 | letI := IntegralComparison.Finite.SectionEvaluation.quotientAlgebra (Truncated.Witt.Ring p k n) X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains |
| 65 | IntegralComparison.Finite.SectionEvaluation.evaluation (Truncated.Witt.Ring p k n) X Y f s₀ hbase (i.left ⁻¹ᵁ U) D.contains z = 1) |
| 66 | |
| 67 | attribute [local instance] IntegralComparison.Smooth.ProjectivePointTransfer.sourceSeparated |
| 68 | IntegralComparison.Smooth.ProjectiveSectionClassData.composite_smooth |
| 69 | IntegralComparison.Smooth.ProjectiveFormTrace.composite_proper IntegralComparison.Smooth.ProjectiveFormTrace.composite_connected |
| 70 | |
| 71 | variable (Z : Over (Spec (CommRingCat.of k))) [IsSeparated Z.hom] (j : Z.left ⟶ Y.left) |
| 72 | (hp : IsPullback j Z.hom Y.hom |
| 73 | (Spec.map (CommRingCat.ofHom (Truncated.Witt.reduction p k n)))) |
| 74 | (I : InjectiveResolution (BoundedCrystalline.CrystallineCohomology.structureSheaf (p := p) |
| 75 | (J := Ideal.span {(p : WittVector p k)}) (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) |
| 76 | (Witt.Crystalline.wittStructureMap p k Z) n)) |
| 77 | |
| 78 | variable (r : WittVector p k) |
| 79 | (hr : Truncated.Witt.quotient p k n r = FinitePointValueData.rawValue p k n X Y f i s₀ hbase B hB U hU D) |
| 80 | {κ : Type} [CommRing κ] |
| 81 | (η : Γ(Y.left,(FinitePointValueData.selectedOpen p k n X Y f i U hgood z).val) →+* κ) |
| 82 | (hk : Koszul.OrientedTopCohomology.ideal Γ(Y.left,(FinitePointValueData.selectedOpen p k n X Y f i U hgood z).val) |
| 83 | (FinitePointValueData.parameters p k n X Y f i s₀ U hU D hgood z) = RingHom.ker η) |
| 84 | (hzlocal : η (Y.left.presheaf.map (homOfLE (FinitePointValueData.selectedBelow p k n X Y f i U hgood z)).op z) = 1) |
| 85 | |
| 86 | abbrev global_coordinate := lift_square_postcompose |
| 87 | (SerreGlobal.Finite.output p k n X Y f i g D.codimension) |
| 88 | (Intrinsic.EtaleProperTraceBase.IntrinsicFinite.serreIso X Y f i g).inv |
| 89 | (PrincipalSheafValue.globalValue p k n Y Z j hp I g D.codimension |
| 90 | (FinitePointValueData.cover p k n X Y f i) (FinitePointValueData.coverFull p k n X Y f i)) |
| 91 | (ModelTopCoverComparison.globalInput p k n Y Z j hp I g |
| 92 | (FinitePointValueData.cover p k n X Y f i) (FinitePointValueData.coverFull p k n X Y f i)) |
| 93 | (AdditiveGlobal.globalHomologyIso p k n Y Z j I (g+g)).hom |
| 94 | (SerreGlobal.Finite.comparison p k n X Y f i Z j hp I g D.codimension) |
| 95 | (FinitePointValueData.tracePoint (g := g) p k n X Y f i s₀ hbase B hB) |
| 96 | |
| 97 | attribute [local irreducible] HomologicalComplex.homology |
| 98 | |
| 99 | include he hk hzlocal hr in |
| 100 | omit [GeometricallyConnected X.hom] in |
| 101 | theorem fraction : FinitePointValueData.pointValue p k n X Y f i s₀ hbase B hB U hU D Z j hp I = |
| 102 | ComplexShape.σ (.up ℕ) (.up ℕ) (.up ℕ) D.codimension g • |
| 103 | (ComplexShape.σ (.up ℕ) (.up ℕ) (.up ℕ) g g • |
| 104 | ((⟨r⟩ : Crystalline.ExactRestriction.Coeff (B := WittVector p k)) • |
| 105 | FinitePointValueData.residue p k n X Y f i s₀ hbase U hU D hgood z hz Z j hp I)) := by |
| 106 | have hm := ConcreteCategory.congr_hom (FinitePointValueData.output_map p k n X Y f i s₀ U hU D) |
| 107 | (FinitePointValueData.tracePoint (g := g) p k n X Y f i s₀ hbase B hB) |
| 108 | have hn := FinitePointValueData.native_recovery p k n X Y f i s₀ hbase B hB U hU D hgood z hz he |
| 109 | have hi := join_equalities hm hn (by as_aux_lemma => rfl) |
| 110 | have h := congrArg (FinitePointValueData.evaluate p k n X Y f i s₀ U hU D Z j hp I) hi |
| 111 | exact h.trans (FinitePointValueData.local_fraction p k n X Y f i s₀ hbase B hB U hU D hgood z hz Z j hp I r hr η hk hzlocal) |
| 112 | |
| 113 | include he hk hzlocal hr in |
| 114 | abbrev global_fraction := by |
| 115 | have hc := global_coordinate p k n X Y f i s₀ hbase B hB U hU D Z j hp I |
| 116 | have hf := fraction p k n X Y f i s₀ hbase B hB U hU D hgood z hz he Z j hp I r hr η hk hzlocal |
| 117 | exact join_equalities hc.symm hf (by as_aux_lemma => rfl) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TruncatedModel.FinitePointValue |