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.AlgebraicTopology.FundamentalClass.AffineOrientation |
| 2 | import OAI.Geometry.Foundations.ConvexStdSimplexMetric |
| 3 | import OAI.AlgebraicTopology.DeRham.Comparison.CubeNeighborhoodExtension |
| 4 | |
| 5 | /-! # Chart Integral -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.FundamentalClass.ChartIntegral.IntegrationConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Compute simplex integration inside a manifold chart. The chart map on |
| 14 | the simplex is a positive affine map, so the Jacobian has positive sign. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory Set Filter _root_.MeasureTheory |
| 17 | open OAI.AlgebraicTopology.DeRham.Comparison.CubeNeighborhoodExtension |
| 18 | open scoped _root_.Manifold ContDiff _root_.Topology Simplicial |
| 19 | |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | theorem positiveAffine_contDiff (d : ℕ) (a : Fin d → ℝ) (r : ℝ) : |
| 23 | ContDiff ℝ ∞ (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) := by |
| 24 | change ContDiff ℝ ∞ (fun x : Fin d → ℝ => a + r • x) |
| 25 | exact contDiff_const.add (contDiff_id.const_smul r) |
| 26 | |
| 27 | theorem positiveAffine_hasFDerivAt (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (x : Fin d → ℝ) : |
| 28 | HasFDerivAt (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) |
| 29 | (r • ContinuousLinearMap.id ℝ (Fin d → ℝ)) x := |
| 30 | ((hasFDerivAt_id x).const_smul r).const_add a |
| 31 | |
| 32 | theorem positiveAffine_det (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (x : Fin d → ℝ) : |
| 33 | (fderiv ℝ (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) x).toLinearMap.det = r ^ d := by |
| 34 | rw [(positiveAffine_hasFDerivAt d a r x).fderiv] |
| 35 | change (r • (LinearMap.id : (Fin d → ℝ) →ₗ[ℝ] (Fin d → ℝ))).det = _ |
| 36 | rw [LinearMap.det_smul, LinearMap.det_id, mul_one] |
| 37 | simp |
| 38 | |
| 39 | variable {d : ℕ} {M : Type} [TopologicalSpace M] [ChartedSpace (Fin d → ℝ) M] |
| 40 | [IsManifold 𝓘(ℝ, Fin d → ℝ) ∞ M] |
| 41 | |
| 42 | theorem pullback_top_in_affine_chart (g : (Fin d → ℝ) → M) |
| 43 | (hg : ContMDiff 𝓘(ℝ, Fin d → ℝ) 𝓘(ℝ, Fin d → ℝ) ∞ g) |
| 44 | (e : OpenPartialHomeomorph M (Fin d → ℝ)) (he : e ∈ atlas (Fin d → ℝ) M) |
| 45 | (a : Fin d → ℝ) (r : ℝ) |
| 46 | (hsource : MapsTo g (SimplexGeometry.IntegrationConstruction.positiveInterior d) e.source) |
| 47 | (hcoords : EqOn (e ∘ g) (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) (SimplexGeometry.IntegrationConstruction.positiveInterior d)) |
| 48 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm (Fin d → ℝ) M d) |
| 49 | (x : Fin d → ℝ) (hx : x ∈ SimplexGeometry.IntegrationConstruction.positiveInterior d) : |
| 50 | (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.pullback g hg form).toNormedSpace x (Pi.basisFun ℝ (Fin d)) = |
| 51 | r ^ d • form.val.inChart e (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x) (Pi.basisFun ℝ (Fin d)) := by |
| 52 | have h := form.val.pullback_inChart g (OpenPartialHomeomorph.refl (Fin d → ℝ)) e |
| 53 | (by simp) he (y := x) (by simp) (hsource hx) ((hg.mdifferentiable (by simp)) x) |
| 54 | simp only [Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm.inChart_refl, OpenPartialHomeomorph.refl_symm, |
| 55 | OpenPartialHomeomorph.refl_apply, Function.comp_id, id_eq] at h |
| 56 | have hevent : (e ∘ g) =ᶠ[𝓝 x] AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r := by |
| 57 | filter_upwards [(SimplexGeometry.IntegrationConstruction.positiveInterior_isOpen d).mem_nhds hx] with y hy |
| 58 | exact hcoords hy |
| 59 | have hd : fderiv ℝ (e ∘ g) x = fderiv ℝ (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) x := |
| 60 | hevent.fderiv_eq |
| 61 | have heq : e (g x) = AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x := hcoords hx |
| 62 | change (form.val.pullback g).toNormedSpace x _ = _ |
| 63 | rw [h, heq, hd] |
| 64 | change form.val.inChart e (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x) |
| 65 | (fun i => fderiv ℝ (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) x (Pi.basisFun ℝ (Fin d) i)) = _ |
| 66 | have ht := DeRham.Comparison.TopBidegree.topAlternating_comp_apply (Pi.basisFun ℝ (Fin d)) |
| 67 | (form.val.inChart e (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x)).toAlternatingMap |
| 68 | (fderiv ℝ (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) x).toLinearMap (Pi.basisFun ℝ (Fin d)) |
| 69 | rw [positiveAffine_det] at ht |
| 70 | simpa only [ContinuousAlternatingMap.coe_toAlternatingMap, Function.comp_def, |
| 71 | ContinuousLinearMap.coe_coe] using ht |
| 72 | |
| 73 | theorem smoothSimplexIntegration_affine_chart (g : (Fin d → ℝ) → M) |
| 74 | (hg : ContMDiff 𝓘(ℝ, Fin d → ℝ) 𝓘(ℝ, Fin d → ℝ) ∞ g) |
| 75 | (e : OpenPartialHomeomorph M (Fin d → ℝ)) (he : e ∈ atlas (Fin d → ℝ) M) |
| 76 | (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 77 | (hsource : MapsTo g (SimplexGeometry.IntegrationConstruction.positiveInterior d) e.source) |
| 78 | (hcoords : EqOn (e ∘ g) (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) (SimplexGeometry.IntegrationConstruction.positiveInterior d)) |
| 79 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm (Fin d → ℝ) M d) : |
| 80 | DeRham.Comparison.SmoothSimplexIntegration.smoothSimplexIntegration |
| 81 | ((Cohomology.Singular.ManifoldSmoothFunctor.manifoldSmoothSingularMap (Fin d → ℝ) (Fin d → ℝ) g hg).app _ (SimplexGeometry.IntegrationConstruction.positiveSmoothSimplex d)) form = |
| 82 | ∫ y in AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r '' SimplexGeometry.IntegrationConstruction.positiveInterior d, |
| 83 | form.val.inChart e y (Pi.basisFun ℝ (Fin d)) := by |
| 84 | rw [DeRham.Comparison.SmoothSimplexIntegration.smoothSimplexIntegration_postcompose, SimplexGeometry.IntegrationConstruction.positiveSmoothSimplex_integral_interior] |
| 85 | have h := integral_image_eq_integral_abs_det_fderiv_smul volume |
| 86 | (SimplexGeometry.IntegrationConstruction.positiveInterior_isOpen d).measurableSet |
| 87 | (fun x _ => (positiveAffine_hasFDerivAt d a r x).hasFDerivWithinAt) |
| 88 | (AffineOrientation.IntegrationConstruction.positiveAffine_injective (Fin d → ℝ) a r hr).injOn |
| 89 | (fun y => form.val.inChart e y (Pi.basisFun ℝ (Fin d))) |
| 90 | rw [h] |
| 91 | apply setIntegral_congr_fun (SimplexGeometry.IntegrationConstruction.positiveInterior_isOpen d).measurableSet |
| 92 | intro x hx |
| 93 | dsimp only |
| 94 | rw [pullback_top_in_affine_chart g hg e he a r hsource hcoords form x hx] |
| 95 | have hd : (r • ContinuousLinearMap.id ℝ (Fin d → ℝ)).det = r ^ d := by |
| 96 | rw [← (positiveAffine_hasFDerivAt d a r x).fderiv] |
| 97 | exact positiveAffine_det d a r x |
| 98 | rw [hd, abs_of_pos (pow_pos hr d)] |
| 99 | |
| 100 | end |
| 101 | |
| 102 | /-! Small chart simplices have genuine globally smooth parameter maps. |
| 103 | The maps agree with the inverse affine chart on the entire closed simplex. -/ |
| 104 | |
| 105 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 106 | open _root_.CategoryTheory Set Filter _root_.TopologicalSpace |
| 107 | open OAI.AlgebraicTopology.DeRham.Comparison.CubeNeighborhoodExtension |
| 108 | open scoped _root_.Manifold ContDiff _root_.Topology Simplicial |
| 109 | |
| 110 | set_option backward.isDefEq.respectTransparency false |
| 111 | |
| 112 | theorem positiveSimplex_shift_mem_cube (d : ℕ) |
| 113 | (t : Convexity.StdSimplex ℝ (Fin (d + 1))) : |
| 114 | LocalSimplex.IntegrationGeometry.positiveSimplex d t + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d := by |
| 115 | constructor |
| 116 | · intro i |
| 117 | change 0 ≤ t.weights i.succ - ((d + 1 : ℕ) : ℝ)⁻¹ + ((d + 1 : ℕ) : ℝ)⁻¹ |
| 118 | rw [sub_add_cancel] |
| 119 | exact t.weights_nonneg i.succ |
| 120 | · intro i |
| 121 | change t.weights i.succ - ((d + 1 : ℕ) : ℝ)⁻¹ + ((d + 1 : ℕ) : ℝ)⁻¹ ≤ 1 |
| 122 | rw [sub_add_cancel] |
| 123 | exact t.weights_apply_le_one i.succ |
| 124 | |
| 125 | theorem positiveInterior_shift_mem_cube (d : ℕ) (x : Fin d → ℝ) (hx : x ∈ SimplexGeometry.IntegrationConstruction.positiveInterior d) : |
| 126 | x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d := by |
| 127 | change x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DuffyDomain.IntegrationConstruction.Duffy.simplexInterior d at hx |
| 128 | constructor |
| 129 | · intro i |
| 130 | exact (hx.1 i).le |
| 131 | · intro i |
| 132 | exact (Finset.single_le_sum (fun j _ => (hx.1 j).le) (Finset.mem_univ i)).trans hx.2.le |
| 133 | |
| 134 | theorem unitCube_norm_le_one (d : ℕ) (t : Fin d → ℝ) (ht : t ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d) : |
| 135 | ‖t‖ ≤ 1 := by |
| 136 | apply (pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 1)).mpr |
| 137 | intro i |
| 138 | rw [Real.norm_of_nonneg (ht.1 i)] |
| 139 | exact ht.2 i |
| 140 | |
| 141 | theorem exists_small_affine_cube (d : ℕ) (U : Set (Fin d → ℝ)) (hU : IsOpen U) |
| 142 | (a : Fin d → ℝ) (ha : a ∈ U) : |
| 143 | ∃ r : ℝ, 0 < r ∧ ∀ t ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d, |
| 144 | AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r (t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d) ∈ U := by |
| 145 | obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.mp hU a ha |
| 146 | let B : ℝ := 1 + ‖SimplexGeometry.IntegrationConstruction.simplexBarycenter d‖ |
| 147 | have hB : 0 < B := by dsimp [B]; positivity |
| 148 | let r := ε / (2 * B) |
| 149 | have hr : 0 < r := div_pos hε (mul_pos (by norm_num) hB) |
| 150 | refine ⟨r, hr, ?_⟩ |
| 151 | intro t ht |
| 152 | apply hball |
| 153 | rw [Metric.mem_ball, dist_eq_norm] |
| 154 | change ‖a + r • (t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d) - a‖ < ε |
| 155 | rw [add_sub_cancel_left, norm_smul, Real.norm_of_nonneg hr.le] |
| 156 | have hb : ‖t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d‖ ≤ B := by |
| 157 | have ht' := unitCube_norm_le_one d t ht |
| 158 | have htri := norm_sub_le t (SimplexGeometry.IntegrationConstruction.simplexBarycenter d) |
| 159 | dsimp only [B] |
| 160 | linarith |
| 161 | have heq : r * B = ε / 2 := by dsimp [r]; field_simp |
| 162 | calc |
| 163 | r * ‖t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d‖ ≤ r * B := mul_le_mul_of_nonneg_left hb hr.le |
| 164 | _ = ε / 2 := heq |
| 165 | _ < ε := by linarith |
| 166 | |
| 167 | variable {d : ℕ} {M : Type} [TopologicalSpace M] [ChartedSpace (Fin d → ℝ) M] |
| 168 | [IsManifold 𝓘(ℝ, Fin d → ℝ) ∞ M] |
| 169 | |
| 170 | theorem exists_smooth_chart_simplex_parameter |
| 171 | (e : OpenPartialHomeomorph M (Fin d → ℝ)) (he : e ∈ atlas (Fin d → ℝ) M) |
| 172 | (a : Fin d → ℝ) (r : ℝ) |
| 173 | (hcube : ∀ t ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d, |
| 174 | AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r (t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d) ∈ e.target) : |
| 175 | ∃ g : (Fin d → ℝ) → M, |
| 176 | ContMDiff 𝓘(ℝ, Fin d → ℝ) 𝓘(ℝ, Fin d → ℝ) ∞ g ∧ |
| 177 | ∀ x, x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d → |
| 178 | g x = e.symm (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x) ∧ g x ∈ e.source := by |
| 179 | let parameter : (Fin d → ℝ) → (Fin d → ℝ) := |
| 180 | fun t => AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r (t - SimplexGeometry.IntegrationConstruction.simplexBarycenter d) |
| 181 | have hp : ContDiff ℝ ∞ parameter := |
| 182 | (positiveAffine_contDiff d a r).comp (contDiff_id.sub contDiff_const) |
| 183 | let U : Opens (Fin d → ℝ) := ⟨parameter ⁻¹' e.target, e.open_target.preimage hp.continuous⟩ |
| 184 | let f : U → M := fun t => e.symm (parameter t.val) |
| 185 | have hf : ContMDiff 𝓘(ℝ, Fin d → ℝ) 𝓘(ℝ, Fin d → ℝ) ∞ f := |
| 186 | (contMDiffOn_symm_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas he)).comp_contMDiff |
| 187 | (hp.contMDiff.comp contMDiff_subtype_val) (fun t => t.property) |
| 188 | obtain ⟨G, hG, hagree⟩ := DeRham.Comparison.CubeNeighborhoodExtension.exists_global_contMDiff_of_cube_neighborhood |
| 189 | (𝓘(ℝ, Fin d → ℝ)) U (fun t ht => hcube t ht) hf |
| 190 | refine ⟨fun x => G (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d), |
| 191 | hG.comp (contDiff_id.add contDiff_const).contMDiff, ?_⟩ |
| 192 | intro x hx |
| 193 | obtain ⟨hxu, heq⟩ := hagree.self_of_nhdsSet (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) hx |
| 194 | have hpval : parameter (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) = AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x := by |
| 195 | dsimp only [parameter] |
| 196 | rw [add_sub_cancel_right] |
| 197 | have hval : G (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) = e.symm (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r x) := by |
| 198 | simpa only [f, hpval] using heq |
| 199 | refine ⟨hval, ?_⟩ |
| 200 | change G (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) ∈ e.source |
| 201 | rw [hval] |
| 202 | change parameter (x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) ∈ e.target at hxu |
| 203 | exact e.map_target (hpval ▸ hxu) |
| 204 | |
| 205 | end |
| 206 | |
| 207 | end OAI.AlgebraicTopology.FundamentalClass.ChartIntegral.IntegrationConstruction |