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.AlgebraicGeometry.HilbertScheme.Presentations.Affine.PointInverseNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StableHilbert.CoordinateCoverage |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Stable.RankChartsOverBase |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Stable.ChartNormalizedRankPoints |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.ProjectiveTransport |
| 6 | |
| 7 | /-! # Balanced Orbit Equality -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Stable.BalancedOrbitEquality |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Common linear coordinate changes and independent unit multiples |
| 14 | give equal points of the actual stable balanced quotient, even when |
| 15 | the two configurations are presented on different stable charts. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.PointInverseNaturality |
| 19 | open scoped Classical BigOperators |
| 20 | universe u |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | theorem configurationFrameRelated_denominatorUnit_iff |
| 25 | {A : Type u} [CommRing A] {n m : ℕ} |
| 26 | {v w : Fin m → Fin (n + 1) → A} (h : Configuration.ProjectiveTransport.ConfigurationFrameRelated v w) |
| 27 | (a : (Fin (n + 1) → Fin m) → ℕ) : |
| 28 | IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) a) ↔ |
| 29 | IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a) := by |
| 30 | obtain ⟨T, s, hs⟩ := h |
| 31 | have hw : w = fun z k => (s z : A) * T (v z) k := by |
| 32 | funext z k |
| 33 | exact congrFun (hs z) k |
| 34 | have hm : Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) a = |
| 35 | (T.toLinearMap.det ^ (∑ τ, a τ) * |
| 36 | ∏ z, (s z : A) ^ Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a z) * |
| 37 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) a := |
| 38 | (congrArg (fun z => Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ z) a) hw).trans |
| 39 | (DeterminantMonomialTransformations.determinantMonomial_linear_rescale v a T.toLinearMap (fun z => (s z : A))) |
| 40 | rw [hm] |
| 41 | have hu : IsUnit (T.toLinearMap.det ^ (∑ τ, a τ) * |
| 42 | ∏ z, (s z : A) ^ Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a z) := |
| 43 | (T.isUnit_det'.pow _).mul |
| 44 | (IsUnit.prod_univ_iff.mpr (fun z => (s z).isUnit.pow _)) |
| 45 | exact ⟨fun hv => hu.mul hv, fun hw => (IsUnit.mul_iff.mp hw).2⟩ |
| 46 | |
| 47 | namespace StableHilbertCoverage |
| 48 | variable (R : Type u) [CommRing R] {n m : ℕ} (i : Fin m) |
| 49 | variable (j k : BalancedFrameIndex.StableBalancedFrameIndex.{u} (n + 1) m) |
| 50 | variable (T : Over (Spec (.of R))) |
| 51 | |
| 52 | local instance : Algebra R Γ(T.left, ⊤) := |
| 53 | inferInstanceAs (Algebra R (HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T)) |
| 54 | |
| 55 | theorem chartPoint_eq_of_frameRelated |
| 56 | (v w : Fin m → Fin (n + 1) → Γ(T.left, ⊤)) |
| 57 | (hv : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) j.exponent)) |
| 58 | (hw : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) j.exponent)) |
| 59 | (h : Configuration.ProjectiveTransport.ConfigurationFrameRelated v w) : |
| 60 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T v hv = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T w hw := by |
| 61 | apply (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 62 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T).injective |
| 63 | simp only [StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint, Equiv.apply_symm_apply] |
| 64 | exact BalancedChart.ConfigurationOrbits.balancedConfigurationChartAlgebraEvaluation_eq_of_orbit |
| 65 | (R := R) (HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) j.exponent (Nat.succ_pos n) |
| 66 | i j.balanced h |
| 67 | |
| 68 | theorem chartPoint_intersection_left |
| 69 | (v : Fin m → Fin (n + 1) → Γ(T.left, ⊤)) |
| 70 | (hv : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) j.exponent)) |
| 71 | (hvk : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) |
| 72 | (j.intersection k).exponent)) : |
| 73 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i (j.intersection k) T v hvk ≫ |
| 74 | StableIntersection.SchemeRank.stableChartIntersectionLeftOver R i j k = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T v hv := by |
| 75 | unfold StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint StableIntersection.SchemeRank.stableChartIntersectionLeftOver |
| 76 | rw [HilbertScheme.Presentations.Affine.PointInverseNaturality.relativeAffinePointEquiv_symm_postcomp] |
| 77 | apply congrArg (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 78 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T).symm |
| 79 | apply AlgHom.coe_ringHom_injective |
| 80 | have hc := BalancedChart.IntersectionMaps.balancedConfigurationChartEvaluation_intersection_left |
| 81 | (A := HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) R i j.exponent k.exponent |
| 82 | j.balanced k.balanced v hv hvk |
| 83 | -- The ring-hom equality is already proved; avoid repeating elaborator conversion. |
| 84 | -- The kernel still checks it against the original target equality. |
| 85 | run_tac Lean.Elab.Tactic.withMainContext do |
| 86 | let goal ← Lean.Elab.Tactic.getMainGoal |
| 87 | for d in (← Lean.getLCtx) do |
| 88 | if d.userName == `hc then |
| 89 | goal.assign (.fvar d.fvarId) |
| 90 | Lean.Elab.Tactic.replaceMainGoal [] |
| 91 | return |
| 92 | throwError "local ring-hom equality proof not found" |
| 93 | |
| 94 | theorem chartPoint_intersection_right |
| 95 | (v : Fin m → Fin (n + 1) → Γ(T.left, ⊤)) |
| 96 | (hv : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) k.exponent)) |
| 97 | (hvk : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) |
| 98 | (j.intersection k).exponent)) : |
| 99 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i (j.intersection k) T v hvk ≫ |
| 100 | StableIntersection.SchemeRank.stableChartIntersectionRightOver R i j k = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i k T v hv := by |
| 101 | unfold StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint StableIntersection.SchemeRank.stableChartIntersectionRightOver |
| 102 | rw [HilbertScheme.Presentations.Affine.PointInverseNaturality.relativeAffinePointEquiv_symm_postcomp] |
| 103 | apply congrArg (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 104 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i k.exponent k.balanced) T).symm |
| 105 | apply AlgHom.coe_ringHom_injective |
| 106 | have hc := BalancedChart.IntersectionMaps.balancedConfigurationChartEvaluation_intersection_right |
| 107 | (A := HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) R i j.exponent k.exponent |
| 108 | j.balanced k.balanced v hv hvk |
| 109 | -- The ring-hom equality is already proved; avoid repeating elaborator conversion. |
| 110 | -- The kernel still checks it against the original target equality. |
| 111 | run_tac Lean.Elab.Tactic.withMainContext do |
| 112 | let goal ← Lean.Elab.Tactic.getMainGoal |
| 113 | for d in (← Lean.getLCtx) do |
| 114 | if d.userName == `hc then |
| 115 | goal.assign (.fvar d.fvarId) |
| 116 | Lean.Elab.Tactic.replaceMainGoal [] |
| 117 | return |
| 118 | throwError "local ring-hom equality proof not found" |
| 119 | |
| 120 | theorem chartPoints_toBalanced_eq_of_frameRelated |
| 121 | (v w : Fin m → Fin (n + 1) → Γ(T.left, ⊤)) |
| 122 | (hv : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) j.exponent)) |
| 123 | (hw : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ w) k.exponent)) |
| 124 | (h : Configuration.ProjectiveTransport.ConfigurationFrameRelated v w) : |
| 125 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T v hv ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i j = |
| 126 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i k T w hw ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i k := by |
| 127 | have hvk : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) k.exponent) := |
| 128 | (configurationFrameRelated_denominatorUnit_iff h k.exponent).mpr hw |
| 129 | have hvjk : IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) |
| 130 | (j.intersection k).exponent) := by |
| 131 | change IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) |
| 132 | (j.exponent + k.exponent)) |
| 133 | rw [Balanced.MonomialAlgebra.exponentMonomial_add] |
| 134 | exact hv.mul hvk |
| 135 | let z := StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i (j.intersection k) T v hvjk |
| 136 | have hl : z ≫ StableIntersection.SchemeRank.stableChartIntersectionLeftOver R i j k = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T v hv := |
| 137 | chartPoint_intersection_left R i j k T v hv hvjk |
| 138 | have hr : z ≫ StableIntersection.SchemeRank.stableChartIntersectionRightOver R i j k = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i k T v hvk := |
| 139 | chartPoint_intersection_right R i j k T v hvk hvjk |
| 140 | have he : StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i k T v hvk = StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i k T w hw := |
| 141 | chartPoint_eq_of_frameRelated R i k T v w hvk hw h |
| 142 | exact (congrArg (fun a => a ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i j) hl.symm).trans |
| 143 | ((Category.assoc _ _ _).trans |
| 144 | ((congrArg (fun a => z ≫ a) (RankChartsOverBase.stableChartIntersectionLeftOver_factor R i j k)).trans |
| 145 | ((congrArg (fun a => z ≫ a) (RankChartsOverBase.stableChartIntersectionRightOver_factor R i j k).symm).trans |
| 146 | ((Category.assoc _ _ _).symm.trans |
| 147 | ((congrArg (fun a => a ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i k) hr).trans |
| 148 | (congrArg (fun a => a ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i k) he)))))) |
| 149 | |
| 150 | /-- The actual normalized vector coordinates of an arbitrary scheme |
| 151 | point of a stable coefficient chart. -/ |
| 152 | def normalizedVectors (a : T ⟶ ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) : |
| 153 | Fin m → Fin (n + 1) → Γ(T.left, ⊤) := |
| 154 | ChartNormalizedRankPoints.stableChartNormalizedPointVectors R (A := HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) i j |
| 155 | (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 156 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T a) |
| 157 | |
| 158 | theorem normalizedVectors_denominatorUnit |
| 159 | (a : T ⟶ ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) : |
| 160 | IsUnit (Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ (normalizedVectors R i j T a)) |
| 161 | j.exponent) := |
| 162 | ChartNormalizedRankPoints.stableChartNormalizedPoint_denominatorUnit R (A := HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) i j |
| 163 | (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 164 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T a) |
| 165 | |
| 166 | theorem chartPoint_normalizedVectors |
| 167 | (a : T ⟶ ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) : |
| 168 | StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint R i j T (normalizedVectors R i j T a) |
| 169 | (normalizedVectors_denominatorUnit R i j T a) = a := by |
| 170 | apply (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 171 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T).injective |
| 172 | simp only [StableHilbert.CoordinateCoverage.StableHilbertCoverage.chartPoint, Equiv.apply_symm_apply] |
| 173 | ext x |
| 174 | exact RingHom.congr_fun (ChartNormalizedRankPoints.stableChartNormalizedPoint_evaluation R |
| 175 | (A := HilbertScheme.Presentations.Relative.AffinePoints.relativeGlobalAlgebra (.of R) T) i j |
| 176 | (HilbertScheme.Presentations.Relative.AffinePoints.relativeAffinePointEquiv (.of R) |
| 177 | (Balanced.FrameChartCoordinates.balancedDeterminantChartRing R i j.exponent j.balanced) T a)) x |
| 178 | |
| 179 | theorem points_toBalanced_eq_of_frameRelated |
| 180 | (a : T ⟶ ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) |
| 181 | (b : T ⟶ ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i k) |
| 182 | (h : Configuration.ProjectiveTransport.ConfigurationFrameRelated (normalizedVectors R i j T a) (normalizedVectors R i k T b)) : |
| 183 | a ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i j = |
| 184 | b ≫ RankChartsOverBase.stableBalancedAffineChartOverMap R i k := by |
| 185 | have he := chartPoints_toBalanced_eq_of_frameRelated R i j k T |
| 186 | (normalizedVectors R i j T a) (normalizedVectors R i k T b) |
| 187 | (normalizedVectors_denominatorUnit R i j T a) |
| 188 | (normalizedVectors_denominatorUnit R i k T b) h |
| 189 | simpa only [chartPoint_normalizedVectors] using he |
| 190 | |
| 191 | end StableHilbertCoverage |
| 192 | |
| 193 | end |
| 194 | |
| 195 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Stable.BalancedOrbitEquality |