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.Geometry.ComplexTorus.RiemannProjectivity.IdentityEq |
| 2 | import Mathlib.Topology.Irreducible |
| 3 | |
| 4 | /-! # Analytic Irreducibility Eq -/ |
| 5 | |
| 6 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.AnalyticIrreducibilityEq.Constructions.AnalyticIrreducibility |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # RiemannProjectivity: irreducibility detected by local holomorphic equations |
| 12 | |
| 13 | A subset of a complex vector space given locally by holomorphic equations |
| 14 | has closed interior. Thus, on the connected vector space, a nonempty open |
| 15 | part forces the whole subset. This applies to arbitrary families of local |
| 16 | equations and will be used for pullbacks of Zariski closed sets. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.Metric |
| 20 | open scoped _root_.Topology |
| 21 | |
| 22 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 23 | |
| 24 | def HasLocalEquations (S : Set V) (x : V) : Prop := |
| 25 | ∃ U : Set V, IsOpen U ∧ x ∈ U ∧ ∃ F : Set (V → ℂ), |
| 26 | (∀ f ∈ F, DifferentiableOn ℂ f U) ∧ |
| 27 | ∀ y ∈ U, y ∈ S ↔ ∀ f ∈ F, f y = 0 |
| 28 | |
| 29 | theorem isClosed_of_local_equations {S : Set V} |
| 30 | (hlocal : ∀ x, HasLocalEquations S x) : IsClosed S := by |
| 31 | rw [← isOpen_compl_iff] |
| 32 | apply isOpen_iff_mem_nhds.mpr |
| 33 | intro x hx |
| 34 | obtain ⟨U, hU, hxU, F, hF, heq⟩ := hlocal x |
| 35 | have hne : ∃ f ∈ F, f x ≠ 0 := by |
| 36 | change ¬x ∈ S at hx |
| 37 | simpa only [heq x hxU, not_forall, exists_prop] using hx |
| 38 | obtain ⟨f, hf, hfx⟩ := hne |
| 39 | have hfcont := ((hF f hf).continuousOn.continuousAt (hU.mem_nhds hxU)) |
| 40 | filter_upwards [hU.mem_nhds hxU, hfcont.eventually_ne hfx] with y hy hfy |
| 41 | exact fun hys => hfy ((heq y hy).mp hys f hf) |
| 42 | |
| 43 | theorem mem_interior_of_local_equations {S : Set V} {x : V} |
| 44 | (hlocal : HasLocalEquations S x) (hx : x ∈ closure (interior S)) : x ∈ interior S := by |
| 45 | obtain ⟨U, hU, hxU, F, hF, heq⟩ := hlocal |
| 46 | obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.mp hU x hxU |
| 47 | obtain ⟨y, hy, hyx⟩ := Metric.mem_closure_iff.mp hx r hr |
| 48 | have hyball : y ∈ ball x r := by simpa only [mem_ball, dist_comm] using hyx |
| 49 | have hballS : ball x r ⊆ S := by |
| 50 | intro z hz |
| 51 | apply (heq z (hball hz)).mpr |
| 52 | intro f hf |
| 53 | have hzero : ∀ᶠ w in 𝓝 y, f w = 0 := by |
| 54 | filter_upwards [mem_interior_iff_mem_nhds.mp hy, |
| 55 | isOpen_ball.mem_nhds hyball] with w hw hwball |
| 56 | exact (heq w (hball hwball)).mp hw f hf |
| 57 | exact IdentityEq.Constructions.Identity.eq_zero_of_zero_germ isOpen_ball (convex_ball x r).isPreconnected |
| 58 | ((hF f hf).mono hball) hyball hzero z hz |
| 59 | exact mem_interior_iff_mem_nhds.mpr (mem_of_superset (ball_mem_nhds x hr) hballS) |
| 60 | |
| 61 | theorem isClosed_interior_of_local_equations {S : Set V} |
| 62 | (hlocal : ∀ x, HasLocalEquations S x) : IsClosed (interior S) := |
| 63 | isClosed_of_closure_subset (fun x hx => mem_interior_of_local_equations (hlocal x) hx) |
| 64 | |
| 65 | theorem eq_univ_of_interior_nonempty {S : Set V} |
| 66 | (hlocal : ∀ x, HasLocalEquations S x) (hne : (interior S).Nonempty) : S = univ := by |
| 67 | have hcl : IsClopen (interior S) := |
| 68 | ⟨isClosed_interior_of_local_equations hlocal, isOpen_interior⟩ |
| 69 | rcases isClopen_iff.mp hcl with h | h |
| 70 | · exact (hne.ne_empty h).elim |
| 71 | · exact eq_univ_of_univ_subset (h ▸ interior_subset) |
| 72 | |
| 73 | /-- A parametrized image is Zariski irreducible whenever every closed-set |
| 74 | pullback is locally the common zero locus of holomorphic functions. -/ |
| 75 | theorem isIrreducible_range {X : Type*} [TopologicalSpace X] (f : V → X) |
| 76 | (heq : ∀ Z : Set X, IsClosed Z → ∀ x, HasLocalEquations (f ⁻¹' Z) x) : |
| 77 | IsIrreducible (range f) := by |
| 78 | refine ⟨range_nonempty f, isPreirreducible_iff_isClosed_union_isClosed.mpr ?_⟩ |
| 79 | intro A B hA hB hcover |
| 80 | by_cases hfull : range f ⊆ B |
| 81 | · exact Or.inr hfull |
| 82 | · left |
| 83 | obtain ⟨y, ⟨x, rfl⟩, hx⟩ := not_subset.mp hfull |
| 84 | have hBclosed := isClosed_of_local_equations (heq B hB) |
| 85 | have hBA : (f ⁻¹' B)ᶜ ⊆ f ⁻¹' A := by |
| 86 | intro z hz |
| 87 | exact (hcover ⟨z, rfl⟩).resolve_right hz |
| 88 | have hxint : x ∈ interior (f ⁻¹' B)ᶜ := by |
| 89 | rw [hBclosed.isOpen_compl.interior_eq] |
| 90 | exact hx |
| 91 | have hne : (interior (f ⁻¹' A)).Nonempty := ⟨x, interior_mono hBA hxint⟩ |
| 92 | have hfullA := eq_univ_of_interior_nonempty (heq A hA) hne |
| 93 | rintro _ ⟨z, rfl⟩ |
| 94 | exact show z ∈ f ⁻¹' A from hfullA ▸ mem_univ z |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.AnalyticIrreducibilityEq.Constructions.AnalyticIrreducibility |