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.ComplexGroups.HolomorphicAlgebraicity.PolynomialGerms |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericPolynomialGCD |
| 3 | |
| 4 | /-! # Generic Holomorphic Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericHolomorphicPolynomial.Constructions.GenericPolynomial |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # A generic common-root polynomial for a holomorphic family |
| 12 | |
| 13 | Denominator-cleared identities over the local ring are realized on a common |
| 14 | neighborhood. Outside one holomorphic exceptional zero set, a finite family |
| 15 | of polynomial equations has exactly the roots of one polynomial family. |
| 16 | -/ |
| 17 | |
| 18 | open Set Filter _root_.Polynomial |
| 19 | open scoped _root_.Topology BigOperators |
| 20 | |
| 21 | private theorem exists_representative {X R : Type*} {l : Filter X} (a : Germ l R) : |
| 22 | ∃ f : X → R, a = (f : Germ l R) := |
| 23 | a.inductionOn (fun f => ⟨f, rfl⟩) |
| 24 | |
| 25 | theorem exists_generic_common_root_family |
| 26 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [Fintype ι] |
| 27 | (P : ι → E → ℂ[X]) {U : Set E} (hU : IsOpen U) {x : E} (hx : x ∈ U) (d : ℕ) |
| 28 | (hcoeff : ∀ i k, DifferentiableOn ℂ (fun y => (P i y).coeff k) U) |
| 29 | (hdegree : ∀ i y, y ∈ U → (P i y).natDegree ≤ d) |
| 30 | (hnonzero : ∃ i, P i x ≠ 0) : |
| 31 | ∃ (D : ℕ) (G : E → ℂ[X]) (c : E → ℂ) (V : Set E), |
| 32 | IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ |
| 33 | (∀ y, (G y).natDegree ≤ D) ∧ |
| 34 | (∀ k, DifferentiableOn ℂ (fun y => (G y).coeff k) V) ∧ |
| 35 | DifferentiableOn ℂ c V ∧ (¬∀ᶠ y in 𝓝 x, c y = 0) ∧ |
| 36 | ∀ y ∈ V, c y ≠ 0 → ∀ z : ℂ, (∀ i, (P i y).eval z = 0) ↔ (G y).eval z = 0 := by |
| 37 | classical |
| 38 | let p : ι → (HolomorphicGerms.Constructions.Germs.HolomorphicGerm x)[X] := fun i => |
| 39 | PolynomialGerms.Constructions.Germs.polynomialOfFamily x (P i) d hU hx (hcoeff i) |
| 40 | have hp (i : ι) : PolynomialGerms.Constructions.Germs.polynomialRealization x (p i) = ((P i) : Germ (𝓝 x) ℂ[X]) := |
| 41 | PolynomialGerms.Constructions.Germs.realize_polynomialOfFamily x (P i) d hU hx (hcoeff i) (hdegree i) |
| 42 | have hpn : ∃ i, p i ≠ 0 := by |
| 43 | obtain ⟨i, hi⟩ := hnonzero |
| 44 | exact ⟨i, PolynomialGerms.Constructions.Germs.polynomialOfFamily_ne_zero x (P i) d hU hx (hcoeff i) (hdegree i) hi⟩ |
| 45 | obtain ⟨q, a₀, B, a, H, _, ha₀, ha, hB, hH⟩ := GenericPolynomialGCD.Constructions.GenericGCD.exists_generic_certificate p hpn |
| 46 | obtain ⟨D, G, W, hW, hxW, hGdeg, hGcoeff, hq⟩ := PolynomialGerms.Constructions.Germs.exists_polynomial_representative x q |
| 47 | choose b hb using (fun i => exists_representative (PolynomialGerms.Constructions.Germs.polynomialRealization x (B i))) |
| 48 | choose h hh using (fun i => exists_representative (PolynomialGerms.Constructions.Germs.polynomialRealization x (H i))) |
| 49 | obtain ⟨f₀, hf₀, _⟩ := a₀.property |
| 50 | have harep : ∀ i, ∃ f : E → ℂ, (f : Germ (𝓝 x) ℂ) = (a i).val := by |
| 51 | intro i |
| 52 | obtain ⟨f, hf, _⟩ := (a i).property |
| 53 | exact ⟨f, hf⟩ |
| 54 | choose f hf using harep |
| 55 | let ac : HolomorphicGerms.Constructions.Germs.HolomorphicGerm x := a₀ * ∏ i, a i |
| 56 | have hac : ac ≠ 0 := mul_ne_zero ha₀ (Finset.prod_ne_zero_iff.mpr (fun i _ => ha i)) |
| 57 | obtain ⟨c, hc, Wc, hWc, hxWc, hcd⟩ := ac.property |
| 58 | have hc0 : ¬∀ᶠ y in 𝓝 x, c y = 0 := by |
| 59 | intro hc0 |
| 60 | apply hac |
| 61 | apply Subtype.ext |
| 62 | change ac.val = 0 |
| 63 | rw [← hc] |
| 64 | exact Germ.coe_eq.mpr hc0 |
| 65 | have hfactor : ∀ᶠ y in 𝓝 x, c y = f₀ y * ∏ i, f i y := by |
| 66 | have heq : (c : Germ (𝓝 x) ℂ) = ((f₀ * ∏ i, f i : E → ℂ) : Germ (𝓝 x) ℂ) := by |
| 67 | rw [hc, Germ.coe_mul, Germ.coe_prod, hf₀] |
| 68 | change (HolomorphicGerms.Constructions.Germs.holomorphicGerms x).subtype (a₀ * ∏ i, a i) = _ |
| 69 | rw [map_mul, map_prod] |
| 70 | simp only [hf] |
| 71 | rfl |
| 72 | filter_upwards [Germ.coe_eq.mp heq] with y hy |
| 73 | simpa only [Pi.mul_apply, Finset.prod_apply] using hy |
| 74 | have hsum : ∀ᶠ y in 𝓝 x, (∑ i, b i y * P i y) = C (f₀ y) * G y := by |
| 75 | have heq := congrArg (PolynomialGerms.Constructions.Germs.polynomialRealization x) hB |
| 76 | simp only [map_sum, map_mul, hb, hp, |
| 77 | PolynomialGerms.Constructions.Germs.realize_C_of_representative x a₀ f₀ hf₀, hq, ← Germ.coe_mul, ← Germ.coe_sum] at heq |
| 78 | filter_upwards [Germ.coe_eq.mp heq] with y hy |
| 79 | simpa only [Pi.mul_apply, Finset.sum_apply] using hy |
| 80 | have hdiv : ∀ i, ∀ᶠ y in 𝓝 x, C (f i y) * P i y = G y * h i y := by |
| 81 | intro i |
| 82 | have heq := congrArg (PolynomialGerms.Constructions.Germs.polynomialRealization x) (hH i) |
| 83 | simp only [map_mul, PolynomialGerms.Constructions.Germs.realize_C_of_representative x (a i) (f i) (hf i), |
| 84 | hp, hq, hh, ← Germ.coe_mul] at heq |
| 85 | exact Germ.coe_eq.mp heq |
| 86 | have hall : ∀ᶠ y in 𝓝 x, y ∈ U ∧ y ∈ W ∧ y ∈ Wc ∧ |
| 87 | c y = f₀ y * ∏ i, f i y ∧ (∑ i, b i y * P i y) = C (f₀ y) * G y ∧ |
| 88 | ∀ i, C (f i y) * P i y = G y * h i y := by |
| 89 | filter_upwards [hU.mem_nhds hx, hW.mem_nhds hxW, hWc.mem_nhds hxWc, |
| 90 | hfactor, hsum, eventually_all.mpr hdiv] with y hyU hyW hyWc hyf hys hyd |
| 91 | exact ⟨hyU, hyW, hyWc, hyf, hys, hyd⟩ |
| 92 | obtain ⟨V, hVsub, hV, hxV⟩ := mem_nhds_iff.mp hall |
| 93 | refine ⟨D, G, c, V, hV, hxV, fun y hy => (hVsub hy).1, hGdeg, |
| 94 | fun k => (hGcoeff k).mono (fun y hy => (hVsub hy).2.1), |
| 95 | hcd.mono (fun y hy => (hVsub hy).2.2.1), hc0, ?_⟩ |
| 96 | intro y hy hcy z |
| 97 | obtain ⟨_, _, _, hfy, hBy, hHy⟩ := hVsub hy |
| 98 | have hnon : f₀ y * ∏ i, f i y ≠ 0 := hfy ▸ hcy |
| 99 | have hf₀y : f₀ y ≠ 0 := (mul_ne_zero_iff.mp hnon).1 |
| 100 | have hfiy (i : ι) : f i y ≠ 0 := Finset.prod_ne_zero_iff.mp |
| 101 | (mul_ne_zero_iff.mp hnon).2 i (Finset.mem_univ _) |
| 102 | constructor |
| 103 | · intro hz |
| 104 | have heq := congrArg (fun Q : ℂ[X] => Q.eval z) hBy |
| 105 | have hmul : f₀ y * (G y).eval z = 0 := by |
| 106 | simpa only [eval_finsetSum, eval_mul, eval_C, hz, mul_zero, Finset.sum_const_zero] using heq.symm |
| 107 | exact (mul_eq_zero.mp hmul).resolve_left hf₀y |
| 108 | · intro hz i |
| 109 | have heq := congrArg (fun Q : ℂ[X] => Q.eval z) (hHy i) |
| 110 | have hmul : f i y * (P i y).eval z = 0 := by |
| 111 | simpa only [eval_mul, eval_C, hz, zero_mul] using heq |
| 112 | exact (mul_eq_zero.mp hmul).resolve_left (hfiy i) |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericHolomorphicPolynomial.Constructions.GenericPolynomial |