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.WeightedVeroneseExtraction |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.MonomialAlgebra |
| 3 | |
| 4 | /-! # Weighted Veronese Generation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.WeightedVeroneseGeneration |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The explicit degree nL generates all monomials of degrees divisible |
| 11 | by nL. This proves generation in degree one after taking that Veronese algebra. -/ |
| 12 | open scoped BigOperators Classical |
| 13 | universe u |
| 14 | variable {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] |
| 15 | |
| 16 | theorem weightedExponentDegree_add {n : ℕ} (w a b : Fin n → ℕ) : |
| 17 | WeightedVeroneseExtraction.weightedExponentDegree w (a + b) = WeightedVeroneseExtraction.weightedExponentDegree w a + WeightedVeroneseExtraction.weightedExponentDegree w b := by |
| 18 | simp only [WeightedVeroneseExtraction.weightedExponentDegree, Pi.add_apply, add_mul, Finset.sum_add_distrib] |
| 19 | |
| 20 | theorem weightedExponentDegree_eq_zero_iff {n : ℕ} (w : Fin n → ℕ) |
| 21 | (hw : ∀ i, 0 < w i) (a : Fin n → ℕ) : WeightedVeroneseExtraction.weightedExponentDegree w a = 0 ↔ a = 0 := by |
| 22 | constructor |
| 23 | · intro h |
| 24 | funext i |
| 25 | have hi := Finset.sum_eq_zero_iff.mp h i (Finset.mem_univ _) |
| 26 | exact (Nat.mul_eq_zero.mp hi).resolve_right (Nat.ne_of_gt (hw i)) |
| 27 | · rintro rfl |
| 28 | simp only [WeightedVeroneseExtraction.weightedExponentDegree, Pi.zero_apply, zero_mul, Finset.sum_const_zero] |
| 29 | |
| 30 | theorem weightedVeronese_monomial_mem_degree_adjoin {n : ℕ} (hn : 0 < n) |
| 31 | (w : Fin n → ℕ) (hw : ∀ i, 0 < w i) (L : ℕ) (hL : 0 < L) |
| 32 | (hwL : ∀ i, w i ∣ L) (D : Fin n → A) (a : Fin n → ℕ) (k : ℕ) |
| 33 | (ha : WeightedVeroneseExtraction.weightedExponentDegree w a = k * (n * L)) : |
| 34 | Balanced.MonomialAlgebra.exponentMonomial D a ∈ Algebra.adjoin R |
| 35 | (Balanced.MonomialAlgebra.exponentMonomial D '' {b | WeightedVeroneseExtraction.weightedExponentDegree w b = n * L}) := by |
| 36 | induction k generalizing a with |
| 37 | | zero => |
| 38 | have hz : a = 0 := (weightedExponentDegree_eq_zero_iff w hw a).mp (by simpa using ha) |
| 39 | rw [hz, Balanced.MonomialAlgebra.exponentMonomial_zero] |
| 40 | exact (Algebra.adjoin R _).one_mem |
| 41 | | succ k ih => |
| 42 | obtain ⟨b, hb, hbdeg⟩ := WeightedVeroneseExtraction.weightedVeronese_exists_subexponent hn w hw L hL hwL a |
| 43 | (k + 1) (Nat.succ_pos _) ha |
| 44 | have hab : a - b + b = a := by |
| 45 | funext i |
| 46 | exact Nat.sub_add_cancel (hb i) |
| 47 | have hrem : WeightedVeroneseExtraction.weightedExponentDegree w (a - b) = k * (n * L) := by |
| 48 | have hsum := weightedExponentDegree_add w (a - b) b |
| 49 | rw [hab, ha, hbdeg, Nat.succ_mul] at hsum |
| 50 | exact Nat.add_right_cancel hsum.symm |
| 51 | have h₁ := ih (a - b) hrem |
| 52 | have h₂ : Balanced.MonomialAlgebra.exponentMonomial D b ∈ Algebra.adjoin R |
| 53 | (Balanced.MonomialAlgebra.exponentMonomial D '' {b | WeightedVeroneseExtraction.weightedExponentDegree w b = n * L}) := |
| 54 | Algebra.subset_adjoin ⟨b, hbdeg, rfl⟩ |
| 55 | have hp := (Algebra.adjoin R _).mul_mem h₁ h₂ |
| 56 | rw [← Balanced.MonomialAlgebra.exponentMonomial_add, hab] at hp |
| 57 | exact hp |
| 58 | |
| 59 | theorem weightedVeronese_adjoin_eq_degree_adjoin {n : ℕ} (hn : 0 < n) |
| 60 | (w : Fin n → ℕ) (hw : ∀ i, 0 < w i) (L : ℕ) (hL : 0 < L) |
| 61 | (hwL : ∀ i, w i ∣ L) (D : Fin n → A) : |
| 62 | Algebra.adjoin R (Balanced.MonomialAlgebra.exponentMonomial D '' {a | n * L ∣ WeightedVeroneseExtraction.weightedExponentDegree w a}) = |
| 63 | Algebra.adjoin R (Balanced.MonomialAlgebra.exponentMonomial D '' {a | WeightedVeroneseExtraction.weightedExponentDegree w a = n * L}) := by |
| 64 | apply le_antisymm |
| 65 | · apply Algebra.adjoin_le |
| 66 | rintro _ ⟨a, ⟨k, hk⟩, rfl⟩ |
| 67 | apply weightedVeronese_monomial_mem_degree_adjoin hn w hw L hL hwL D a k |
| 68 | exact hk.trans (Nat.mul_comm _ _) |
| 69 | · apply Algebra.adjoin_mono |
| 70 | rintro _ ⟨a, ha, rfl⟩ |
| 71 | exact ⟨a, ha.symm ▸ dvd_refl _, rfl⟩ |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.WeightedVeroneseGeneration |