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.Quotient |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus |
| 3 | |
| 4 | /-! # Continuous Analytic Removable -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.ContinuousAnalyticRemovable |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A continuous function holomorphic outside a locally analytic set is |
| 11 | holomorphic at a point where that set contains no neighborhood. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | open Set Filter |
| 15 | open scoped _root_.Topology |
| 16 | |
| 17 | theorem continuous_differentiableAt_of_analytic_exception {n : ℕ} |
| 18 | {f : (Fin n → ℂ) → ℂ} {U S : Set (Fin n → ℂ)} |
| 19 | (hU : IsOpen U) (hf : ContinuousOn f U) |
| 20 | (hd : ∀ y ∈ U, y ∉ S → DifferentiableAt ℂ f y) |
| 21 | {x : Fin n → ℂ} (hx : x ∈ U) (hS : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S x) |
| 22 | (hn : S ∉ 𝓝 x) : DifferentiableAt ℂ f x := by |
| 23 | obtain ⟨V, hV, hxV, m, g, hg, heq⟩ := hS |
| 24 | have hex : ∃ i : Fin m, ¬∀ᶠ y in 𝓝 x, g i y = 0 := by |
| 25 | by_contra h |
| 26 | have hzero : ∀ i : Fin m, ∀ᶠ y in 𝓝 x, g i y = 0 := by simpa only [not_exists, not_not] using h |
| 27 | apply hn |
| 28 | filter_upwards [hV.mem_nhds hxV, Filter.eventually_all.mpr hzero] with y hy hgy |
| 29 | exact (heq y hy).mpr hgy |
| 30 | obtain ⟨i, hi⟩ := hex |
| 31 | let B := U ∩ {y | ‖f y‖ < ‖f x‖ + 1} |
| 32 | have hB : IsOpen B := hf.norm.isOpen_inter_preimage hU isOpen_Iio |
| 33 | have hxB : x ∈ B := by |
| 34 | refine ⟨hx, ?_⟩ |
| 35 | change ‖f x‖ < ‖f x‖ + 1 |
| 36 | linarith |
| 37 | let W := V ∩ B |
| 38 | have hW : IsOpen W := hV.inter hB |
| 39 | have hxW : x ∈ W := ⟨hxV, hxB⟩ |
| 40 | obtain ⟨D, hD, hxD, hDW, hdense⟩ := AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericDegree.Constructions.GenericPolynomial.exists_dense_nonzero_neighborhood hW hxW |
| 41 | ((hg i).mono inter_subset_left) hi |
| 42 | have hDV : D ⊆ V := fun _ hy => (hDW hy).1 |
| 43 | have hDU : D ⊆ U := fun _ hy => (hDW hy).2.1 |
| 44 | have hgood : DifferentiableOn ℂ f {y | y ∈ D ∧ g i y ≠ 0} := by |
| 45 | intro y hy |
| 46 | apply (hd y (hDU hy.1) ?_).differentiableWithinAt |
| 47 | intro hyS |
| 48 | exact hy.2 ((heq y (hDV hy.1)).mp hyS i) |
| 49 | obtain ⟨O, F, hO, hxO, hOD, hF, hFeq⟩ := AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.Quotient.Constructions.Removable.exists_extension_off_zero_set hD |
| 50 | ((hg i).mono hDV) hgood hxD hi ⟨‖f x‖ + 1, fun y hy _ => (hDW hy).2.2.le⟩ |
| 51 | have hequal : EqOn F f O := by |
| 52 | intro z hz |
| 53 | have hfreq : ∃ᶠ y in 𝓝 z, F y = f y := |
| 54 | ((mem_closure_iff_frequently.mp (hdense (hOD hz))).and_eventually (hO.mem_nhds hz)).mono |
| 55 | (fun y hy => hFeq y hy.2 hy.1.2) |
| 56 | exact tendsto_nhds_unique_of_frequently_eq |
| 57 | (hF.differentiableAt (hO.mem_nhds hz)).continuousAt |
| 58 | (hf.continuousAt (hU.mem_nhds (hDU (hOD hz)))) hfreq |
| 59 | apply (hF.differentiableAt (hO.mem_nhds hxO)).congr_of_eventuallyEq |
| 60 | filter_upwards [hO.mem_nhds hxO] with y hy |
| 61 | exact (hequal hy).symm |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.RepresentationTheory.Theta.Geometric.ContinuousAnalyticRemovable |