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.AbelianModuli.HilbertConstruction.Frame.ChartDenominators |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.NonvanishingMonomialCompletion |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.IndexedProjectiveFrames |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantAlgebra |
| 5 | |
| 6 | /-! # Sparse Balanced Frame Charts -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SparseBalancedFrameCharts |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Sparsity produces a frame and a nonvanishing balanced denominator. |
| 13 | Every normalized coordinate has an explicit balancing complement. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u |
| 16 | variable {K : Type u} [Field K] {r m : ℕ} |
| 17 | |
| 18 | theorem sparseConfiguration_exists_frame_discriminant |
| 19 | (v : Fin m → Fin r → K) (hr : 0 < r) |
| 20 | (hs : ∀ W : Submodule K (Fin r → K), W ≠ ⊤ → |
| 21 | r * (Finset.univ.filter (fun i => v i ∈ W)).card < m) : |
| 22 | ∃ (σ : Fin r → Fin m) (e : Fin m), |
| 23 | IsUnit (ProjectiveFrame.Discriminant.projectiveFrameDiscriminant (Pi.basisFun K (Fin r)) (fun j => v (σ j)) (v e)) := by |
| 24 | have hdim : Module.finrank K (Fin r → K) = r := by simp |
| 25 | have hf := SparseFiniteProjectiveFrames.sparseFiniteFamily_projectiveFrame v (hdim.symm ▸ hr) |
| 26 | (by simpa only [hdim, Fintype.card_fin] using hs) |
| 27 | obtain ⟨b, σ, hb, e, he⟩ := Finite.IndexedProjectiveFrames.hasFiniteIndexedProjectiveFrame_of_basis v hdim hf |
| 28 | refine ⟨σ, e, (ProjectiveFrame.Discriminant.projectiveFrameDiscriminant_isUnit_iff _ _ _).mpr ?_⟩ |
| 29 | exact ⟨b, hb, fun k => isUnit_iff_ne_zero.mpr (he k)⟩ |
| 30 | |
| 31 | theorem sparseConfiguration_balanced_frame_chart |
| 32 | (v : Fin m → Fin r → K) (hv : ∀ i, v i ≠ 0) (hr : 2 ≤ r) (hm : 2 ≤ m) |
| 33 | (hs : ∀ W : Submodule K (Fin r → K), W ≠ ⊤ → |
| 34 | r * (Finset.univ.filter (fun i => v i ∈ W)).card < m) : |
| 35 | ∃ (σ : Fin r → Fin m) (e : Fin m) (c : Fin m → Fin r) |
| 36 | (a : (Fin r → Fin m) → ℕ) (C : Fin m → (Fin r → Fin m) → ℕ), |
| 37 | a ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight ∧ |
| 38 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) a ≠ 0 ∧ |
| 39 | Frame.ChartDenominators.frameChartExponent σ e c ≤ a ∧ |
| 40 | (∀ z, C z + Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z) = a) ∧ |
| 41 | (∀ z k, C z + Frame.CoordinateExponents.frameCoordinateExponent σ e z k ∈ |
| 42 | Balanced.ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) ∧ |
| 43 | ∀ i : Fin m, 0 < Balanced.ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i := by |
| 44 | obtain ⟨σ, e, hframe⟩ := sparseConfiguration_exists_frame_discriminant v (by omega) hs |
| 45 | obtain ⟨c, hc⟩ := Frame.ChartDenominators.frame_exists_nonvanishing_chart v hv σ e hframe |
| 46 | obtain ⟨a, b, ha, hab, han⟩ := NonvanishingMonomialCompletion.sparseConfiguration_complete_nonvanishing_monomial |
| 47 | v hv hr hm hs (Frame.ChartDenominators.frameChartExponent σ e c) hc |
| 48 | have hle : Frame.ChartDenominators.frameChartExponent σ e c ≤ a := by |
| 49 | rw [← hab] |
| 50 | intro τ |
| 51 | exact Nat.le_add_left _ _ |
| 52 | have hC (z : Fin m) : ∃ C, C + Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z) = a := |
| 53 | SupportedExponentCompletion.exponent_complement_of_le ((Frame.ChartDenominators.frameCoordinateExponent_le_chart σ e z c).trans hle) |
| 54 | choose C hC using hC |
| 55 | refine ⟨σ, e, c, a, C, ha, han, hle, hC, ?_, ?_⟩ |
| 56 | · intro z k |
| 57 | exact Balanced.ExponentCompletion.balanced_completion_of_same_degree DeterminantBlockDegrees.labeledDeterminantWeight a |
| 58 | (Frame.CoordinateExponents.frameCoordinateExponent σ e z (c z)) (C z) (Frame.CoordinateExponents.frameCoordinateExponent σ e z k) |
| 59 | ha (hC z) (Frame.CoordinateExponents.frameCoordinateExponent_degrees_equal σ e z k (c z)) |
| 60 | · intro i |
| 61 | have hσ : 0 < Frame.ChartDenominators.frameDiscriminantExponent σ e σ := by |
| 62 | simp only [Frame.ChartDenominators.frameDiscriminantExponent, Pi.add_apply, Pi.single_eq_same] |
| 63 | omega |
| 64 | have hapos : 0 < a σ := hσ.trans_le ((Frame.ChartDenominators.frameDiscriminantExponent_le_chart σ e c).trans hle σ) |
| 65 | apply Nat.pos_of_ne_zero |
| 66 | intro hz |
| 67 | have ha0 := (Balanced.DeterminantAlgebra.balancedDeterminantMonomial_degree_zero_iff (by omega) a ha i).mp hz |
| 68 | exact (Nat.ne_of_gt hapos) (congrFun ha0 σ) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SparseBalancedFrameCharts |