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.HolomorphicGerms |
| 2 | import Mathlib.Algebra.Polynomial.BigOperators |
| 3 | import Mathlib.Algebra.Polynomial.Eval.Degree |
| 4 | |
| 5 | /-! # Polynomial Germs -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.PolynomialGerms.Constructions.Germs |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Realizing polynomials of holomorphic germs |
| 13 | |
| 14 | Polynomial identities between coefficient germs become identities of |
| 15 | polynomial-valued function germs. Finite polynomial degree bounds then turn |
| 16 | these identities into actual equations on a common neighborhood. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.Polynomial |
| 20 | open scoped _root_.Topology BigOperators |
| 21 | |
| 22 | def mapGermRingHom {X R S : Type*} [Semiring R] [Semiring S] |
| 23 | (l : Filter X) (φ : R →+* S) : Germ l R →+* Germ l S where |
| 24 | toFun := Germ.map φ |
| 25 | map_zero' := by |
| 26 | apply Germ.coe_eq.mpr |
| 27 | exact Filter.Eventually.of_forall (fun _ => map_zero φ) |
| 28 | map_one' := by |
| 29 | apply Germ.coe_eq.mpr |
| 30 | exact Filter.Eventually.of_forall (fun _ => map_one φ) |
| 31 | map_add' := by |
| 32 | intro a b |
| 33 | induction a, b using Germ.inductionOn₂ with |
| 34 | | h f g => |
| 35 | apply Germ.coe_eq.mpr |
| 36 | exact Filter.Eventually.of_forall (fun x => map_add φ (f x) (g x)) |
| 37 | map_mul' := by |
| 38 | intro a b |
| 39 | induction a, b using Germ.inductionOn₂ with |
| 40 | | h f g => |
| 41 | apply Germ.coe_eq.mpr |
| 42 | exact Filter.Eventually.of_forall (fun x => map_mul φ (f x) (g x)) |
| 43 | |
| 44 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 45 | |
| 46 | def polynomialRealization (x : E) : (HolomorphicGerms.Constructions.Germs.HolomorphicGerm x)[X] →+* Germ (𝓝 x) ℂ[X] := |
| 47 | Polynomial.eval₂RingHom |
| 48 | ((mapGermRingHom (𝓝 x) (C : ℂ →+* ℂ[X])).comp (HolomorphicGerms.Constructions.Germs.holomorphicGerms x).subtype) |
| 49 | (Germ.const X) |
| 50 | |
| 51 | theorem realize_C_of_representative (x : E) (a : HolomorphicGerms.Constructions.Germs.HolomorphicGerm x) (f : E → ℂ) |
| 52 | (hf : (f : Germ (𝓝 x) ℂ) = a.val) : |
| 53 | polynomialRealization x (C a) = ((fun y => C (f y)) : Germ (𝓝 x) ℂ[X]) := by |
| 54 | change Polynomial.eval₂ _ _ (C a) = _ |
| 55 | rw [eval₂_C] |
| 56 | change Germ.map (C : ℂ → ℂ[X]) a.val = _ |
| 57 | rw [← hf, Germ.map_coe] |
| 58 | rfl |
| 59 | |
| 60 | theorem realize_monomial_ofFunction (x : E) (f : E → ℂ) {U : Set E} |
| 61 | (hU : IsOpen U) (hx : x ∈ U) (hf : DifferentiableOn ℂ f U) (k : ℕ) : |
| 62 | polynomialRealization x (monomial k (HolomorphicGerms.Constructions.Germs.ofFunction x f hU hx hf)) = |
| 63 | ((fun y => monomial k (f y)) : Germ (𝓝 x) ℂ[X]) := by |
| 64 | change Polynomial.eval₂ _ _ (monomial k (HolomorphicGerms.Constructions.Germs.ofFunction x f hU hx hf)) = _ |
| 65 | rw [eval₂_monomial] |
| 66 | change (Germ.map (C : ℂ → ℂ[X]) (f : Germ (𝓝 x) ℂ)) * |
| 67 | ((fun _ : E => (X : ℂ[X])) : Germ (𝓝 x) ℂ[X]) ^ k = _ |
| 68 | simp only [Germ.map_coe, ← Germ.coe_pow, ← Germ.coe_mul] |
| 69 | apply Germ.coe_eq.mpr |
| 70 | exact Filter.Eventually.of_forall (fun _ => C_mul_X_pow_eq_monomial) |
| 71 | |
| 72 | /-- A polynomial in holomorphic germs has a polynomial-valued representative |
| 73 | with a fixed degree bound and holomorphic coefficients on one neighborhood. -/ |
| 74 | theorem exists_polynomial_representative (x : E) (Q : (HolomorphicGerms.Constructions.Germs.HolomorphicGerm x)[X]) : |
| 75 | ∃ (d : ℕ) (P : E → ℂ[X]) (U : Set E), IsOpen U ∧ x ∈ U ∧ |
| 76 | (∀ y, (P y).natDegree ≤ d) ∧ |
| 77 | (∀ k : ℕ, DifferentiableOn ℂ (fun y => (P y).coeff k) U) ∧ |
| 78 | polynomialRealization x Q = (P : Germ (𝓝 x) ℂ[X]) := by |
| 79 | induction Q using Polynomial.induction_on' with |
| 80 | | add Q₁ Q₂ ih₁ ih₂ => |
| 81 | obtain ⟨d₁, P₁, U₁, hU₁, hx₁, hd₁, hp₁, hq₁⟩ := ih₁ |
| 82 | obtain ⟨d₂, P₂, U₂, hU₂, hx₂, hd₂, hp₂, hq₂⟩ := ih₂ |
| 83 | refine ⟨max d₁ d₂, (fun y => P₁ y + P₂ y), U₁ ∩ U₂, hU₁.inter hU₂, |
| 84 | ⟨hx₁, hx₂⟩, fun y => (natDegree_add_le (P₁ y) (P₂ y)).trans (max_le_max (hd₁ y) (hd₂ y)), ?_, ?_⟩ |
| 85 | · intro k |
| 86 | simp only [coeff_add] |
| 87 | exact (hp₁ k |>.mono inter_subset_left).add (hp₂ k |>.mono inter_subset_right) |
| 88 | · rw [map_add, hq₁, hq₂] |
| 89 | exact (Germ.coe_add P₁ P₂).symm |
| 90 | | monomial k a => |
| 91 | obtain ⟨f, hfa, U, hU, hx, hf⟩ := a.property |
| 92 | have ha : HolomorphicGerms.Constructions.Germs.ofFunction x f hU hx hf = a := Subtype.ext hfa |
| 93 | refine ⟨k, (fun y => monomial k (f y)), U, hU, hx, |
| 94 | fun y => natDegree_monomial_le (f y), ?_, ?_⟩ |
| 95 | · intro j |
| 96 | simp only [coeff_monomial] |
| 97 | split_ifs |
| 98 | · exact hf |
| 99 | · exact differentiableOn_const _ |
| 100 | · rw [← ha] |
| 101 | exact realize_monomial_ofFunction x f hU hx hf k |
| 102 | |
| 103 | def polynomialOfFamily (x : E) (P : E → ℂ[X]) (d : ℕ) {U : Set E} |
| 104 | (hU : IsOpen U) (hx : x ∈ U) |
| 105 | (hcoeff : ∀ k : ℕ, DifferentiableOn ℂ (fun y => (P y).coeff k) U) : (HolomorphicGerms.Constructions.Germs.HolomorphicGerm x)[X] := |
| 106 | ∑ k ∈ Finset.range (d + 1), monomial k (HolomorphicGerms.Constructions.Germs.ofFunction x (fun y => (P y).coeff k) hU hx (hcoeff k)) |
| 107 | |
| 108 | theorem realize_polynomialOfFamily (x : E) (P : E → ℂ[X]) (d : ℕ) {U : Set E} |
| 109 | (hU : IsOpen U) (hx : x ∈ U) |
| 110 | (hcoeff : ∀ k : ℕ, DifferentiableOn ℂ (fun y => (P y).coeff k) U) |
| 111 | (hdegree : ∀ y ∈ U, (P y).natDegree ≤ d) : |
| 112 | polynomialRealization x (polynomialOfFamily x P d hU hx hcoeff) = (P : Germ (𝓝 x) ℂ[X]) := by |
| 113 | simp only [polynomialOfFamily, map_sum, realize_monomial_ofFunction] |
| 114 | rw [← Germ.coe_sum] |
| 115 | apply Germ.coe_eq.mpr |
| 116 | filter_upwards [hU.mem_nhds hx] with y hy |
| 117 | simp only [Finset.sum_apply] |
| 118 | change (∑ k ∈ Finset.range (d + 1), monomial k ((P y).coeff k)) = P y |
| 119 | apply Polynomial.funext |
| 120 | intro z |
| 121 | simp only [eval_finsetSum, eval_monomial] |
| 122 | exact (eval_eq_sum_range' (lt_of_le_of_lt (hdegree y hy) (Nat.lt_succ_self d)) z).symm |
| 123 | |
| 124 | theorem polynomialOfFamily_ne_zero (x : E) (P : E → ℂ[X]) (d : ℕ) {U : Set E} |
| 125 | (hU : IsOpen U) (hx : x ∈ U) |
| 126 | (hcoeff : ∀ k : ℕ, DifferentiableOn ℂ (fun y => (P y).coeff k) U) |
| 127 | (hdegree : ∀ y ∈ U, (P y).natDegree ≤ d) (hP : P x ≠ 0) : |
| 128 | polynomialOfFamily x P d hU hx hcoeff ≠ 0 := by |
| 129 | intro hz |
| 130 | have hreal := realize_polynomialOfFamily x P d hU hx hcoeff hdegree |
| 131 | rw [hz, map_zero] at hreal |
| 132 | have hzero : ∀ᶠ y in 𝓝 x, P y = 0 := Germ.coe_eq.mp hreal.symm |
| 133 | exact hP hzero.self_of_nhds |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.PolynomialGerms.Constructions.Germs |