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.Cycles.Functoriality.EtaleDifferential |
| 2 | import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff |
| 3 | import Mathlib.Geometry.Manifold.LocalDiffeomorph |
| 4 | import Mathlib.Geometry.Manifold.ContMDiff.Atlas |
| 5 | |
| 6 | /-! # Analytic Inverse -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.AnalyticInverse.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open scoped ContDiff _root_.Manifold _root_.Topology |
| 13 | open Filter IsManifold |
| 14 | |
| 15 | /-- The analytic inverse function theorem, restricted so that both |
| 16 | directions are analytic throughout their open domains. -/ |
| 17 | theorem exists_analytic_localInverse |
| 18 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 19 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 20 | [FiniteDimensional ℂ E] [FiniteDimensional ℂ F] |
| 21 | (f : E → F) (x : E) (hf : ContDiffAt ℂ ω f x) |
| 22 | (hbij : Function.Bijective (fderiv ℂ f x)) : |
| 23 | ∃ q : OpenPartialHomeomorph E F, |
| 24 | x ∈ q.source ∧ (q : E → F) = f ∧ |
| 25 | ContDiffOn ℂ ω q q.source ∧ ContDiffOn ℂ ω q.symm q.target := by |
| 26 | let := FiniteDimensional.complete ℂ E |
| 27 | let L : E ≃L[ℂ] F := |
| 28 | (LinearEquiv.ofBijective (fderiv ℂ f x).toLinearMap hbij).toContinuousLinearEquiv |
| 29 | have hd : HasFDerivAt f L.toContinuousLinearMap x := by |
| 30 | change HasFDerivAt f (fderiv ℂ f x) x |
| 31 | exact (hf.differentiableAt (by simp)).hasFDerivAt |
| 32 | let q₀ := hf.toOpenPartialHomeomorph f hd (by simp) |
| 33 | have hx : x ∈ q₀.source := hf.mem_toOpenPartialHomeomorph_source hd (by simp) |
| 34 | have hi : ContDiffAt ℂ ω q₀.symm (q₀ x) := hf.to_localInverse hd (by simp) |
| 35 | refine ⟨q₀.restrContDiff ℂ ω (by simp), ⟨hx, hf, hi⟩, rfl, ?_, ?_⟩ |
| 36 | · exact q₀.contDiffOn_restrContDiff_source ℂ (by simp) |
| 37 | · exact q₀.contDiffOn_restrContDiff_target ℂ (by simp) |
| 38 | |
| 39 | /-- On equal-dimensional regular affine charts, an unramified map has |
| 40 | an actual analytic local inverse. -/ |
| 41 | theorem exists_unramified_affineChart_localInverse |
| 42 | {A B : Type*} [CommRing A] [Algebra ℂ A] [CommRing B] [Algebra ℂ B] |
| 43 | {n : ℕ} (h : A →ₐ[ℂ] B) (hh : h.toRingHom.FormallyUnramified) |
| 44 | (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n → ℂ)) |
| 45 | (f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (Fin n → ℂ)) |
| 46 | (he : e ∈ ComplexPoints.Analytic.SmoothSchemeManifold.affineRegularAtlas B n) (hf : f ∈ ComplexPoints.Analytic.SmoothSchemeManifold.affineRegularAtlas A n) |
| 47 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (hx : x ∈ e.source) |
| 48 | (hfx : x.comp h ∈ f.source) : |
| 49 | ∃ q : OpenPartialHomeomorph (Fin n → ℂ) (Fin n → ℂ), |
| 50 | e x ∈ q.source ∧ (q : (Fin n → ℂ) → (Fin n → ℂ)) = |
| 51 | (fun z => f ((e.symm z).comp h)) ∧ |
| 52 | ContDiffOn ℂ ω q q.source ∧ ContDiffOn ℂ ω q.symm q.target := by |
| 53 | have hinj := EtaleDifferential.Construction.fderiv_affineChartComap_injective_of_unramified h hh e f he hf x hx hfx |
| 54 | exact exists_analytic_localInverse _ _ |
| 55 | (ComplexPoints.Analytic.SmoothClosedImmersion.contDiffAt_affineChartComap h e f he hf x hx hfx) |
| 56 | ⟨hinj, LinearMap.surjective_of_injective hinj⟩ |
| 57 | |
| 58 | /-- Invertibility in genuine manifold charts gives a local analytic |
| 59 | diffeomorphism on the original spaces. -/ |
| 60 | theorem isLocalDiffeomorphAt_of_chart_bijective |
| 61 | {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 62 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 63 | [FiniteDimensional ℂ E] [FiniteDimensional ℂ F] |
| 64 | [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓘(ℂ, E)) ω M] |
| 65 | [TopologicalSpace N] [ChartedSpace F N] [IsManifold (𝓘(ℂ, F)) ω N] |
| 66 | (g : M → N) (hg : Continuous g) (x : M) |
| 67 | (e : OpenPartialHomeomorph M E) (f : OpenPartialHomeomorph N F) |
| 68 | (he : e ∈ maximalAtlas (𝓘(ℂ, E)) ω M) |
| 69 | (hf : f ∈ maximalAtlas (𝓘(ℂ, F)) ω N) |
| 70 | (hx : x ∈ e.source) (hgx : g x ∈ f.source) |
| 71 | (hC : ContDiffAt ℂ ω (fun z => f (g (e.symm z))) (e x)) |
| 72 | (hbij : Function.Bijective (fderiv ℂ (fun z => f (g (e.symm z))) (e x))) : |
| 73 | IsLocalDiffeomorphAt (𝓘(ℂ, E)) (𝓘(ℂ, F)) ω g x := by |
| 74 | obtain ⟨q, hxq, hq, hqd, hqi⟩ := exists_analytic_localInverse _ _ hC hbij |
| 75 | let e' : PartialDiffeomorph (𝓘(ℂ, E)) (𝓘(ℂ, E)) M E ω := |
| 76 | { __ := e |
| 77 | contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas he |
| 78 | contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas he } |
| 79 | let f' : PartialDiffeomorph (𝓘(ℂ, F)) (𝓘(ℂ, F)) N F ω := |
| 80 | { __ := f |
| 81 | contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas hf |
| 82 | contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas hf } |
| 83 | let q' : PartialDiffeomorph (𝓘(ℂ, E)) (𝓘(ℂ, F)) E F ω := |
| 84 | { __ := q |
| 85 | contMDiffOn_toFun := contMDiffOn_iff_contDiffOn.mpr hqd |
| 86 | contMDiffOn_invFun := contMDiffOn_iff_contDiffOn.mpr hqi } |
| 87 | let l := (e'.trans q').trans f'.symm |
| 88 | let r := l.toOpenPartialHomeomorph.restr (g ⁻¹' f.source) |
| 89 | refine ⟨{ __ := r |
| 90 | contMDiffOn_toFun := l.contMDiffOn_toFun.mono Set.inter_subset_left |
| 91 | contMDiffOn_invFun := l.contMDiffOn_invFun.mono Set.inter_subset_left }, ?_, ?_⟩ |
| 92 | · change x ∈ l.toOpenPartialHomeomorph.source ∩ interior (g ⁻¹' f.source) |
| 93 | refine ⟨?_, (f.open_source.preimage hg).interior_eq.symm ▸ hgx⟩ |
| 94 | change (x ∈ e.source ∧ e x ∈ q.source) ∧ q (e x) ∈ f.target |
| 95 | refine ⟨⟨hx, hxq⟩, ?_⟩ |
| 96 | rw [hq] |
| 97 | dsimp only |
| 98 | rw [e.left_inv hx] |
| 99 | exact f.map_source hgx |
| 100 | · intro y hy |
| 101 | change g y = f.symm (q (e y)) |
| 102 | change ((y ∈ e.source ∧ e y ∈ q.source) ∧ q (e y) ∈ f.target) ∧ |
| 103 | y ∈ interior (g ⁻¹' f.source) at hy |
| 104 | rw [hq] |
| 105 | dsimp only |
| 106 | rw [e.left_inv hy.1.1.1] |
| 107 | have hgy : y ∈ g ⁻¹' f.source := interior_subset hy.2 |
| 108 | exact (f.left_inv hgy).symm |
| 109 | |
| 110 | /-- The complex inverse function theorem on the established manifold |
| 111 | structures, with the actual manifold differential as its hypothesis. -/ |
| 112 | theorem isLocalDiffeomorphAt_of_bijective_mfderiv |
| 113 | {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 114 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 115 | [FiniteDimensional ℂ E] [FiniteDimensional ℂ F] |
| 116 | [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓘(ℂ, E)) ω M] |
| 117 | [TopologicalSpace N] [ChartedSpace F N] [IsManifold (𝓘(ℂ, F)) ω N] |
| 118 | (g : M → N) (hg : ContMDiff (𝓘(ℂ, E)) (𝓘(ℂ, F)) ω g) (x : M) |
| 119 | (hbij : Function.Bijective (mfderiv (𝓘(ℂ, E)) (𝓘(ℂ, F)) g x)) : |
| 120 | IsLocalDiffeomorphAt (𝓘(ℂ, E)) (𝓘(ℂ, F)) ω g x := by |
| 121 | have hC := (contMDiffAt_iff_of_mem_source |
| 122 | (mem_chart_source E x) (mem_chart_source F (g x))).mp (hg x) |
| 123 | have hC' : ContDiffAt ℂ ω |
| 124 | (fun z => chartAt F (g x) (g ((chartAt E x).symm z))) (chartAt E x x) := by |
| 125 | simpa only [extChartAt_coe, extChartAt_coe_symm, |
| 126 | modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm, |
| 127 | Function.comp_def, id_eq, Set.range_id, contDiffWithinAt_univ] using hC.2 |
| 128 | have hder : mfderiv (𝓘(ℂ, E)) (𝓘(ℂ, F)) g x = |
| 129 | fderiv ℂ (fun z => chartAt F (g x) (g ((chartAt E x).symm z))) |
| 130 | (chartAt E x x) := by |
| 131 | rw [((hg.of_le (show (1 : ℕ∞ω) ≤ ω from le_top)).mdifferentiableAt |
| 132 | (x := x) one_ne_zero).mfderiv] |
| 133 | simp only [writtenInExtChartAt, extChartAt_coe, extChartAt_coe_symm, |
| 134 | modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm, |
| 135 | Function.comp_def, id_eq, Set.range_id, fderivWithin_univ] |
| 136 | rfl |
| 137 | exact isLocalDiffeomorphAt_of_chart_bijective g hg.continuous x |
| 138 | (chartAt E x) (chartAt F (g x)) (chart_mem_maximalAtlas x) |
| 139 | (chart_mem_maximalAtlas (g x)) (mem_chart_source E x) |
| 140 | (mem_chart_source F (g x)) hC' (hder ▸ hbij) |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.AlgebraicGeometry.Cycles.Functoriality.AnalyticInverse.Construction |