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.Geometry.Foundations.ConvexStdSimplexMetric |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.PlaneHalfFillings |
| 3 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Axis.ProductEquator |
| 4 | import OAI.AlgebraicGeometry.DivisorClass.Chern.OrthantBoundaryRepresentatives |
| 5 | |
| 6 | /-! # Half -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Axis.Half |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The actual oriented axis interval whose product is the common half-disk boundary. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped Simplicial |
| 18 | |
| 19 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | set_option backward.defeqAttrib.useBackward true |
| 24 | |
| 25 | def realAxisRayMap (η : Fin 1 → Bool) : C(Convexity.StdSimplex ℝ (Fin 2), ℝ) := |
| 26 | ⟨fun t => t.weights 1 * (OrthantSphereEquator.orthantSign (η 0) : ℝ), |
| 27 | (Convexity.StdSimplex.continuous_weights_apply ℝ (1 : Fin 2)).mul continuous_const⟩ |
| 28 | |
| 29 | def realAxisRaySimplex (η : Fin 1 → Bool) : (TopCat.toSSet.obj (TopCat.of ℝ)) _⦋1⦌ := |
| 30 | ((TopCat.of ℝ).toSSetObjEquiv _).symm (realAxisRayMap η) |
| 31 | |
| 32 | theorem realAxisRaySimplex_face_zero (η : Fin 1 → Bool) : |
| 33 | (TopCat.toSSet.obj (TopCat.of ℝ)).δ 0 (realAxisRaySimplex η) = |
| 34 | (TopCat.toSSetObj₀Equiv (X := TopCat.of ℝ)).symm (OrthantSphereEquator.orthantSign (η 0) : ℝ) := by |
| 35 | apply ((TopCat.of ℝ).toSSetObjEquiv _).injective |
| 36 | apply ContinuousMap.ext |
| 37 | intro t |
| 38 | change (AlgebraicTopology.Cohomology.Singular.ContinuousFormulas.standardSimplexFace 0 t).weights 1 * (OrthantSphereEquator.orthantSign (η 0) : ℝ) = _ |
| 39 | have h := OrthantSphereEquator.standardSimplexFace_succAbove (0 : Fin 2) t (0 : Fin 1) |
| 40 | change (AlgebraicTopology.Cohomology.Singular.ContinuousFormulas.standardSimplexFace 0 t).weights 1 = t.weights 0 at h |
| 41 | rw [h, PlaneHalfFaces.oneVertexSimplex_coordinate, one_mul] |
| 42 | rfl |
| 43 | |
| 44 | theorem realAxisRaySimplex_face_one (η : Fin 1 → Bool) : |
| 45 | (TopCat.toSSet.obj (TopCat.of ℝ)).δ 1 (realAxisRaySimplex η) = |
| 46 | (TopCat.toSSetObj₀Equiv (X := TopCat.of ℝ)).symm 0 := by |
| 47 | apply ((TopCat.of ℝ).toSSetObjEquiv _).injective |
| 48 | apply ContinuousMap.ext |
| 49 | intro t |
| 50 | change (AlgebraicTopology.Cohomology.Singular.ContinuousFormulas.standardSimplexFace 1 t).weights 1 * (OrthantSphereEquator.orthantSign (η 0) : ℝ) = 0 |
| 51 | rw [OrthantSphereEquator.standardSimplexFace_omitted_zero, zero_mul] |
| 52 | |
| 53 | def realAxisIntervalChain : (CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains (TopCat.of ℝ)).X 1 := |
| 54 | ∑ η : Fin 1 → Bool, OrthantSphereEquator.orthantWeight η • AlgebraicTopology.Cohomology.Singular.ChainDual.simplexChain (R := ℤ) |
| 55 | (TopCat.toSSet.obj (TopCat.of ℝ)) (realAxisRaySimplex η) |
| 56 | |
| 57 | def realAxisEndpointChain : (CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains (TopCat.of ℝ)).X 0 := |
| 58 | ∑ η : Fin 1 → Bool, OrthantSphereEquator.orthantWeight η • AlgebraicTopology.Cohomology.Singular.ChainDual.simplexChain (R := ℤ) |
| 59 | (TopCat.toSSet.obj (TopCat.of ℝ)) |
| 60 | ((TopCat.toSSetObj₀Equiv (X := TopCat.of ℝ)).symm (OrthantSphereEquator.orthantSign (η 0) : ℝ)) |
| 61 | |
| 62 | theorem realAxisIntervalChain_boundary : |
| 63 | (CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains (TopCat.of ℝ)).d 1 0 realAxisIntervalChain = realAxisEndpointChain := by |
| 64 | have hs : ∀ η (i : Fin 1), (TopCat.toSSet.obj (TopCat.of ℝ)).δ i.succ |
| 65 | (realAxisRaySimplex (OrthantSphereEquator.orthantFlip i η)) = (TopCat.toSSet.obj (TopCat.of ℝ)).δ i.succ |
| 66 | (realAxisRaySimplex η) := by |
| 67 | intro η i |
| 68 | have hi : i = 0 := by omega |
| 69 | subst i |
| 70 | exact (realAxisRaySimplex_face_one _).trans (realAxisRaySimplex_face_one η).symm |
| 71 | change (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := ℤ) (TopCat.toSSet.obj (TopCat.of ℝ))).d 1 0 |
| 72 | (∑ η : Fin 1 → Bool, OrthantSphereEquator.orthantWeight η • AlgebraicTopology.Cohomology.Singular.ChainDual.simplexChain (R := ℤ) |
| 73 | (TopCat.toSSet.obj (TopCat.of ℝ)) (realAxisRaySimplex η)) = _ |
| 74 | rw [OrthantWeightedBoundary.orthantWeighted_boundary_first _ 0 _ hs] |
| 75 | simp only [realAxisRaySimplex_face_zero] |
| 76 | rfl |
| 77 | |
| 78 | def axisPlaneHalfInclusion (b : Bool) : TopCat.of ℝ ⟶ TopCat.of (PlaneHalf.coordinatePlaneHalf b) := |
| 79 | TopCat.ofHom ⟨fun s => ⟨ProductEquator.planeAxisVectorOfReal s, by |
| 80 | change 0 ≤ (OrthantSphereEquator.orthantSign b : ℝ) * 0 |
| 81 | simp⟩, by |
| 82 | apply Continuous.subtype_mk |
| 83 | apply (PiLp.continuous_toLp 2 _).comp |
| 84 | apply continuous_pi |
| 85 | intro i |
| 86 | fin_cases i <;> fun_prop⟩ |
| 87 | |
| 88 | theorem realAxisIntervalChain_half_inclusion (b : Bool) : |
| 89 | (CycleClass.Geometric.LocalHomology.Cycles.integralSingularChainFunctor.map (axisPlaneHalfInclusion b)).f 1 realAxisIntervalChain = |
| 90 | PlaneHalfFillings.planeHalfAxisChain b := by |
| 91 | rw [realAxisIntervalChain, PlaneHalfFillings.planeHalfAxisChain, map_sum] |
| 92 | apply Finset.sum_congr rfl |
| 93 | intro η _ |
| 94 | rw [map_zsmul, OrthantBoundaryRepresentatives.integralSimplexChain_map] |
| 95 | congr 2 |
| 96 | apply ((TopCat.of (PlaneHalf.coordinatePlaneHalf b)).toSSetObjEquiv _).injective |
| 97 | apply ContinuousMap.ext |
| 98 | intro t |
| 99 | apply Subtype.ext |
| 100 | change ProductEquator.planeAxisVectorOfReal (t.weights 1 * (OrthantSphereEquator.orthantSign (η 0) : ℝ)) = t.weights 1 • PlaneHalf.planeAxisVector η |
| 101 | ext i |
| 102 | fin_cases i <;> simp [ProductEquator.planeAxisVectorOfReal, PlaneHalf.planeAxisVector] |
| 103 | |
| 104 | end |
| 105 | |
| 106 | /-! |
| 107 | # ChernClass: the two actual half-intervals for the second sphere boundary |
| 108 | |
| 109 | Each signed ray lies in its real half-line. Its product with a |
| 110 | punctured tangent space radially maps into the corresponding sphere |
| 111 | pole chart, using the original ordered axis-product coordinates. |
| 112 | -/ |
| 113 | |
| 114 | open scoped Simplicial |
| 115 | |
| 116 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 117 | |
| 118 | set_option backward.isDefEq.respectTransparency false |
| 119 | set_option backward.isDefEq.respectTransparency.types false |
| 120 | |
| 121 | def axisHalfLine (b : Bool) : Set ℝ := {s | 0 ≤ (OrthantSphereEquator.orthantSign b : ℝ) * s} |
| 122 | |
| 123 | def axisHalfRayMap (b : Bool) : C(Convexity.StdSimplex ℝ (Fin 2), axisHalfLine b) := |
| 124 | ⟨fun t => ⟨t.weights 1 * (OrthantSphereEquator.orthantSign b : ℝ), by |
| 125 | change 0 ≤ (OrthantSphereEquator.orthantSign b : ℝ) * (t.weights 1 * (OrthantSphereEquator.orthantSign b : ℝ)) |
| 126 | cases b <;> norm_num [OrthantSphereEquator.orthantSign]⟩, |
| 127 | ((Convexity.StdSimplex.continuous_weights_apply ℝ (1 : Fin 2)).mul continuous_const).subtype_mk _⟩ |
| 128 | |
| 129 | def axisHalfEndpoint (b : Bool) : axisHalfLine b := |
| 130 | ⟨(OrthantSphereEquator.orthantSign b : ℝ), by cases b <;> norm_num [axisHalfLine, OrthantSphereEquator.orthantSign]⟩ |
| 131 | |
| 132 | def axisHalfOrigin (b : Bool) : axisHalfLine b := ⟨0, by simp [axisHalfLine]⟩ |
| 133 | |
| 134 | def axisHalfRaySimplex (b : Bool) : (TopCat.toSSet.obj (TopCat.of (axisHalfLine b))) _⦋1⦌ := |
| 135 | ((TopCat.of (axisHalfLine b)).toSSetObjEquiv _).symm (axisHalfRayMap b) |
| 136 | |
| 137 | def axisProductPole (m : ℕ) (b : Bool) : CycleClass.Geometric.SphereHomologyInduction.Cycles.standardSphere m := |
| 138 | if b then -CycleClass.Geometric.SphereCover.Cycles.standardSphereNorthPole m else CycleClass.Geometric.SphereCover.Cycles.standardSphereNorthPole m |
| 139 | |
| 140 | theorem axisProduct_radial_mem_chart (m : ℕ) (b : Bool) (s : axisHalfLine b) |
| 141 | (y : EuclideanSpace ℝ (Fin m)) (h : ProductEquator.axisProductCoordinates m (s.val, y) ≠ 0) : |
| 142 | CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection (EuclideanSpace ℝ (Fin (m + 1))) |
| 143 | ⟨ProductEquator.axisProductCoordinates m (s.val, y), h⟩ ∈ CycleClass.Geometric.SphereCover.Cycles.spherePoleOpen (axisProductPole m b) := by |
| 144 | have hcoord : (CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection (EuclideanSpace ℝ (Fin (m + 1))) |
| 145 | ⟨ProductEquator.axisProductCoordinates m (s.val, y), h⟩).val 0 = |
| 146 | ‖ProductEquator.axisProductCoordinates m (s.val, y)‖⁻¹ * s.val := by |
| 147 | rw [CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection_coe] |
| 148 | rfl |
| 149 | have hsign : 0 ≤ (OrthantSphereEquator.orthantSign b : ℝ) * |
| 150 | (CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection (EuclideanSpace ℝ (Fin (m + 1))) |
| 151 | ⟨ProductEquator.axisProductCoordinates m (s.val, y), h⟩).val 0 := by |
| 152 | rw [hcoord, mul_left_comm] |
| 153 | exact mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) s.property |
| 154 | intro he |
| 155 | have hp := congrArg (fun z : CycleClass.Geometric.SphereHomologyInduction.Cycles.standardSphere m => z.val 0) he |
| 156 | rw [hp] at hsign |
| 157 | cases b <;> norm_num [axisProductPole, OrthantSphereEquator.orthantSign, CycleClass.Geometric.SphereCover.Cycles.standardSphereNorthPole] at hsign |
| 158 | |
| 159 | abbrev PuncturedAxisHalf (b : Bool) := {s : axisHalfLine b // s.val ≠ 0} |
| 160 | |
| 161 | def axisHalfRightPuncturedMap (m : ℕ) (b : Bool) : |
| 162 | C(axisHalfLine b × CycleClass.Geometric.NormalSphere.Cycles.PuncturedNormal (EuclideanSpace ℝ (Fin m)), |
| 163 | CycleClass.Geometric.NormalSphere.Cycles.PuncturedNormal (EuclideanSpace ℝ (Fin (m + 1)))) := |
| 164 | ⟨fun p => ⟨ProductEquator.axisProductCoordinates m (p.1.val, p.2.val), by |
| 165 | intro h |
| 166 | have hz : (p.1.val, p.2.val) = 0 := |
| 167 | (ProductEquator.axisProductCoordinates m).injective (h.trans (map_zero _).symm) |
| 168 | exact p.2.property (congrArg Prod.snd hz)⟩, |
| 169 | ((ProductEquator.axisProductCoordinates m).continuous.comp |
| 170 | ((continuous_subtype_val.comp continuous_fst).prodMk |
| 171 | (continuous_subtype_val.comp continuous_snd))).subtype_mk _⟩ |
| 172 | |
| 173 | def axisHalfLeftPuncturedMap (m : ℕ) (b : Bool) : |
| 174 | C(PuncturedAxisHalf b × EuclideanSpace ℝ (Fin m), |
| 175 | CycleClass.Geometric.NormalSphere.Cycles.PuncturedNormal (EuclideanSpace ℝ (Fin (m + 1)))) := |
| 176 | ⟨fun p => ⟨ProductEquator.axisProductCoordinates m (p.1.val.val, p.2), by |
| 177 | intro h |
| 178 | have hz : (p.1.val.val, p.2) = 0 := |
| 179 | (ProductEquator.axisProductCoordinates m).injective (h.trans (map_zero _).symm) |
| 180 | exact p.1.property (congrArg Prod.fst hz)⟩, |
| 181 | ((ProductEquator.axisProductCoordinates m).continuous.comp |
| 182 | ((continuous_subtype_val.comp (continuous_subtype_val.comp continuous_fst)).prodMk |
| 183 | continuous_snd)).subtype_mk _⟩ |
| 184 | |
| 185 | def axisHalfRightChartMap (m : ℕ) (b : Bool) : |
| 186 | C(axisHalfLine b × CycleClass.Geometric.NormalSphere.Cycles.PuncturedNormal (EuclideanSpace ℝ (Fin m)), CycleClass.Geometric.SphereCover.Cycles.spherePoleOpen (axisProductPole m b)) := |
| 187 | ⟨fun p => ⟨CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection _ (axisHalfRightPuncturedMap m b p), |
| 188 | axisProduct_radial_mem_chart m b p.1 p.2.val (axisHalfRightPuncturedMap m b p).property⟩, |
| 189 | ((CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection _).continuous.comp (axisHalfRightPuncturedMap m b).continuous).subtype_mk _⟩ |
| 190 | |
| 191 | def axisHalfLeftChartMap (m : ℕ) (b : Bool) : |
| 192 | C(PuncturedAxisHalf b × EuclideanSpace ℝ (Fin m), CycleClass.Geometric.SphereCover.Cycles.spherePoleOpen (axisProductPole m b)) := |
| 193 | ⟨fun p => ⟨CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection _ (axisHalfLeftPuncturedMap m b p), |
| 194 | axisProduct_radial_mem_chart m b p.1.val p.2 (axisHalfLeftPuncturedMap m b p).property⟩, |
| 195 | ((CycleClass.Geometric.NormalSphere.Cycles.normalSphereProjection _).continuous.comp (axisHalfLeftPuncturedMap m b).continuous).subtype_mk _⟩ |
| 196 | |
| 197 | end |
| 198 | |
| 199 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Axis.Half |