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.ProjectivePoint.ParameterFrame |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.DifferentialBasis |
| 3 | |
| 4 | /-! # Parameter Restriction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.ParameterRestriction.Chart |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Literal principal restriction of projective point parameter data, |
| 11 | including its matching ambient differential basis. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | |
| 19 | private theorem restricted_append {Y : Scheme.{u}} (U : Y.Opens) (r : Γ(Y,U)) |
| 20 | {c g : ℕ} (s : Fin c → Γ(Y,U)) (t : Fin g → Γ(Y,U)) : |
| 21 | IdealSheafPrincipalEquations.sequence U r (Fin.append s t) = |
| 22 | Fin.append (IdealSheafPrincipalEquations.sequence U r s) |
| 23 | (IdealSheafPrincipalEquations.sequence U r t) := by |
| 24 | funext i |
| 25 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i <;> |
| 26 | simp only [IdealSheafPrincipalEquations.sequence, Fin.append_left, Fin.append_right] |
| 27 | |
| 28 | private theorem reindex_reverse {A M : Type*} [CommRing A] [AddCommGroup M] [Module A M] |
| 29 | {r n : ℕ} (b : Module.Basis (Fin n) A M) (h : r=n) (i : Fin r) : |
| 30 | (b.reindex (finCongr h.symm)) i = b (Fin.cast h i) := by |
| 31 | subst n |
| 32 | simp |
| 33 | |
| 34 | private theorem reindex_forward {A M : Type*} [CommRing A] [AddCommGroup M] [Module A M] |
| 35 | {r n : ℕ} (b : Module.Basis (Fin r) A M) (h : r=n) (i : Fin r) : |
| 36 | (b.reindex (finCongr h)) (Fin.cast h i) = b i := by |
| 37 | subst n |
| 38 | simp |
| 39 | |
| 40 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {N : ℕ} |
| 41 | attribute [local instance] MvPolynomial.gradedAlgebra PointParameterData.Chart.ambientAlgebra |
| 42 | variable (X : Over (Spec (CommRingCat.of R))) (f : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R N) |
| 43 | [IsClosedImmersion f.left] (z : Spec (CommRingCat.of R) ⟶ X.left) |
| 44 | (g : ℕ) (U : (Projective.IntrinsicOverlap.Intrinsic.space R N).Opens) (hU : IsAffineOpen U) |
| 45 | (r : Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,U)) |
| 46 | (hcontains : ⊤ ≤ z ⁻¹ᵁ (f.left ⁻¹ᵁ (Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen r)) |
| 47 | |
| 48 | def _root_.OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.PointParameterData.Chart.ParameterData.principal (D : PointParameterData.Chart.ParameterData X f z g U hU) : |
| 49 | PointParameterData.Chart.ParameterData X f z g ((Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen r) (hU.basicOpen r) := by |
| 50 | let V := (Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen r |
| 51 | let hV : IsAffineOpen V := hU.basicOpen r |
| 52 | let s' := IdealSheafPrincipalEquations.sequence U r D.equations |
| 53 | let t' := IdealSheafPrincipalEquations.sequence U r D.parameters |
| 54 | have hp0 : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,U) |
| 55 | (Fin.append D.equations D.parameters) = (z ≫ f.left).ker.ideal ⟨U,hU⟩ := by |
| 56 | simpa only [KoszulPoint.Ideal.append] using D.point_generates |
| 57 | have hp' : KoszulPartial.Resolution.pointIdeal Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,V) s' t' = |
| 58 | (z ≫ f.left).ker.ideal ⟨V,hV⟩ := by |
| 59 | rw [KoszulPoint.Ideal.append] |
| 60 | have hp := IdealSheafPrincipalEquations.generates (z ≫ f.left).ker U hU r |
| 61 | (Fin.append D.equations D.parameters) hp0 |
| 62 | change Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,V) |
| 63 | (IdealSheafPrincipalEquations.sequence U r (Fin.append D.equations D.parameters)) = |
| 64 | (z ≫ f.left).ker.ideal ⟨V,hV⟩ at hp |
| 65 | rw [restricted_append] at hp |
| 66 | exact hp |
| 67 | have hr' : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,V) (List.ofFn (Fin.append s' t')) := by |
| 68 | simpa only [restricted_append] using |
| 69 | IdealSheafPrincipalEquations.weaklyRegular U hU r |
| 70 | (Fin.append D.equations D.parameters) D.point_regular |
| 71 | let ρ : (f.left ⁻¹ᵁ V) ⟶ (f.left ⁻¹ᵁ U) := |
| 72 | homOfLE (f.left.preimage_mono ((Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen_le r)) |
| 73 | let := D.finiteVariables |
| 74 | let := D.coordinates |
| 75 | let := D.coordinateTower |
| 76 | let := D.coordinateEtale |
| 77 | exact { |
| 78 | coordinate := D.coordinate |
| 79 | below_coordinate := ((Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen_le r).trans D.below_coordinate |
| 80 | contains := hcontains |
| 81 | codimension := D.codimension |
| 82 | dimension := D.dimension |
| 83 | equations := s' |
| 84 | generates := IdealSheafPrincipalEquations.generates f.left.ker U hU r D.equations D.generates |
| 85 | regular := IdealSheafPrincipalEquations.weaklyRegular U hU r D.equations D.regular |
| 86 | conormalBasis := Principal.ConormalBasis.basis f.left.ker U hU r D.conormalBasis |
| 87 | conormalBasis_apply := Principal.ConormalBasis.basis_apply f.left.ker U hU r |
| 88 | D.conormalBasis D.equations D.generates D.conormalBasis_apply |
| 89 | parameters := t' |
| 90 | quotientBasis := Principal.QuotientBasis.basis R (Projective.IntrinsicOverlap.Intrinsic.model R N) f.left.ker U hU r D.quotientBasis |
| 91 | quotientBasis_apply := Principal.QuotientBasis.basis_apply R (Projective.IntrinsicOverlap.Intrinsic.model R N) f.left.ker U hU r |
| 92 | D.quotientBasis D.parameters D.quotientBasis_apply |
| 93 | point_generates := hp' |
| 94 | point_regular := hr' |
| 95 | coordinateIndex := D.coordinateIndex |
| 96 | finiteVariables := D.finiteVariables |
| 97 | coordinates := Affine.EtaleCoordinateRestriction.algebra R X ρ D.coordinateIndex |
| 98 | coordinateTower := Affine.EtaleCoordinateRestriction.tower R X ρ D.coordinateIndex |
| 99 | coordinateEtale := Affine.EtaleCoordinateRestriction.etale R X ρ D.coordinateIndex |
| 100 | (hU.preimage f.left) (hV.preimage f.left) } |
| 101 | |
| 102 | omit [IsNoetherianRing R] in |
| 103 | theorem _root_.OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.PointParameterData.Chart.ParameterData.principal_parameters (D : PointParameterData.Chart.ParameterData X f z g U hU) : |
| 104 | (D.principal X f z g U hU r hcontains).parameters = |
| 105 | IdealSheafPrincipalEquations.sequence U r D.parameters := rfl |
| 106 | |
| 107 | def _root_.OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.PointParameterData.Chart.Data.principal (D : PointParameterData.Chart.Data X f z g U hU) : |
| 108 | PointParameterData.Chart.Data X f z g ((Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen r) (hU.basicOpen r) := by |
| 109 | let V := (Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen r |
| 110 | let hV : IsAffineOpen V := hU.basicOpen r |
| 111 | let ρ : V ⟶ U := homOfLE ((Projective.IntrinsicOverlap.Intrinsic.space R N).basicOpen_le r) |
| 112 | let b0 := D.ambientBasis.reindex (finCongr D.dimension.symm) |
| 113 | have hb0 (i : Fin (D.codimension+g)) : b0 i = |
| 114 | KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,U) (Fin.append D.equations D.parameters i) := by |
| 115 | rw [reindex_reverse] |
| 116 | have hi := congrFun D.ambientBasis_apply i |
| 117 | refine hi.trans ?_ |
| 118 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i <;> |
| 119 | simp only [Fin.append_left, Fin.append_right] |
| 120 | let bV := AffineOpen.DifferentialBasis.basis R (Projective.IntrinsicOverlap.Intrinsic.model R N) ρ hU hV b0 |
| 121 | refine { |
| 122 | toParameterData := D.toParameterData.principal X f z g U hU r hcontains |
| 123 | ambientBasis := bV.reindex (finCongr D.dimension) |
| 124 | ambientBasis_apply := ?_ } |
| 125 | funext i |
| 126 | change Fin (D.codimension+g) at i |
| 127 | change (bV.reindex (finCongr D.dimension)) (Fin.cast D.dimension i) = |
| 128 | Fin.append |
| 129 | (fun j => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,V) |
| 130 | (IdealSheafPrincipalEquations.sequence U r D.equations j)) |
| 131 | (fun j => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R N,V) |
| 132 | (IdealSheafPrincipalEquations.sequence U r D.parameters j)) i |
| 133 | rw [reindex_forward] |
| 134 | have hi := AffineOpen.DifferentialBasis.basis_apply R (Projective.IntrinsicOverlap.Intrinsic.model R N) ρ hU hV b0 |
| 135 | (Fin.append D.equations D.parameters) hb0 i |
| 136 | refine hi.trans ?_ |
| 137 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i <;> |
| 138 | simp only [Fin.append_left, Fin.append_right] <;> rfl |
| 139 | |
| 140 | omit [IsNoetherianRing R] in |
| 141 | theorem _root_.OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.PointParameterData.Chart.Data.principal_parameters (D : PointParameterData.Chart.Data X f z g U hU) : |
| 142 | (D.principal X f z g U hU r hcontains).parameters = |
| 143 | IdealSheafPrincipalEquations.sequence U r D.parameters := rfl |
| 144 | |
| 145 | end |
| 146 | |
| 147 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.ParameterRestriction.Chart |