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.HilbertScheme.Presentations.WeightedRename |
| 2 | |
| 3 | /-! # Variable Elimination -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.VariableElimination.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Transport of bounded elimination to any finite collection of named variables. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u v z |
| 14 | |
| 15 | variable {K : Type u} [Field K] {σ : Type v} {n : ℕ} |
| 16 | |
| 17 | theorem supported_complement_rename_equiv (e : σ ≃ Fin (n + 1)) |
| 18 | (s : Finset σ) (p : MvPolynomial σ K) : |
| 19 | rename e p ∈ supported K (((s.image e : Finset (Fin (n + 1))) : Set (Fin (n + 1)))ᶜ) ↔ |
| 20 | p ∈ supported K ((s : Set σ)ᶜ) := by |
| 21 | classical |
| 22 | rw [Finset.coe_image, ← e.image_compl] |
| 23 | exact WeightedRename.GradedHilbert.supported_rename_equiv e ((s : Set σ)ᶜ) p |
| 24 | |
| 25 | theorem exists_weighted_elimination_generators_of_equiv |
| 26 | (E : σ ≃ Fin (n + 1)) (w : σ → ℕ) (hw : ∀ i, w i ≠ 0) |
| 27 | (s : Finset σ) {ι : Type z} [Fintype ι] |
| 28 | (b : ι → MvPolynomial σ K) (e : ι → ℕ) |
| 29 | (hb : ∀ i, (b i).IsWeightedHomogeneous w (e i)) (hb0 : ∀ i, b i ≠ 0) |
| 30 | (D : ℕ) (hD : ∀ i, e i ≤ D) : |
| 31 | ∃ B : Finset (MvPolynomial σ K), |
| 32 | (∀ g ∈ B, g ∈ Ideal.span (Set.range b) ∧ g ≠ 0 ∧ |
| 33 | g ∈ supported K ((s : Set σ)ᶜ) ∧ |
| 34 | ∃ d ≤ Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound n D, g.IsWeightedHomogeneous w d) ∧ |
| 35 | ∀ f ∈ supported K ((s : Set σ)ᶜ), |
| 36 | f ∈ Ideal.span (Set.range b) ↔ f ∈ Ideal.span (B : Set (MvPolynomial σ K)) := by |
| 37 | classical |
| 38 | let A := renameEquiv K E |
| 39 | let w' := w ∘ E.symm |
| 40 | let b' : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n := fun i => A (b i) |
| 41 | have hb' (i : ι) : (b' i).IsWeightedHomogeneous w' (e i) := by |
| 42 | apply WeightedRename.GradedHilbert.weightedHomogeneous_rename w' E |
| 43 | simpa only [w', Function.comp_def, Equiv.symm_apply_apply] using hb i |
| 44 | have hb0' (i : ι) : b' i ≠ 0 := by |
| 45 | intro hz |
| 46 | exact hb0 i (A.injective (by simpa only [map_zero] using hz)) |
| 47 | obtain ⟨B', hB', hgen⟩ := GroebnerElimination.GradedHilbert.exists_uniform_weighted_elimination_generators w' |
| 48 | (fun i => hw (E.symm i)) (s.image E) b' e hb' hb0' D hD |
| 49 | let B := B'.image A.symm |
| 50 | have hspan (p : MvPolynomial σ K) : |
| 51 | A p ∈ Ideal.span (Set.range b') ↔ p ∈ Ideal.span (Set.range b) := by |
| 52 | have h := WeightedRename.GradedHilbert.algEquiv_mem_span_image A.toRingEquiv (Set.range b) p |
| 53 | change A p ∈ Ideal.span (A '' Set.range b) ↔ p ∈ Ideal.span (Set.range b) at h |
| 54 | simpa only [← Set.range_comp, Function.comp_def, b'] using h |
| 55 | have hs (p : MvPolynomial σ K) : |
| 56 | A p ∈ supported K (((s.image E : Finset (Fin (n + 1))) : Set (Fin (n + 1)))ᶜ) ↔ |
| 57 | p ∈ supported K ((s : Set σ)ᶜ) := supported_complement_rename_equiv E s p |
| 58 | have hBmem (g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hg : g ∈ B') : |
| 59 | A.symm g ∈ Ideal.span (Set.range b) ∧ A.symm g ≠ 0 ∧ |
| 60 | A.symm g ∈ supported K ((s : Set σ)ᶜ) ∧ |
| 61 | ∃ d ≤ Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound n D, |
| 62 | (A.symm g).IsWeightedHomogeneous w d := by |
| 63 | obtain ⟨hgI, hg0, hgs, d, hd, hhom⟩ := hB' g hg |
| 64 | refine ⟨(hspan _).mp (by simpa only [AlgEquiv.apply_symm_apply] using hgI), |
| 65 | (fun hz => hg0 (A.symm.injective (by simpa only [map_zero] using hz))), |
| 66 | (hs _).mp (by simpa only [AlgEquiv.apply_symm_apply] using hgs), |
| 67 | d, hd, ?_⟩ |
| 68 | exact WeightedRename.GradedHilbert.weightedHomogeneous_rename w E.symm hhom |
| 69 | refine ⟨B, ?_, ?_⟩ |
| 70 | · intro g hg |
| 71 | obtain ⟨g', hg', rfl⟩ := Finset.mem_image.mp hg |
| 72 | exact hBmem g' hg' |
| 73 | · intro f hfs |
| 74 | constructor |
| 75 | · intro hf |
| 76 | have hf' := (hgen (A f) ((hs f).mpr hfs)).mp ((hspan f).mpr hf) |
| 77 | have h := (WeightedRename.GradedHilbert.algEquiv_mem_span_image A.symm.toRingEquiv |
| 78 | (B' : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (A f)).mpr hf' |
| 79 | change A.symm (A f) ∈ Ideal.span (A.symm '' (B' : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) at h |
| 80 | simpa only [AlgEquiv.symm_apply_apply, B, Finset.coe_image] using h |
| 81 | · apply Ideal.span_le.mpr |
| 82 | intro g hg |
| 83 | obtain ⟨g', hg', rfl⟩ := Finset.mem_image.mp hg |
| 84 | exact (hBmem g' hg').1 |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.VariableElimination.GradedHilbert |