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.Analysis.DifferentialForms.Manifold.FunctionMultiplication |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.LocallyConstant |
| 3 | import Mathlib.Geometry.Manifold.Sheaf.Smooth |
| 4 | |
| 5 | /-! # Smooth Scalar Form -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.SmoothScalarForm |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Actual smooth scalar functions as zero-forms on the original manifold opens. -/ |
| 14 | |
| 15 | open _root_.TopologicalSpace |
| 16 | open scoped _root_.Manifold ContDiff |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | |
| 22 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | {M : Type} [TopologicalSpace M] [ChartedSpace E M] |
| 24 | |
| 25 | abbrev SmoothComplexOpenFunction (U : Opens M) := C^∞⟮𝓘(ℝ, E), U; 𝓘(ℝ, ℂ), ℂ⟯ |
| 26 | |
| 27 | theorem smoothOpenScalarExtension_contMDiffOn {U : Opens M} (f : SmoothComplexOpenFunction (E := E) U) : |
| 28 | ContMDiffOn 𝓘(ℝ, E) 𝓘(ℝ, ℂ) ∞ (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f) (U : Set M) := by |
| 29 | intro x hx |
| 30 | apply ContMDiffAt.contMDiffWithinAt |
| 31 | apply (contMDiffAt_subtype_iff (U := U) (x := ⟨x, hx⟩)).mp |
| 32 | have h : (fun y : U => Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f y.val) = f.val := by |
| 33 | funext y |
| 34 | exact Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension_apply U f y |
| 35 | rw [h] |
| 36 | exact f.property ⟨x, hx⟩ |
| 37 | |
| 38 | variable [IsManifold 𝓘(ℝ, E) ∞ M] |
| 39 | |
| 40 | def smoothScalarOpenZeroForm {U : Opens M} (f : SmoothComplexOpenFunction (E := E) U) : |
| 41 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U 0 := |
| 42 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.smulByFunction (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f) |
| 43 | (smoothOpenScalarExtension_contMDiffOn f) |
| 44 | (Analysis.DifferentialForms.Manifold.LocallyConstant.locallyConstantManifoldZeroForm E U (LocallyConstant.const U 1)) |
| 45 | |
| 46 | theorem smoothScalarOpenZeroForm_apply {U : Opens M} (f : SmoothComplexOpenFunction (E := E) U) |
| 47 | (x : U) (v : Fin 0 → TangentSpace 𝓘(ℝ, E) x.val) : smoothScalarOpenZeroForm f x v = f x := by |
| 48 | simp only [smoothScalarOpenZeroForm, Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.smulByFunction_apply, |
| 49 | ContinuousAlternatingMap.smul_apply, smul_eq_mul, Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension_apply, |
| 50 | Analysis.DifferentialForms.Manifold.LocallyConstant.locallyConstantManifoldZeroForm_apply, LocallyConstant.coe_const, Function.const_apply, mul_one] |
| 51 | |
| 52 | def smoothScalarOpenZeroFormLinear (U : Opens M) : |
| 53 | SmoothComplexOpenFunction (E := E) U →ₗ[ℝ] Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U 0 where |
| 54 | toFun := smoothScalarOpenZeroForm |
| 55 | map_add' f g := by |
| 56 | apply Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.ext |
| 57 | intro x |
| 58 | apply ContinuousAlternatingMap.ext |
| 59 | intro v |
| 60 | rw [Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.add_apply, ContinuousAlternatingMap.add_apply, |
| 61 | smoothScalarOpenZeroForm_apply, smoothScalarOpenZeroForm_apply, smoothScalarOpenZeroForm_apply] |
| 62 | rfl |
| 63 | map_smul' z f := by |
| 64 | apply Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.ext |
| 65 | intro x |
| 66 | apply ContinuousAlternatingMap.ext |
| 67 | intro v |
| 68 | change smoothScalarOpenZeroForm (z • f) x v = z • smoothScalarOpenZeroForm f x v |
| 69 | rw [smoothScalarOpenZeroForm_apply, smoothScalarOpenZeroForm_apply] |
| 70 | rfl |
| 71 | |
| 72 | end |
| 73 | |
| 74 | section |
| 75 | |
| 76 | /-! Restriction and literal chart coordinates of actual smooth scalar zero-forms. -/ |
| 77 | |
| 78 | open _root_.TopologicalSpace _root_.ContinuousAlternatingMap |
| 79 | open scoped _root_.Manifold ContDiff |
| 80 | |
| 81 | set_option backward.isDefEq.respectTransparency false |
| 82 | set_option backward.isDefEq.respectTransparency.types false |
| 83 | set_option backward.defeqAttrib.useBackward true |
| 84 | |
| 85 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 86 | {M : Type} [TopologicalSpace M] [ChartedSpace E M] {U V : Opens M} |
| 87 | |
| 88 | def smoothComplexOpenFunctionRestrict (h : V ≤ U) (f : SmoothComplexOpenFunction (E := E) U) : |
| 89 | SmoothComplexOpenFunction (E := E) V := |
| 90 | ⟨fun x => f ⟨x.val, h x.property⟩, f.property.comp (contMDiff_inclusion (I := 𝓘(ℝ, E)) h)⟩ |
| 91 | |
| 92 | variable [IsManifold 𝓘(ℝ, E) ∞ M] |
| 93 | |
| 94 | theorem smoothScalarOpenZeroForm_restrict (h : V ≤ U) (f : SmoothComplexOpenFunction (E := E) U) : |
| 95 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict h (smoothScalarOpenZeroForm f) = |
| 96 | smoothScalarOpenZeroForm (smoothComplexOpenFunctionRestrict h f) := by |
| 97 | apply Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.ext |
| 98 | intro x |
| 99 | ext v |
| 100 | change smoothScalarOpenZeroForm f ⟨x.val, h x.property⟩ v = _ |
| 101 | rw [smoothScalarOpenZeroForm_apply, smoothScalarOpenZeroForm_apply] |
| 102 | rfl |
| 103 | |
| 104 | theorem smoothScalarOpenZeroForm_inChart (f : SmoothComplexOpenFunction (E := E) U) |
| 105 | (e : OpenPartialHomeomorph M E) {y : E} (hy : e.symm y ∈ U) : |
| 106 | (smoothScalarOpenZeroForm f).extension.inChart e y = |
| 107 | constOfIsEmpty ℝ E (Fin 0) (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f (e.symm y)) := by |
| 108 | unfold Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm.inChart |
| 109 | rw [Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.extension_apply _ ⟨e.symm y, hy⟩] |
| 110 | ext v |
| 111 | exact (smoothScalarOpenZeroForm_apply f ⟨e.symm y, hy⟩ _).trans |
| 112 | (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension_apply U f ⟨e.symm y, hy⟩).symm |
| 113 | |
| 114 | end |
| 115 | |
| 116 | /-! Pointwise smooth scalar action on the original open manifold forms, with literal restriction and chart formulas. -/ |
| 117 | |
| 118 | open _root_.TopologicalSpace Set |
| 119 | open scoped _root_.Manifold ContDiff |
| 120 | |
| 121 | set_option backward.isDefEq.respectTransparency false |
| 122 | set_option backward.isDefEq.respectTransparency.types false |
| 123 | set_option backward.defeqAttrib.useBackward true |
| 124 | |
| 125 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 126 | {M : Type} [TopologicalSpace M] [ChartedSpace E M] |
| 127 | [IsManifold 𝓘(ℝ, E) ∞ M] {U V : Opens M} {n : ℕ} |
| 128 | |
| 129 | def smoothScalarOpenFormMul (f : SmoothComplexOpenFunction (E := E) U) : |
| 130 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U n →ₗ[ℂ] Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U n := |
| 131 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.smulByFunction (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f) |
| 132 | (smoothOpenScalarExtension_contMDiffOn f) |
| 133 | |
| 134 | theorem smoothScalarOpenFormMul_apply (f : SmoothComplexOpenFunction (E := E) U) |
| 135 | (a : Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U n) (x : U) : |
| 136 | smoothScalarOpenFormMul f a x = f x • a x := by |
| 137 | rw [smoothScalarOpenFormMul, Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.smulByFunction_apply, |
| 138 | Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension_apply] |
| 139 | |
| 140 | theorem smoothScalarOpenFormMul_restrict (h : V ≤ U) (f : SmoothComplexOpenFunction (E := E) U) |
| 141 | (a : Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U n) : |
| 142 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict h (smoothScalarOpenFormMul f a) = |
| 143 | smoothScalarOpenFormMul (smoothComplexOpenFunctionRestrict h f) (Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict h a) := by |
| 144 | apply Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.ext |
| 145 | intro x |
| 146 | rw [Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict_apply, smoothScalarOpenFormMul_apply, |
| 147 | smoothScalarOpenFormMul_apply, Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict_apply] |
| 148 | rfl |
| 149 | |
| 150 | theorem smoothScalarOpenFormMul_inChart (f : SmoothComplexOpenFunction (E := E) U) |
| 151 | (a : Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E U n) (e : OpenPartialHomeomorph M E) |
| 152 | {y : E} (hy : e.symm y ∈ U) : |
| 153 | (smoothScalarOpenFormMul f a).extension.inChart e y = |
| 154 | Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f (e.symm y) • a.extension.inChart e y := by |
| 155 | unfold Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm.inChart |
| 156 | rw [Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.extension_apply _ ⟨e.symm y, hy⟩, |
| 157 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.extension_apply _ ⟨e.symm y, hy⟩, |
| 158 | smoothScalarOpenFormMul_apply, Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension_apply U f ⟨e.symm y, hy⟩] |
| 159 | ext v |
| 160 | rfl |
| 161 | |
| 162 | def smoothComplexOpenFunctionMul (f g : SmoothComplexOpenFunction (E := E) U) : |
| 163 | SmoothComplexOpenFunction (E := E) U := |
| 164 | ⟨fun x => f x * g x, |
| 165 | (contDiff_mul : ContDiff ℝ ∞ (fun p : ℂ × ℂ => p.1 * p.2)).contMDiff.comp |
| 166 | (f.property.prodMk_space g.property)⟩ |
| 167 | |
| 168 | theorem smoothScalarOpenZeroForm_mul (f g : SmoothComplexOpenFunction (E := E) U) : |
| 169 | smoothScalarOpenZeroForm (smoothComplexOpenFunctionMul f g) = |
| 170 | smoothScalarOpenFormMul f (smoothScalarOpenZeroForm g) := by |
| 171 | apply Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.ext |
| 172 | intro x |
| 173 | ext v |
| 174 | rw [smoothScalarOpenFormMul_apply, ContinuousAlternatingMap.smul_apply, |
| 175 | smoothScalarOpenZeroForm_apply, smoothScalarOpenZeroForm_apply] |
| 176 | rfl |
| 177 | |
| 178 | theorem smoothOpenScalarExtension_chart_contDiff (f : SmoothComplexOpenFunction (E := E) U) |
| 179 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) : |
| 180 | ContDiffOn ℝ ∞ (Analysis.DifferentialForms.Manifold.LocallyConstant.manifoldOpenScalarExtension U f ∘ e.symm) (Analysis.DifferentialForms.Manifold.Algebra.manifoldFormChartDomain e (U : Set M)) := by |
| 181 | have heSmooth : ContMDiffOn 𝓘(ℝ, E) 𝓘(ℝ, E) ∞ e.symm e.target := |
| 182 | contMDiffOn_symm_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas he) |
| 183 | exact ((smoothOpenScalarExtension_contMDiffOn f).comp (heSmooth.mono inter_subset_left) |
| 184 | (fun _ hy => hy.2)).contDiffOn |
| 185 | |
| 186 | end |
| 187 | |
| 188 | end OAI.AlgebraicGeometry.DivisorClass.Chern.SmoothScalarForm |