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.RepresentationTheory.Theta.Geometric.ConnectedAnalyticLocus |
| 2 | import Mathlib.Geometry.Manifold.MFDeriv.Atlas |
| 3 | |
| 4 | /-! # Map Equality Locus -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.Holomorphic.MapEqualityLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Equality of two holomorphic maps into a complex manifold is locally |
| 11 | defined by holomorphic scalar equations on the original open domain. -/ |
| 12 | |
| 13 | open Set Filter |
| 14 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 15 | |
| 16 | open OAI.Geometry.ComplexTorus.RiemannProjectivity.AnalyticIrreducibilityEq.Constructions.AnalyticIrreducibility |
| 17 | |
| 18 | theorem holomorphic_map_equality_local_equations |
| 19 | {E M : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] {d : ℕ} |
| 20 | [TopologicalSpace M] [T2Space M] [ChartedSpace (Fin d → ℂ) M] |
| 21 | [IsManifold (𝓘(ℂ, Fin d → ℂ)) 1 M] |
| 22 | {U : Set E} (hU : IsOpen U) {f g : E → M} |
| 23 | (hf : MDifferentiableOn (𝓘(ℂ, E)) (𝓘(ℂ, Fin d → ℂ)) f U) |
| 24 | (hg : MDifferentiableOn (𝓘(ℂ, E)) (𝓘(ℂ, Fin d → ℂ)) g U) |
| 25 | {x : E} (hx : x ∈ U) : OAI.Geometry.ComplexTorus.RiemannProjectivity.AnalyticIrreducibilityEq.Constructions.AnalyticIrreducibility.HasLocalEquations {y | f y = g y} x := by |
| 26 | classical |
| 27 | by_cases he : f x = g x |
| 28 | · let e := chartAt (Fin d → ℂ) (f x) |
| 29 | have hfx : f x ∈ e.source := mem_chart_source _ _ |
| 30 | have hgx : g x ∈ e.source := he ▸ hfx |
| 31 | have hfc := (hf x hx).continuousWithinAt.continuousAt (hU.mem_nhds hx) |
| 32 | have hgc := (hg x hx).continuousWithinAt.continuousAt (hU.mem_nhds hx) |
| 33 | have hn : {y | y ∈ U ∧ f y ∈ e.source ∧ g y ∈ e.source} ∈ 𝓝 x := by |
| 34 | filter_upwards [hU.mem_nhds hx, hfc.preimage_mem_nhds (e.open_source.mem_nhds hfx), |
| 35 | hgc.preimage_mem_nhds (e.open_source.mem_nhds hgx)] with y hy hf hy' |
| 36 | exact ⟨hy, hf, hy'⟩ |
| 37 | obtain ⟨V, hVsub, hV, hxV⟩ := mem_nhds_iff.mp hn |
| 38 | let F : Fin d → E → ℂ := fun i y => e (f y) i - e (g y) i |
| 39 | refine ⟨V, hV, hxV, Set.range F, ?_, ?_⟩ |
| 40 | · rintro l ⟨i, rfl⟩ y hy |
| 41 | have hf' : DifferentiableAt ℂ (fun z => e (f z)) y := by |
| 42 | have H := ((mdifferentiable_chart (I := 𝓘(ℂ, Fin d → ℂ)) (f x)).mdifferentiableAt |
| 43 | (hVsub hy).2.1).comp y ((hf y (hVsub hy).1).mdifferentiableAt (hU.mem_nhds (hVsub hy).1)) |
| 44 | exact mdifferentiableAt_iff_differentiableAt.mp H |
| 45 | have hg' : DifferentiableAt ℂ (fun z => e (g z)) y := by |
| 46 | have H := ((mdifferentiable_chart (I := 𝓘(ℂ, Fin d → ℂ)) (f x)).mdifferentiableAt |
| 47 | (hVsub hy).2.2).comp y ((hg y (hVsub hy).1).mdifferentiableAt (hU.mem_nhds (hVsub hy).1)) |
| 48 | exact mdifferentiableAt_iff_differentiableAt.mp H |
| 49 | exact (((differentiableAt_pi.mp hf') i).sub ((differentiableAt_pi.mp hg') i)).differentiableWithinAt |
| 50 | · intro y hy |
| 51 | constructor |
| 52 | · intro h l hl |
| 53 | obtain ⟨i, rfl⟩ := hl |
| 54 | change e (f y) i - e (g y) i = 0 |
| 55 | rw [h, sub_self] |
| 56 | · intro h |
| 57 | apply e.injOn (hVsub hy).2.1 (hVsub hy).2.2 |
| 58 | funext i |
| 59 | exact sub_eq_zero.mp (h (F i) ⟨i, rfl⟩) |
| 60 | · let Z : Set U := {y | f y.val = g y.val} |
| 61 | have hZ : IsClosed Z := isClosed_eq |
| 62 | (continuousOn_iff_continuous_domRestrict.mp hf.continuousOn) |
| 63 | (continuousOn_iff_continuous_domRestrict.mp hg.continuousOn) |
| 64 | let V := (Subtype.val : U → E) '' Zᶜ |
| 65 | have hV : IsOpen V := hU.isOpenMap_subtype_val _ hZ.isOpen_compl |
| 66 | refine ⟨V, hV, ⟨⟨x, hx⟩, he, rfl⟩, {fun _ => (1 : ℂ)}, ?_, ?_⟩ |
| 67 | · intro l hl |
| 68 | obtain rfl := Set.mem_singleton_iff.mp hl |
| 69 | exact (show DifferentiableOn ℂ (fun _ : E => (1 : ℂ)) V from differentiableOn_const 1) |
| 70 | · intro y hy |
| 71 | obtain ⟨z, hz, rfl⟩ := hy |
| 72 | constructor |
| 73 | · intro h |
| 74 | exact (hz h).elim |
| 75 | · intro h |
| 76 | exact (one_ne_zero (h (fun _ => (1 : ℂ)) (Set.mem_singleton _))).elim |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.RepresentationTheory.Theta.Geometric.Holomorphic.MapEqualityLocus |