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.ProperFiberPolynomial |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.CoefficientExtension |
| 3 | |
| 4 | /-! # Global Fiber Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GlobalFiberPolynomial.Constructions.Cone |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Gluing reduced equations of proper finite fibers |
| 12 | |
| 13 | The reduced local polynomials agree on overlaps, since they have the same |
| 14 | generic simple roots. Their coefficients consequently define a global |
| 15 | holomorphic polynomial family on any open part of the base where the fibers |
| 16 | are finite and the total set is locally analytic along them. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.Polynomial |
| 20 | open scoped _root_.Topology |
| 21 | |
| 22 | theorem nonzero_germ_of_dense_nonzero |
| 23 | {E : Type*} [TopologicalSpace E] {c : E → ℂ} {U : Set E} |
| 24 | (hdense : U ⊆ closure {y | y ∈ U ∧ c y ≠ 0}) {x : E} (hx : x ∈ U) : |
| 25 | ¬∀ᶠ y in 𝓝 x, c y = 0 := by |
| 26 | intro hz |
| 27 | obtain ⟨y, hy, hzy⟩ := ((mem_closure_iff_frequently.mp (hdense hx)).and_eventually hz).exists |
| 28 | exact hy.2 hzy |
| 29 | |
| 30 | theorem reduced_fiber_polynomials_eq_on_overlap {n : ℕ} |
| 31 | {S : Set ((Fin n → ℂ) × ℂ)} |
| 32 | {P Q : (Fin n → ℂ) → ℂ[X]} {c d : (Fin n → ℂ) → ℂ} |
| 33 | {U V : Set (Fin n → ℂ)} (hU : IsOpen U) (hV : IsOpen V) |
| 34 | (hc : DifferentiableOn ℂ c U) (hd : DifferentiableOn ℂ d V) |
| 35 | (hcdense : U ⊆ closure {y | y ∈ U ∧ c y ≠ 0}) |
| 36 | (hddense : V ⊆ closure {y | y ∈ V ∧ d y ≠ 0}) |
| 37 | (hPcoeff : ∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) U) |
| 38 | (hQcoeff : ∀ j, DifferentiableOn ℂ (fun y => (Q y).coeff j) V) |
| 39 | (hP : ∀ y ∈ U, (P y).Monic) (hQ : ∀ y ∈ V, (Q y).Monic) |
| 40 | (hProots : ∀ y ∈ U, c y ≠ 0 → (P y).Separable ∧ |
| 41 | ∀ z : ℂ, (y, z) ∈ S ↔ (P y).eval z = 0) |
| 42 | (hQroots : ∀ y ∈ V, d y ≠ 0 → (Q y).Separable ∧ |
| 43 | ∀ z : ℂ, (y, z) ∈ S ↔ (Q y).eval z = 0) : |
| 44 | EqOn P Q (U ∩ V) := by |
| 45 | intro y hy |
| 46 | apply Filter.EventuallyEq.eq_of_nhds |
| 47 | apply CoefficientExtension.Constructions.GenericPolynomial.eventually_eq_of_generic_roots (hU.inter hV) hy |
| 48 | (hc.mono inter_subset_left) (hd.mono inter_subset_right) |
| 49 | (nonzero_germ_of_dense_nonzero hcdense hy.1) (nonzero_germ_of_dense_nonzero hddense hy.2) |
| 50 | (fun j => (hPcoeff j).continuousOn.mono inter_subset_left) |
| 51 | (fun j => (hQcoeff j).continuousOn.mono inter_subset_right) |
| 52 | intro z hz hcz hdz |
| 53 | exact ⟨hP z hz.1, hQ z hz.2, (hProots z hz.1 hcz).1, (hQroots z hz.2 hdz).1, |
| 54 | fun w => ((hProots z hz.1 hcz).2 w).symm.trans ((hQroots z hz.2 hdz).2 w)⟩ |
| 55 | |
| 56 | theorem exists_global_reduced_fiber_polynomial {n : ℕ} |
| 57 | {S : Set ((Fin n → ℂ) × ℂ)} {Ω : Set (Fin n → ℂ)} (hΩ : IsOpen Ω) |
| 58 | (hproper : IsProperMap (fun p : S => p.val.1)) |
| 59 | (hfinite : ∀ x ∈ Ω, {z : ℂ | (x, z) ∈ S}.Finite) |
| 60 | (hlocal : ∀ x ∈ Ω, ∀ z, (x, z) ∈ S → ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, z)) : |
| 61 | ∃ P : (Fin n → ℂ) → ℂ[X], |
| 62 | (∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) Ω) ∧ |
| 63 | (∀ y ∈ Ω, (P y).Monic) ∧ |
| 64 | ∀ x ∈ Ω, ∃ (d : ℕ) (V : Set (Fin n → ℂ)) (c : (Fin n → ℂ) → ℂ), |
| 65 | IsOpen V ∧ x ∈ V ∧ V ⊆ Ω ∧ DifferentiableOn ℂ c V ∧ |
| 66 | (¬∀ᶠ y in 𝓝 x, c y = 0) ∧ V ⊆ closure {y | y ∈ V ∧ c y ≠ 0} ∧ |
| 67 | (∀ y ∈ V, (P y).natDegree = d) ∧ |
| 68 | ∀ y ∈ V, c y ≠ 0 → (P y).Separable ∧ |
| 69 | ∀ z : ℂ, (y, z) ∈ S ↔ (P y).eval z = 0 := by |
| 70 | classical |
| 71 | have hex (a : Ω) := ProperFiberPolynomial.Constructions.Cone.exists_reduced_full_fiber_polynomial hproper |
| 72 | (hfinite a a.property) (hlocal a a.property) |
| 73 | choose d U Q c hU hxU hc hcn hdense hcoeff hQ hroot using hex |
| 74 | have hoverlap (a b : Ω) : EqOn (Q a) (Q b) (U a ∩ U b) := |
| 75 | reduced_fiber_polynomials_eq_on_overlap (hU a) (hU b) (hc a) (hc b) |
| 76 | (hdense a) (hdense b) (hcoeff a) (hcoeff b) |
| 77 | (fun y hy => (hQ a y hy).1) (fun y hy => (hQ b y hy).1) (hroot a) (hroot b) |
| 78 | let P : (Fin n → ℂ) → ℂ[X] := fun y => if hy : y ∈ Ω then Q ⟨y, hy⟩ y else 0 |
| 79 | have hPQ (a : Ω) (y : Fin n → ℂ) (hy : y ∈ U a) (hyΩ : y ∈ Ω) : P y = Q a y := by |
| 80 | rw [show P y = Q ⟨y, hyΩ⟩ y from dite_eq_left hyΩ] |
| 81 | exact hoverlap ⟨y, hyΩ⟩ a ⟨hxU ⟨y, hyΩ⟩, hy⟩ |
| 82 | refine ⟨P, ?_, ?_, ?_⟩ |
| 83 | · intro j y hy |
| 84 | let a : Ω := ⟨y, hy⟩ |
| 85 | have heq : (fun z => (P z).coeff j) =ᶠ[𝓝 y] (fun z => (Q a z).coeff j) := by |
| 86 | filter_upwards [(hU a).mem_nhds (hxU a), hΩ.mem_nhds hy] with z hz hzΩ |
| 87 | rw [hPQ a z hz hzΩ] |
| 88 | exact (((hcoeff a j).differentiableAt ((hU a).mem_nhds (hxU a))).congr_of_eventuallyEq heq).differentiableWithinAt |
| 89 | · intro y hy |
| 90 | rw [hPQ ⟨y, hy⟩ y (hxU ⟨y, hy⟩) hy] |
| 91 | exact (hQ ⟨y, hy⟩ y (hxU ⟨y, hy⟩)).1 |
| 92 | · intro x hx |
| 93 | let a : Ω := ⟨x, hx⟩ |
| 94 | refine ⟨d a, U a ∩ Ω, c a, (hU a).inter hΩ, ⟨hxU a, hx⟩, inter_subset_right, |
| 95 | (hc a).mono inter_subset_left, hcn a, ?_, ?_, ?_⟩ |
| 96 | · intro y hy |
| 97 | apply mem_closure_iff_frequently.mpr |
| 98 | apply ((mem_closure_iff_frequently.mp (hdense a hy.1)).and_eventually (hΩ.mem_nhds hy.2)).mono |
| 99 | intro z hz |
| 100 | exact ⟨⟨hz.1.1, hz.2⟩, hz.1.2⟩ |
| 101 | · intro y hy |
| 102 | rw [hPQ a y hy.1 hy.2] |
| 103 | exact (hQ a y hy.1).2 |
| 104 | · intro y hy hcy |
| 105 | rw [hPQ a y hy.1 hy.2] |
| 106 | exact hroot a y hy.1 hcy |
| 107 | |
| 108 | theorem exists_constant_degree_of_locally_constant |
| 109 | {E : Type*} [TopologicalSpace E] {Ω : Set E} (hΩ : IsPreconnected Ω) (hne : Ω.Nonempty) |
| 110 | {P : E → ℂ[X]} |
| 111 | (hdeg : ∀ x ∈ Ω, ∃ d : ℕ, ∃ V : Set E, IsOpen V ∧ x ∈ V ∧ |
| 112 | ∀ y ∈ V, (P y).natDegree = d) : |
| 113 | ∃ d : ℕ, ∀ y ∈ Ω, (P y).natDegree = d := by |
| 114 | have hcont : ContinuousOn (fun y => (P y).natDegree) Ω := by |
| 115 | intro x hx |
| 116 | obtain ⟨d, V, hV, hxV, hVdeg⟩ := hdeg x hx |
| 117 | have heq : (fun y => (P y).natDegree) =ᶠ[𝓝 x] (fun _ => d) := by |
| 118 | filter_upwards [hV.mem_nhds hxV] with y hy |
| 119 | exact hVdeg y hy |
| 120 | have ht : Tendsto (fun y => (P y).natDegree) (𝓝 x) (𝓝 d) := |
| 121 | tendsto_const_nhds.congr' heq.symm |
| 122 | have hc : ContinuousAt (fun y => (P y).natDegree) x := by |
| 123 | change Tendsto (fun y => (P y).natDegree) (𝓝 x) (𝓝 (P x).natDegree) |
| 124 | simpa only [hVdeg x hxV] using ht |
| 125 | exact hc.continuousWithinAt |
| 126 | obtain ⟨x, hx⟩ := hne |
| 127 | exact ⟨(P x).natDegree, fun y hy => (hΩ.constant hcont hx hy).symm⟩ |
| 128 | |
| 129 | theorem exists_global_fixed_degree_fiber_polynomial {n : ℕ} |
| 130 | {S : Set ((Fin n → ℂ) × ℂ)} {Ω : Set (Fin n → ℂ)} (hΩ : IsOpen Ω) |
| 131 | (hconnected : IsPreconnected Ω) (hne : Ω.Nonempty) |
| 132 | (hproper : IsProperMap (fun p : S => p.val.1)) |
| 133 | (hfinite : ∀ x ∈ Ω, {z : ℂ | (x, z) ∈ S}.Finite) |
| 134 | (hlocal : ∀ x ∈ Ω, ∀ z, (x, z) ∈ S → ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, z)) : |
| 135 | ∃ (d : ℕ) (P : (Fin n → ℂ) → ℂ[X]), |
| 136 | (∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) Ω) ∧ |
| 137 | (∀ y ∈ Ω, (P y).Monic ∧ (P y).natDegree = d) ∧ |
| 138 | ∀ x ∈ Ω, ∃ (V : Set (Fin n → ℂ)) (c : (Fin n → ℂ) → ℂ), |
| 139 | IsOpen V ∧ x ∈ V ∧ V ⊆ Ω ∧ DifferentiableOn ℂ c V ∧ |
| 140 | (¬∀ᶠ y in 𝓝 x, c y = 0) ∧ V ⊆ closure {y | y ∈ V ∧ c y ≠ 0} ∧ |
| 141 | ∀ y ∈ V, c y ≠ 0 → (P y).Separable ∧ |
| 142 | ∀ z : ℂ, (y, z) ∈ S ↔ (P y).eval z = 0 := by |
| 143 | obtain ⟨P, hcoeff, hP, hnear⟩ := exists_global_reduced_fiber_polynomial hΩ hproper hfinite hlocal |
| 144 | have hlocdeg (x : Fin n → ℂ) (hx : x ∈ Ω) : |
| 145 | ∃ d : ℕ, ∃ V : Set (Fin n → ℂ), IsOpen V ∧ x ∈ V ∧ |
| 146 | ∀ y ∈ V, (P y).natDegree = d := by |
| 147 | obtain ⟨d, V, _, hV, hxV, _, _, _, _, hdeg, _⟩ := hnear x hx |
| 148 | exact ⟨d, V, hV, hxV, hdeg⟩ |
| 149 | obtain ⟨d, hdeg⟩ := exists_constant_degree_of_locally_constant hconnected hne hlocdeg |
| 150 | refine ⟨d, P, hcoeff, fun y hy => ⟨hP y hy, hdeg y hy⟩, ?_⟩ |
| 151 | intro x hx |
| 152 | obtain ⟨_, V, c, hV, hxV, hVΩ, hc, hcn, hdense, _, hroot⟩ := hnear x hx |
| 153 | exact ⟨V, c, hV, hxV, hVΩ, hc, hcn, hdense, hroot⟩ |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GlobalFiberPolynomial.Constructions.Cone |