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.Balanced.ExponentFiniteGeneration |
| 2 | import Mathlib.Algebra.Group.Submonoid.Finsupp |
| 3 | |
| 4 | /-! # Balanced Exponent Generators -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Positive.BalancedExponentGenerators |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Removing the zero exponent from a finite generating set leaves |
| 11 | finite nonzero balanced generators and explicit natural coefficients. -/ |
| 12 | open scoped BigOperators Classical |
| 13 | universe u v |
| 14 | variable {κ : Type u} [Fintype κ] {ι : Type v} (w : κ → ι → ℕ) |
| 15 | |
| 16 | theorem balancedExponentMonoid_nonzero_generators : |
| 17 | ∃ (n : ℕ) (B : Fin n → κ → ℕ), |
| 18 | (∀ j, B j ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid w ∧ B j ≠ 0) ∧ |
| 19 | AddSubmonoid.closure (Set.range B) = Balanced.ExponentFiniteGeneration.balancedExponentMonoid w := by |
| 20 | obtain ⟨s, hs⟩ := Balanced.ExponentFiniteGeneration.balancedExponentMonoid_fg w |
| 21 | let t := s.erase 0 |
| 22 | have ht : AddSubmonoid.closure (t : Set (κ → ℕ)) = Balanced.ExponentFiniteGeneration.balancedExponentMonoid w := by |
| 23 | apply le_antisymm |
| 24 | · apply AddSubmonoid.closure_le.mpr |
| 25 | intro a ha |
| 26 | rw [← hs] |
| 27 | exact AddSubmonoid.subset_closure (Finset.mem_of_mem_erase ha) |
| 28 | · rw [← hs] |
| 29 | apply AddSubmonoid.closure_le.mpr |
| 30 | intro a ha |
| 31 | by_cases hz : a = 0 |
| 32 | · rw [hz] |
| 33 | exact AddSubmonoid.zero_mem _ |
| 34 | · exact AddSubmonoid.subset_closure (Finset.mem_erase.mpr ⟨hz, ha⟩) |
| 35 | let e : Fin (Fintype.card t) ≃ t := (Fintype.equivFin t).symm |
| 36 | let B : Fin (Fintype.card t) → κ → ℕ := fun j => (e j).val |
| 37 | have hB : Set.range B = (t : Set (κ → ℕ)) := by |
| 38 | ext a |
| 39 | constructor |
| 40 | · rintro ⟨j, rfl⟩ |
| 41 | exact (e j).property |
| 42 | · intro ha |
| 43 | exact ⟨e.symm ⟨a, ha⟩, congrArg Subtype.val (e.apply_symm_apply ⟨a, ha⟩)⟩ |
| 44 | refine ⟨Fintype.card t, B, ?_, hB.symm ▸ ht⟩ |
| 45 | intro j |
| 46 | refine ⟨?_, (Finset.mem_erase.mp (e j).property).1⟩ |
| 47 | rw [← ht] |
| 48 | exact AddSubmonoid.subset_closure (e j).property |
| 49 | |
| 50 | theorem balancedExponentMonoid_positive_generator_representation : |
| 51 | ∃ (n : ℕ) (B : Fin n → κ → ℕ), |
| 52 | (∀ j, B j ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid w ∧ B j ≠ 0) ∧ |
| 53 | ∀ a ∈ Balanced.ExponentFiniteGeneration.balancedExponentMonoid w, ∃ q : Fin n → ℕ, a = ∑ j, q j • B j := by |
| 54 | obtain ⟨n, B, hB, hcl⟩ := balancedExponentMonoid_nonzero_generators w |
| 55 | refine ⟨n, B, hB, ?_⟩ |
| 56 | intro a ha |
| 57 | exact (AddSubmonoid.mem_closure_range_iff_of_fintype).mp (hcl.symm ▸ ha) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Positive.BalancedExponentGenerators |