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 Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 2 | import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise |
| 3 | import Mathlib.Data.Finset.Card |
| 4 | import Mathlib.Order.Minimal |
| 5 | |
| 6 | /-! # Monomial Termination -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.MonomialTermination.Construction |
| 9 | |
| 10 | /-! Minimal coordinate centers and a decreasing exponent measure for monomial controlled transforms. -/ |
| 11 | |
| 12 | open Finset |
| 13 | |
| 14 | variable {σ : Type*} [DecidableEq σ] |
| 15 | |
| 16 | /-- A permissible coordinate center minimal under removal of a coordinate. -/ |
| 17 | def MinimalMonomialCenter (a : σ → ℕ) (b : ℕ) (C : Finset σ) : Prop := |
| 18 | C.Nonempty ∧ b ≤ ∑ i ∈ C, a i ∧ ∀ i ∈ C, ∑ j ∈ C.erase i, a j < b |
| 19 | |
| 20 | /-- Every permissible finite coordinate set contains a minimal permissible center. -/ |
| 21 | theorem exists_minimal_monomial_center (a : σ → ℕ) (b : ℕ) (hb : 0 < b) |
| 22 | (s : Finset σ) (hs : b ≤ ∑ i ∈ s, a i) : |
| 23 | ∃ C ⊆ s, MinimalMonomialCenter a b C := by |
| 24 | obtain ⟨C, hCs, hC⟩ := exists_minimal_le_of_wellFoundedLT |
| 25 | (fun C : Finset σ => b ≤ ∑ i ∈ C, a i) s hs |
| 26 | refine ⟨C, hCs, ?_, hC.1, ?_⟩ |
| 27 | · by_contra h |
| 28 | have he : C = ∅ := Finset.not_nonempty_iff_eq_empty.mp h |
| 29 | have hz := hC.1 |
| 30 | simp only [he, sum_empty] at hz |
| 31 | omega |
| 32 | · intro i hi |
| 33 | by_contra h |
| 34 | have hle : C ⊆ C.erase i := hC.2 (Nat.le_of_not_gt h) (erase_subset i C) |
| 35 | exact (notMem_erase i C) (hle hi) |
| 36 | |
| 37 | /-- The new exceptional exponent in the `i`th controlled-transform chart. -/ |
| 38 | def monomialChartExponents (a : σ → ℕ) (b : ℕ) (C : Finset σ) (i : σ) : σ → ℕ := |
| 39 | Function.update a i ((∑ j ∈ C, a j) - b) |
| 40 | |
| 41 | /-- Minimality makes every new exceptional exponent strictly smaller |
| 42 | than the exponent of the coordinate used as denominator. -/ |
| 43 | theorem monomial_exceptional_exponent_lt (a : σ → ℕ) (b : ℕ) (C : Finset σ) |
| 44 | (hC : MinimalMonomialCenter a b C) (i : σ) (hi : i ∈ C) : |
| 45 | (∑ j ∈ C, a j) - b < a i := by |
| 46 | have he := sum_erase_add C a hi |
| 47 | have hlt := hC.2.2 i hi |
| 48 | have hle := hC.2.1 |
| 49 | omega |
| 50 | |
| 51 | variable [Fintype σ] |
| 52 | |
| 53 | /-- The sum of all exponents strictly decreases in every chart of a |
| 54 | minimal permissible coordinate blowup. -/ |
| 55 | theorem monomialChartExponents_sum_lt (a : σ → ℕ) (b : ℕ) (C : Finset σ) |
| 56 | (hC : MinimalMonomialCenter a b C) (i : σ) (hi : i ∈ C) : |
| 57 | (∑ j, monomialChartExponents a b C i j) < ∑ j, a j := by |
| 58 | have hlt := monomial_exceptional_exponent_lt a b C hC i hi |
| 59 | have he := sum_erase_add univ a (mem_univ i) |
| 60 | rw [monomialChartExponents, sum_update_of_mem (mem_univ i), sdiff_singleton_eq_erase] |
| 61 | omega |
| 62 | |
| 63 | /-- One local monomial step, including the choice of an actual denominator chart. -/ |
| 64 | def MonomialControlledStep (b : ℕ) (a' a : σ → ℕ) : Prop := |
| 65 | ∃ (C : Finset σ) (i : σ), MinimalMonomialCenter a b C ∧ i ∈ C ∧ |
| 66 | a' = monomialChartExponents a b C i |
| 67 | |
| 68 | /-- Local monomial controlled transformation cannot continue indefinitely: |
| 69 | every branch decreases the natural-number sum of exponents. -/ |
| 70 | theorem monomialControlledStep_wellFounded (b : ℕ) : |
| 71 | WellFounded (MonomialControlledStep (σ := σ) b) := by |
| 72 | refine Subrelation.wf ?_ (measure (fun a : σ → ℕ => ∑ i, a i)).wf |
| 73 | rintro a' a ⟨C, i, hC, hi, rfl⟩ |
| 74 | exact monomialChartExponents_sum_lt a b C hC i hi |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Resolution.Blowups.MonomialTermination.Construction |