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.ProperAnalyticImage |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.AnalyticFibers |
| 3 | import Mathlib.Topology.Algebra.Module.Equiv |
| 4 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 5 | |
| 6 | /-! # Compact Analytic At -/ |
| 7 | |
| 8 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.CompactAnalyticAt.Constructions.CompactAnalytic |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # RiemannProjectivity: compact analytic subsets of affine space are finite |
| 14 | |
| 15 | Coordinate fibers are compact analytic subsets of a complex line. Their |
| 16 | finiteness permits proper analytic elimination of one coordinate. Induction |
| 17 | on the ambient dimension then proves finiteness of the whole compact set. |
| 18 | -/ |
| 19 | |
| 20 | open Set Filter _root_.Metric |
| 21 | open scoped _root_.Topology |
| 22 | |
| 23 | theorem lineAnalyticAt_of_holomorphic {S : Set ℂ} {x : ℂ} |
| 24 | (h : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S x) : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.AnalyticFibers.Constructions.Cone.LineAnalyticAt S x := by |
| 25 | obtain ⟨U, hU, hx, m, f, hf, heq⟩ := h |
| 26 | exact ⟨m, f, fun i => (hf i).analyticAt (hU.mem_nhds hx), |
| 27 | mem_of_superset (hU.mem_nhds hx) (fun y hy => heq y hy)⟩ |
| 28 | |
| 29 | theorem finite_vertical_fiber {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 30 | {S : Set (V × ℂ)} (hS : IsCompact S) |
| 31 | (hlocal : ∀ p ∈ S, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S p) (x : V) : |
| 32 | {z : ℂ | (x, z) ∈ S}.Finite := by |
| 33 | have hcompact : IsCompact {z : ℂ | (x, z) ∈ S} := by |
| 34 | have h := (hS.inter_right ((isClosed_singleton (x := x)).preimage |
| 35 | (continuous_fst : Continuous (Prod.fst : V × ℂ → V)))).image continuous_snd |
| 36 | convert! h using 1 |
| 37 | ext z |
| 38 | simp only [mem_ofPred_eq, mem_image, mem_inter_iff, mem_preimage, mem_singleton_iff] |
| 39 | constructor |
| 40 | · intro hz |
| 41 | exact ⟨(x, z), ⟨hz, rfl⟩, rfl⟩ |
| 42 | · rintro ⟨⟨y, w⟩, ⟨hp, rfl⟩, rfl⟩ |
| 43 | exact hp |
| 44 | apply AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.AnalyticFibers.Constructions.Cone.finite_of_isCompact_lineAnalytic hcompact |
| 45 | intro z hz |
| 46 | apply lineAnalyticAt_of_holomorphic |
| 47 | exact (hlocal (x, z) hz).preimage isOpen_univ (mem_univ z) |
| 48 | ((differentiable_const x).prodMk differentiable_id).differentiableOn |
| 49 | |
| 50 | theorem compact_projection_holomorphic {n : ℕ} {S : Set ((Fin n → ℂ) × ℂ)} |
| 51 | (hS : IsCompact S) (hlocal : ∀ p ∈ S, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S p) |
| 52 | (x : Fin n → ℂ) : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt (Prod.fst '' S) x := by |
| 53 | let : CompactSpace S := isCompact_iff_compactSpace.mp hS |
| 54 | have h := AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProperAnalyticImage.Constructions.Cone.holomorphicZeroSetAt_proper_projection |
| 55 | (continuous_fst.comp continuous_subtype_val).isProperMap |
| 56 | (finite_vertical_fiber hS hlocal x) (fun z hz => hlocal (x, z) hz) |
| 57 | have heq : {y | ∃ z, (y, z) ∈ S} = Prod.fst '' S := by |
| 58 | ext y |
| 59 | exact ⟨fun ⟨z, hz⟩ => ⟨(y, z), hz, rfl⟩, |
| 60 | fun ⟨⟨w, z⟩, hp, he⟩ => ⟨z, he ▸ hp⟩⟩ |
| 61 | rwa [heq] at h |
| 62 | |
| 63 | theorem finite_of_isCompact_holomorphic_fin (n : ℕ) {S : Set (Fin n → ℂ)} |
| 64 | (hS : IsCompact S) (hlocal : ∀ x ∈ S, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S x) : S.Finite := by |
| 65 | induction n with |
| 66 | | zero => exact Set.toFinite S |
| 67 | | succ n ih => |
| 68 | let e : ((Fin n → ℂ) × ℂ) ≃L[ℂ] (Fin (n + 1) → ℂ) := |
| 69 | (ContinuousLinearEquiv.prodComm ℂ (Fin n → ℂ) ℂ).trans |
| 70 | (Fin.consEquivL ℂ (fun _ : Fin (n + 1) => ℂ)) |
| 71 | let T := e ⁻¹' S |
| 72 | have hT : IsCompact T := e.toHomeomorph.isClosedEmbedding.isCompact_preimage hS |
| 73 | have hTlocal : ∀ p ∈ T, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt T p := fun p hp => |
| 74 | (hlocal (e p) hp).preimage isOpen_univ (mem_univ p) e.differentiable.differentiableOn |
| 75 | have hP : IsCompact (Prod.fst '' T) := hT.image continuous_fst |
| 76 | have hPfinite : (Prod.fst '' T).Finite := ih hP |
| 77 | (fun x _ => compact_projection_holomorphic hT hTlocal x) |
| 78 | have hTfinite : T.Finite := by |
| 79 | apply (hPfinite.biUnion (fun x _ => |
| 80 | (finite_vertical_fiber hT hTlocal x).image (fun z => (x, z)))).subset |
| 81 | intro p hp |
| 82 | exact mem_iUnion.mpr ⟨p.1, mem_iUnion.mpr |
| 83 | ⟨⟨p, hp, rfl⟩, ⟨p.2, hp, rfl⟩⟩⟩ |
| 84 | exact hTfinite.of_preimage e.surjective |
| 85 | |
| 86 | theorem finite_of_isCompact_holomorphic |
| 87 | {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 88 | {S : Set V} (hS : IsCompact S) (hlocal : ∀ x ∈ S, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S x) : S.Finite := by |
| 89 | let e : (Fin (Module.finrank ℂ V) → ℂ) ≃L[ℂ] V := |
| 90 | ContinuousLinearEquiv.ofFinrankEq (by simp) |
| 91 | have hcompact := e.toHomeomorph.isClosedEmbedding.isCompact_preimage hS |
| 92 | have hfinite := finite_of_isCompact_holomorphic_fin (Module.finrank ℂ V) hcompact |
| 93 | (fun x hx => (hlocal (e x) hx).preimage isOpen_univ (mem_univ x) |
| 94 | e.differentiable.differentiableOn) |
| 95 | exact hfinite.of_preimage e.surjective |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.CompactAnalyticAt.Constructions.CompactAnalytic |