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.CoordinateMonomials |
| 2 | |
| 3 | /-! # Chart Denominators -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Frame.ChartDenominators |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A single monomial contains the frame discriminant and one nonzero |
| 10 | normalized coordinate of every point. Its principal open supports all |
| 11 | the corresponding affine coordinate charts. -/ |
| 12 | open scoped BigOperators Classical |
| 13 | universe u |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | variable {R : Type u} [CommRing R] {r m : ℕ} |
| 17 | |
| 18 | def frameDiscriminantExponent (σ : Fin r → Fin m) (e : Fin m) : |
| 19 | (Fin r → Fin m) → ℕ := |
| 20 | Pi.single σ 1 + ∑ k, Pi.single (Function.update σ k e) 1 |
| 21 | |
| 22 | def frameChartExponent (σ : Fin r → Fin m) (e : Fin m) (c : Fin m → Fin r) : |
| 23 | (Fin r → Fin m) → ℕ := |
| 24 | frameDiscriminantExponent σ e + ∑ z, CoordinateExponents.frameCoordinateExponent σ e z (c z) |
| 25 | |
| 26 | theorem frameDiscriminantExponent_monomial (σ : Fin r → Fin m) |
| 27 | (v : Fin m → Fin r → R) (e : Fin m) : |
| 28 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) (frameDiscriminantExponent σ e) = |
| 29 | ProjectiveFrame.Discriminant.projectiveFrameDiscriminant (Pi.basisFun R (Fin r)) (fun j => v (σ j)) (v e) := by |
| 30 | have hsingle (j : Fin r → Fin m) : |
| 31 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) (Pi.single j 1) = LabeledDeterminantPolynomials.labeledDeterminant j v := by |
| 32 | simp [Balanced.MonomialAlgebra.exponentMonomial, Pi.single_apply] |
| 33 | simp only [frameDiscriminantExponent, Balanced.MonomialAlgebra.exponentMonomial_add, MonomialFiniteSums.exponentMonomial_sum, hsingle] |
| 34 | simp only [CoordinateMonomials.labeledDeterminant_update_eq_basis, ProjectiveFrame.Discriminant.projectiveFrameDiscriminant] |
| 35 | rw [LabeledDeterminantPolynomials.labeledDeterminant_eq_basis] |
| 36 | congr! |
| 37 | |
| 38 | theorem frameChartExponent_monomial (σ : Fin r → Fin m) |
| 39 | (v : Fin m → Fin r → R) (e : Fin m) (c : Fin m → Fin r) : |
| 40 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) (frameChartExponent σ e c) = |
| 41 | ProjectiveFrame.Discriminant.projectiveFrameDiscriminant (Pi.basisFun R (Fin r)) (fun j => v (σ j)) (v e) * |
| 42 | ∏ z, DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun R (Fin r)) |
| 43 | (fun j => v (σ j)) (v e) (v z) (c z) := by |
| 44 | simp only [frameChartExponent, Balanced.MonomialAlgebra.exponentMonomial_add, MonomialFiniteSums.exponentMonomial_sum, |
| 45 | frameDiscriminantExponent_monomial, CoordinateMonomials.frameCoordinateExponent_linearMap] |
| 46 | |
| 47 | theorem frameCoordinateExponent_le_chart (σ : Fin r → Fin m) |
| 48 | (e z : Fin m) (c : Fin m → Fin r) : |
| 49 | CoordinateExponents.frameCoordinateExponent σ e z (c z) ≤ frameChartExponent σ e c := by |
| 50 | intro τ |
| 51 | have hz := Finset.single_le_sum |
| 52 | (fun j _ => Nat.zero_le (CoordinateExponents.frameCoordinateExponent σ e j (c j) τ)) (Finset.mem_univ z) |
| 53 | change CoordinateExponents.frameCoordinateExponent σ e z (c z) τ ≤ |
| 54 | frameDiscriminantExponent σ e τ + (∑ j, CoordinateExponents.frameCoordinateExponent σ e j (c j)) τ |
| 55 | simpa only [Finset.sum_apply] using hz.trans (Nat.le_add_left _ _) |
| 56 | |
| 57 | theorem frameDiscriminantExponent_le_chart (σ : Fin r → Fin m) |
| 58 | (e : Fin m) (c : Fin m → Fin r) : |
| 59 | frameDiscriminantExponent σ e ≤ frameChartExponent σ e c := by |
| 60 | intro τ |
| 61 | exact Nat.le_add_right _ _ |
| 62 | |
| 63 | theorem frame_exists_nonvanishing_chart {K : Type u} [Field K] |
| 64 | (v : Fin m → Fin r → K) (hv : ∀ z, v z ≠ 0) |
| 65 | (σ : Fin r → Fin m) (e : Fin m) |
| 66 | (hframe : IsUnit (ProjectiveFrame.Discriminant.projectiveFrameDiscriminant (Pi.basisFun K (Fin r)) |
| 67 | (fun j => v (σ j)) (v e))) : |
| 68 | ∃ c : Fin m → Fin r, |
| 69 | Balanced.MonomialAlgebra.exponentMonomial (fun τ => LabeledDeterminantPolynomials.labeledDeterminant τ v) (frameChartExponent σ e c) ≠ 0 := by |
| 70 | let f := DeterminantFrameLinearMap.determinantFrameLinearMap (Pi.basisFun K (Fin r)) (fun j => v (σ j)) (v e) |
| 71 | have hinj : Function.Injective f := (DeterminantFrameLinearMap.determinantFrameLinearMap_bijective _ _ _ hframe).1 |
| 72 | have hcoord (z : Fin m) : ∃ k : Fin r, f (v z) k ≠ 0 := by |
| 73 | by_contra! h |
| 74 | apply hv z |
| 75 | apply hinj |
| 76 | exact (funext h).trans (map_zero f).symm |
| 77 | choose c hc using hcoord |
| 78 | refine ⟨c, ?_⟩ |
| 79 | rw [frameChartExponent_monomial] |
| 80 | exact mul_ne_zero (isUnit_iff_ne_zero.mp hframe) |
| 81 | (Finset.prod_ne_zero_iff.mpr (fun z _ => hc z)) |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Frame.ChartDenominators |