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 Mathlib.Geometry.Manifold.Complex |
| 2 | import Mathlib.Analysis.SpecialFunctions.Complex.Analytic |
| 3 | |
| 4 | /-! # Local Maximum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.LocalMaximum.CM.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Local maximum principles used for the intersection of the degree-one Hodge pieces. -/ |
| 11 | |
| 12 | open Set Filter Function |
| 13 | open scoped _root_.Topology _root_.Manifold |
| 14 | |
| 15 | variable {M : Type*} [TopologicalSpace M] |
| 16 | |
| 17 | /-- On a compact locally connected space, a continuous real function satisfying |
| 18 | the strong local maximum principle is locally constant. -/ |
| 19 | theorem locallyConstant_of_localMaximumPrinciple |
| 20 | [CompactSpace M] [LocallyConnectedSpace M] {f : M → ℝ} |
| 21 | (hf : Continuous f) |
| 22 | (hp : ∀ x, IsLocalMax f x → ∀ᶠ y in 𝓝 x, f y = f x) : |
| 23 | IsLocallyConstant f := by |
| 24 | apply IsLocallyConstant.of_constant_on_preconnected_clopens |
| 25 | intro U hpc hcl a ha b hb |
| 26 | obtain ⟨c, hcU, hc⟩ := hcl.isClosed.isCompact.exists_isMaxOn ⟨a, ha⟩ hf.continuousOn |
| 27 | let V := {z ∈ U | f z = f c} |
| 28 | have hVo : IsOpen V := by |
| 29 | apply isOpen_iff_mem_nhds.mpr |
| 30 | intro x hx |
| 31 | have hm : IsLocalMax f x := |
| 32 | mem_of_superset (hcl.isOpen.mem_nhds hx.1) fun z hz => |
| 33 | (hc hz).out.trans_eq hx.2.symm |
| 34 | exact inter_mem (hcl.isOpen.mem_nhds hx.1) |
| 35 | ((hp x hm).mono fun _ h => h.trans hx.2) |
| 36 | let W := U ∩ {z | f z = f c}ᶜ |
| 37 | have hWo : IsOpen W := hcl.isOpen.inter (isClosed_eq hf continuous_const).isOpen_compl |
| 38 | have hdis : Disjoint V W := disjoint_compl_right.mono inf_le_right inf_le_right |
| 39 | have hcover : U ⊆ V ∪ W := fun x hx => (eq_or_ne (f x) (f c)).imp (.intro hx) (.intro hx) |
| 40 | have hVne : (U ∩ V).Nonempty := ⟨c, hcU, hcU, rfl⟩ |
| 41 | have hsub := hpc.subset_left_of_subset_union hVo hWo hdis hcover hVne |
| 42 | exact (hsub hb).2.trans (hsub ha).2.symm |
| 43 | |
| 44 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 45 | [ChartedSpace E M] [IsManifold 𝓘(ℂ, E) 1 M] |
| 46 | |
| 47 | /-- The real part of a local holomorphic function satisfies the strong local |
| 48 | maximum principle, by applying maximum modulus to its exponential. -/ |
| 49 | theorem realPart_eventually_eq_of_localMax |
| 50 | {g : M → ℂ} {x : M} |
| 51 | (hg : ∀ᶠ y in 𝓝 x, MDifferentiableAt 𝓘(ℂ, E) 𝓘(ℂ, ℂ) g y) |
| 52 | (hm : IsLocalMax (fun y => (g y).re) x) : |
| 53 | ∀ᶠ y in 𝓝 x, (g y).re = (g x).re := by |
| 54 | have hd : ∀ᶠ y in 𝓝 x, |
| 55 | MDifferentiableAt 𝓘(ℂ, E) 𝓘(ℂ, ℂ) (Complex.exp ∘ g) y := by |
| 56 | filter_upwards [hg] with y hy |
| 57 | exact Complex.differentiable_exp.differentiableAt.mdifferentiableAt.comp y hy |
| 58 | have hmax : IsLocalMax (norm ∘ (Complex.exp ∘ g)) x := by |
| 59 | filter_upwards [hm] with y hy |
| 60 | simpa only [Function.comp_apply, Complex.norm_exp] using Real.exp_le_exp.mpr hy |
| 61 | have h := Complex.norm_eventually_eq_of_mdifferentiableAt_of_isLocalMax hd hmax |
| 62 | filter_upwards [h] with y hy |
| 63 | simpa only [Function.comp_apply, Complex.norm_exp, Real.exp_eq_exp] using hy |
| 64 | |
| 65 | /-- A real function locally equal to the real part of a holomorphic function |
| 66 | is locally constant on a compact complex manifold. -/ |
| 67 | theorem locallyRealPartHolomorphic_isLocallyConstant |
| 68 | [CompactSpace M] {f : M → ℝ} (hf : Continuous f) |
| 69 | (hl : ∀ x : M, ∃ g : M → ℂ, |
| 70 | (∀ᶠ y in 𝓝 x, MDifferentiableAt 𝓘(ℂ, E) 𝓘(ℂ, ℂ) g y) ∧ |
| 71 | f =ᶠ[𝓝 x] fun y => (g y).re) : IsLocallyConstant f := by |
| 72 | let : LocallyConnectedSpace M := ChartedSpace.locallyConnectedSpace E M |
| 73 | apply locallyConstant_of_localMaximumPrinciple hf |
| 74 | intro x hm |
| 75 | obtain ⟨g, hg, heq⟩ := hl x |
| 76 | have hcenter := heq.eq_of_nhds |
| 77 | have hmax : IsLocalMax (fun y => (g y).re) x := by |
| 78 | filter_upwards [hm, heq] with y hy he |
| 79 | rwa [← he, ← hcenter] |
| 80 | have h := realPart_eventually_eq_of_localMax hg hmax |
| 81 | filter_upwards [h, heq] with y hy he |
| 82 | exact he.trans (hy.trans hcenter.symm) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.LocalMaximum.CM.Construction |