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.ZeroSumCoordinateProjection |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DeterminantBlockDegrees |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SparseDeterminantSeparation |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.DimensionalPositiveInterior |
| 5 | |
| 6 | /-! # Centered Determinant Weights -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CenteredDeterminantWeights |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The centered incidence vectors of all nonvanishing determinants |
| 13 | have zero in the interior of their convex hull for a sparse configuration. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | variable {K : Type u} [Field K] {r m : ℕ} |
| 19 | |
| 20 | def determinantIncidenceVector (σ : Fin r → Fin m) : Fin m → ℝ := |
| 21 | fun i => DeterminantBlockDegrees.labeledDeterminantWeight σ i |
| 22 | |
| 23 | theorem determinantIncidenceVector_pairing (σ : Fin r → Fin m) (a : Fin m → ℝ) : |
| 24 | ∑ i, determinantIncidenceVector σ i * a i = ∑ j, a (σ j) := by |
| 25 | simp only [determinantIncidenceVector, DeterminantBlockDegrees.labeledDeterminantWeight, Nat.cast_sum, Nat.cast_ite, |
| 26 | Nat.cast_one, Nat.cast_zero] |
| 27 | simp_rw [Finset.sum_mul] |
| 28 | rw [Finset.sum_comm] |
| 29 | simp |
| 30 | |
| 31 | def nonzeroDeterminantLabels (v : Fin m → Fin r → K) := |
| 32 | {σ : Fin r → Fin m // LabeledDeterminantPolynomials.labeledDeterminant σ v ≠ 0} |
| 33 | |
| 34 | instance nonzeroDeterminantLabels_fintype (v : Fin m → Fin r → K) : |
| 35 | Fintype (nonzeroDeterminantLabels v) := |
| 36 | inferInstanceAs (Fintype {σ : Fin r → Fin m // LabeledDeterminantPolynomials.labeledDeterminant σ v ≠ 0}) |
| 37 | |
| 38 | theorem nonzeroDeterminantLabels_nonempty (v : Fin m → Fin r → K) |
| 39 | (hv : ∀ i, v i ≠ 0) (hr : 2 ≤ r) (hm : 2 ≤ m) |
| 40 | (hs : ∀ W : Submodule K (Fin r → K), W ≠ ⊤ → |
| 41 | r * (Finset.univ.filter (fun i => v i ∈ W)).card < m) : |
| 42 | Nonempty (nonzeroDeterminantLabels v) := by |
| 43 | let i₀ : Fin m := ⟨0, by omega⟩ |
| 44 | let i₁ : Fin m := ⟨1, by omega⟩ |
| 45 | have hi : i₀ ≠ i₁ := by intro h; have hh := congrArg Fin.val h; change 0 = 1 at hh; omega |
| 46 | let a : Fin m → ℝ := Pi.single i₀ 1 - Pi.single i₁ 1 |
| 47 | have ha : ∑ i, a i = 0 := by simp [a, Pi.single_apply] |
| 48 | have hne : a ≠ 0 := by |
| 49 | intro h |
| 50 | have hh := congrFun h i₀ |
| 51 | simp [a, hi] at hh |
| 52 | obtain ⟨σ, hσ, _⟩ := SparseDeterminantSeparation.sparseConfiguration_determinant_separates_zeroSum_weight v hv hr hs a ha hne |
| 53 | exact ⟨⟨σ, hσ⟩⟩ |
| 54 | |
| 55 | def centeredDeterminantWeights (v : Fin m → Fin r → K) (hm : 0 < m) : |
| 56 | nonzeroDeterminantLabels v → ZeroSumCoordinateProjection.zeroSumCoordinates m := |
| 57 | fun σ => ZeroSumCoordinateProjection.zeroSumProjectionTo hm (determinantIncidenceVector σ.val) |
| 58 | |
| 59 | theorem centeredDeterminantWeights_positive_functional (v : Fin m → Fin r → K) |
| 60 | (hv : ∀ i, v i ≠ 0) (hr : 2 ≤ r) (hm : 0 < m) |
| 61 | (hs : ∀ W : Submodule K (Fin r → K), W ≠ ⊤ → |
| 62 | r * (Finset.univ.filter (fun i => v i ∈ W)).card < m) |
| 63 | (f : StrongDual ℝ (ZeroSumCoordinateProjection.zeroSumCoordinates m)) (hf : f ≠ 0) : |
| 64 | ∃ σ, 0 < f (centeredDeterminantWeights v hm σ) := by |
| 65 | have hfl : f.toLinearMap ≠ 0 := by |
| 66 | intro h |
| 67 | apply hf |
| 68 | ext x |
| 69 | exact congrArg (fun g : ZeroSumCoordinateProjection.zeroSumCoordinates m →ₗ[ℝ] ℝ => g x) h |
| 70 | let a := ZeroSumCoordinateProjection.zeroSumFunctionalWeights hm f.toLinearMap |
| 71 | obtain ⟨σ, hσ, hsum⟩ := SparseDeterminantSeparation.sparseConfiguration_determinant_separates_zeroSum_weight v hv hr hs a |
| 72 | (ZeroSumCoordinateProjection.zeroSumFunctionalWeights_sum hm _) (ZeroSumCoordinateProjection.zeroSumFunctionalWeights_ne_zero hm _ hfl) |
| 73 | refine ⟨⟨σ, hσ⟩, ?_⟩ |
| 74 | change 0 < f.toLinearMap (ZeroSumCoordinateProjection.zeroSumProjectionTo hm (determinantIncidenceVector σ)) |
| 75 | rw [ZeroSumCoordinateProjection.zeroSumFunctionalWeights_eval, determinantIncidenceVector_pairing] |
| 76 | exact hsum |
| 77 | |
| 78 | theorem centeredDeterminantWeights_zero_interior (v : Fin m → Fin r → K) |
| 79 | (hv : ∀ i, v i ≠ 0) (hr : 2 ≤ r) (hm : 2 ≤ m) |
| 80 | (hs : ∀ W : Submodule K (Fin r → K), W ≠ ⊤ → |
| 81 | r * (Finset.univ.filter (fun i => v i ∈ W)).card < m) : |
| 82 | (0 : ZeroSumCoordinateProjection.zeroSumCoordinates m) ∈ |
| 83 | interior (convexHull ℝ (Set.range (centeredDeterminantWeights v (by omega)))) := by |
| 84 | let : Nonempty (nonzeroDeterminantLabels v) := nonzeroDeterminantLabels_nonempty v hv hr hm hs |
| 85 | exact Finite.DimensionalPositiveInterior.zero_mem_interior_convexHull_of_all_positive_functionals _ |
| 86 | (centeredDeterminantWeights_positive_functional v hv hr (by omega) hs) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CenteredDeterminantWeights |