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.AlgebraicTopology.Cohomology.Singular.Smooth |
| 2 | import Mathlib.Analysis.Calculus.TangentCone.Real |
| 3 | import Mathlib.Analysis.Convex.Basic |
| 4 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 5 | |
| 6 | /-! # Simplex Form Domain -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicTopology.Kunneth.SimplexFormDomain.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A full-dimensional coordinate simplex for restricting differential forms. -/ |
| 13 | |
| 14 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 15 | |
| 16 | open Set |
| 17 | open scoped BigOperators ContDiff |
| 18 | |
| 19 | def coordinateSimplex (n : ℕ) : Set (Fin n → ℝ) := |
| 20 | {x | (∀ i, 0 ≤ x i) ∧ ∑ i, x i ≤ 1} |
| 21 | |
| 22 | theorem coordinateSimplex_zero (n : ℕ) : (0 : Fin n → ℝ) ∈ coordinateSimplex n := by |
| 23 | constructor |
| 24 | · intro i; exact le_rfl |
| 25 | · simp |
| 26 | |
| 27 | theorem coordinateSimplex_convex (n : ℕ) : Convex ℝ (coordinateSimplex n) := by |
| 28 | intro x hx y hy a b ha hb hab |
| 29 | constructor |
| 30 | · intro i |
| 31 | exact add_nonneg (mul_nonneg ha (hx.1 i)) (mul_nonneg hb (hy.1 i)) |
| 32 | · change ∑ i, (a * x i + b * y i) ≤ 1 |
| 33 | rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] |
| 34 | calc |
| 35 | a * ∑ i, x i + b * ∑ i, y i ≤ a * 1 + b * 1 := |
| 36 | add_le_add (mul_le_mul_of_nonneg_left hx.2 ha) (mul_le_mul_of_nonneg_left hy.2 hb) |
| 37 | _ = 1 := by simpa only [mul_one] using hab |
| 38 | |
| 39 | theorem coordinateSimplex_starConvex (n : ℕ) : |
| 40 | StarConvex ℝ (0 : Fin n → ℝ) (coordinateSimplex n) := |
| 41 | (coordinateSimplex_convex n).starConvex (coordinateSimplex_zero n) |
| 42 | |
| 43 | theorem coordinateSimplex_interior_nonempty (n : ℕ) : |
| 44 | (interior (coordinateSimplex n)).Nonempty := by |
| 45 | let U : Set (Fin n → ℝ) := {x | (∀ i, 0 < x i) ∧ ∑ i, x i < 1} |
| 46 | have hU : IsOpen U := by |
| 47 | have hcoord : IsOpen {x : Fin n → ℝ | ∀ i, 0 < x i} := by |
| 48 | simp only [ofPred_forall] |
| 49 | exact isOpen_iInter_of_finite fun i => isOpen_lt continuous_const (continuous_apply i) |
| 50 | exact hcoord.inter (isOpen_lt (continuous_finsetSum _ fun i _ => continuous_apply i) |
| 51 | continuous_const) |
| 52 | have hsub : U ⊆ coordinateSimplex n := fun _ hx => |
| 53 | ⟨fun i => (hx.1 i).le, hx.2.le⟩ |
| 54 | let x : Fin n → ℝ := fun _ => 1 / ((n : ℝ) + 1) |
| 55 | have hx : x ∈ U := by |
| 56 | constructor |
| 57 | · intro i |
| 58 | exact one_div_pos.mpr (by positivity) |
| 59 | · change ∑ _i : Fin n, 1 / ((n : ℝ) + 1) < 1 |
| 60 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] |
| 61 | rw [mul_one_div, div_lt_iff₀ (by positivity)] |
| 62 | linarith |
| 63 | exact ⟨x, hU.subset_interior_iff.mpr hsub hx⟩ |
| 64 | |
| 65 | theorem coordinateSimplex_uniqueDiffOn (n : ℕ) : UniqueDiffOn ℝ (coordinateSimplex n) := |
| 66 | uniqueDiffOn_convex (coordinateSimplex_convex n) (coordinateSimplex_interior_nonempty n) |
| 67 | |
| 68 | theorem coordinateSimplex_isClosed (n : ℕ) : IsClosed (coordinateSimplex n) := by |
| 69 | have hcoord : IsClosed {x : Fin n → ℝ | ∀ i, 0 ≤ x i} := by |
| 70 | simp only [ofPred_forall] |
| 71 | exact isClosed_iInter fun i => isClosed_le continuous_const (continuous_apply i) |
| 72 | exact hcoord.inter (isClosed_le (continuous_finsetSum _ fun i _ => continuous_apply i) |
| 73 | continuous_const) |
| 74 | |
| 75 | theorem coordinateSimplex_isCompact (n : ℕ) : IsCompact (coordinateSimplex n) := by |
| 76 | apply (isCompact_Icc (a := (0 : Fin n → ℝ)) (b := 1)).of_isClosed_subset |
| 77 | (coordinateSimplex_isClosed n) |
| 78 | intro x hx |
| 79 | refine ⟨hx.1, fun i => ?_⟩ |
| 80 | exact (Finset.single_le_sum (fun j _ => hx.1 j) (Finset.mem_univ i)).trans hx.2 |
| 81 | |
| 82 | /-- Add the last barycentric coordinate to an ordinary coordinate vector. -/ |
| 83 | def simplexBarycentric (n : ℕ) (x : Fin n → ℝ) : Fin (n + 1) → ℝ := |
| 84 | Fin.snoc x (1 - ∑ i, x i) |
| 85 | |
| 86 | @[simp] theorem simplexBarycentric_castSucc (n : ℕ) (x : Fin n → ℝ) (i : Fin n) : |
| 87 | simplexBarycentric n x i.castSucc = x i := Fin.snoc_castSucc _ _ _ |
| 88 | |
| 89 | @[simp] theorem simplexBarycentric_last (n : ℕ) (x : Fin n → ℝ) : |
| 90 | simplexBarycentric n x (Fin.last n) = 1 - ∑ i, x i := Fin.snoc_last _ _ |
| 91 | |
| 92 | theorem simplexBarycentric_sum (n : ℕ) (x : Fin n → ℝ) : |
| 93 | ∑ i, simplexBarycentric n x i = 1 := by |
| 94 | rw [Fin.sum_univ_castSucc] |
| 95 | simp only [simplexBarycentric_castSucc, simplexBarycentric_last] |
| 96 | ring |
| 97 | |
| 98 | theorem simplexBarycentric_nonneg {n : ℕ} {x : Fin n → ℝ} |
| 99 | (hx : x ∈ coordinateSimplex n) (i : Fin (n + 1)) : 0 ≤ simplexBarycentric n x i := by |
| 100 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 101 | · rw [simplexBarycentric_last] |
| 102 | exact sub_nonneg.mpr hx.2 |
| 103 | · rw [simplexBarycentric_castSucc] |
| 104 | exact hx.1 j |
| 105 | |
| 106 | /-- The barycentric coordinates as a point of the standard simplex. -/ |
| 107 | def simplexBarycentricPoint {n : ℕ} (x : Fin n → ℝ) (hx : x ∈ coordinateSimplex n) : |
| 108 | Convexity.StdSimplex ℝ (Fin (n + 1)) := |
| 109 | Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex.ofCoordinates (simplexBarycentric n x) |
| 110 | (simplexBarycentric_nonneg hx) (simplexBarycentric_sum n x) |
| 111 | |
| 112 | @[simp] |
| 113 | theorem simplexBarycentricPoint_weights {n : ℕ} (x : Fin n → ℝ) |
| 114 | (hx : x ∈ coordinateSimplex n) : |
| 115 | ((simplexBarycentricPoint x hx).weights : Fin (n + 1) → ℝ) = simplexBarycentric n x := by |
| 116 | funext i |
| 117 | exact Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex.ofCoordinates_weights _ _ _ _ |
| 118 | |
| 119 | theorem simplexBarycentric_mem {n : ℕ} {x : Fin n → ℝ} (hx : x ∈ coordinateSimplex n) : |
| 120 | simplexBarycentric n x ∈ Set.range (fun y : Convexity.StdSimplex ℝ (Fin (n + 1)) => |
| 121 | (y.weights : Fin (n + 1) → ℝ)) := |
| 122 | ⟨simplexBarycentricPoint x hx, simplexBarycentricPoint_weights x hx⟩ |
| 123 | |
| 124 | theorem simplexBarycentric_contDiff (n : ℕ) : ContDiff ℝ ∞ (simplexBarycentric n) := by |
| 125 | apply contDiff_pi.mpr |
| 126 | intro i |
| 127 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 128 | · simp only [simplexBarycentric_last] |
| 129 | exact contDiff_const.sub (ContDiff.sum fun j _ => contDiff_apply ℝ ℝ j) |
| 130 | · simpa only [simplexBarycentric_castSucc] using (contDiff_apply ℝ ℝ j) |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicTopology.Kunneth.SimplexFormDomain.Constructions |