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.AlgebraicTopology.FundamentalClass.AffineOrientation |
| 3 | import OAI.AlgebraicTopology.FundamentalClass.SimplexCycles |
| 4 | |
| 5 | /-! # Affine Cycle -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.FundamentalClass.AffineCycle.IntegrationConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 14 | open _root_.CategoryTheory Opposite Set |
| 15 | open scoped Simplicial |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | def affineSingularSimplex (d : ℕ) (a : Fin d → ℝ) (r : ℝ) : |
| 21 | Cohomology.Singular.Basic.singularSimplices (TopCat.of (Fin d → ℝ)) d := |
| 22 | (TopCat.toSSet.map (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r)).app _ (LocalSimplex.IntegrationGeometry.positiveSingularSimplex d) |
| 23 | |
| 24 | theorem affineSimplex_faces_avoid (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 25 | (K : Set (Fin d → ℝ)) (hK : K ⊆ AffineOrientation.IntegrationConstruction.affineInterior d a r) : |
| 26 | SimplexCycles.IntegrationConstruction.SimplexFacesIn (TopCat.of (Fin d → ℝ)) Kᶜ d (affineSingularSimplex d a r) := by |
| 27 | cases d with |
| 28 | | zero => trivial |
| 29 | | succ d => |
| 30 | intro i t ht |
| 31 | have hmem := hK ht |
| 32 | obtain ⟨y, hy, heq⟩ := hmem |
| 33 | change AffineOrientation.IntegrationConstruction.positiveAffine (Fin (d + 1) → ℝ) a r y = |
| 34 | AffineOrientation.IntegrationConstruction.positiveAffine (Fin (d + 1) → ℝ) a r |
| 35 | (LocalSimplex.IntegrationGeometry.positiveSimplex (d + 1) (Convexity.StdSimplex.map i.succAbove t)) at heq |
| 36 | have hy' := AffineOrientation.IntegrationConstruction.positiveAffine_injective (Fin (d + 1) → ℝ) a r hr heq |
| 37 | exact SimplexGeometry.IntegrationConstruction.positiveSimplex_face_outside d i t (hy' ▸ hy) |
| 38 | |
| 39 | theorem affineInteriorClass_eq_projectedClass (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) : |
| 40 | AffineOrientation.IntegrationConstruction.affineInteriorClass d a r hr = |
| 41 | ProjectedClasses.IntegrationConstruction.projectedClass (TopCat.of (Fin d → ℝ)) (AffineOrientation.IntegrationConstruction.affineInterior d a r)ᶜ d |
| 42 | (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj (TopCat.of (Fin d → ℝ))) |
| 43 | (affineSingularSimplex d a r)) |
| 44 | (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle _ _ d _ |
| 45 | (affineSimplex_faces_avoid d a r hr _ (Subset.refl _))) := by |
| 46 | rw [AffineOrientation.IntegrationConstruction.affineInteriorClass, SimplexSupport.IntegrationConstruction.positiveInteriorClass] |
| 47 | change HomologicalComplex.homologyMap |
| 48 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChainsMap (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) |
| 49 | (AffineOrientation.IntegrationConstruction.positiveAffine_mapsTo_complement d a r hr)) d (Cohomology.Singular.ChainRepresentatives.chainClass _ d _) = _ |
| 50 | rw [Cohomology.Singular.EvaluationNaturality.chainClass_naturality] |
| 51 | apply congrArg (Cohomology.Singular.ChainRepresentatives.chainClass _ d) |
| 52 | apply Subtype.ext |
| 53 | have h := ConcreteCategory.congr_hom (HomologicalComplex.congr_hom |
| 54 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection_naturality (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) |
| 55 | (AffineOrientation.IntegrationConstruction.positiveAffine_mapsTo_complement d a r hr)) d) |
| 56 | (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj (TopCat.of (Fin d → ℝ))) (LocalSimplex.IntegrationGeometry.positiveSingularSimplex d)) |
| 57 | change (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChainsMap (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r) |
| 58 | (AffineOrientation.IntegrationConstruction.positiveAffine_mapsTo_complement d a r hr)).f d |
| 59 | (SimplexSupport.IntegrationConstruction.positiveInteriorChain d) = |
| 60 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection (TopCat.of (Fin d → ℝ)) (AffineOrientation.IntegrationConstruction.affineInterior d a r)ᶜ).f d |
| 61 | ((Cohomology.Singular.EvaluationNaturality.simplicialScalarChainMap (R := ℤ) (TopCat.toSSet.map (AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r))).f d |
| 62 | (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj (TopCat.of (Fin d → ℝ))) (LocalSimplex.IntegrationGeometry.positiveSingularSimplex d))) at h |
| 63 | rw [Cohomology.Singular.EvaluationNaturality.simplicialScalarChainMap_simplex] at h |
| 64 | exact h |
| 65 | |
| 66 | theorem projectedClass_restrict (X : TopCat.{0}) {K L : Set X} (hKL : K ⊆ L) (n : ℕ) |
| 67 | (c : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).X n) |
| 68 | (hL : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X Lᶜ).f n c ∈ Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X Lᶜ) n) |
| 69 | (hK : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n c ∈ Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X Kᶜ) n) : |
| 70 | AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles.homologyWithSupportRestriction X hKL n (ProjectedClasses.IntegrationConstruction.projectedClass X Lᶜ n c hL) = |
| 71 | ProjectedClasses.IntegrationConstruction.projectedClass X Kᶜ n c hK := by |
| 72 | change HomologicalComplex.homologyMap (AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL) n |
| 73 | (Cohomology.Singular.ChainRepresentatives.chainClass _ n _) = _ |
| 74 | rw [Cohomology.Singular.EvaluationNaturality.chainClass_naturality] |
| 75 | apply congrArg (Cohomology.Singular.ChainRepresentatives.chainClass _ n) |
| 76 | apply Subtype.ext |
| 77 | exact ConcreteCategory.congr_hom (HomologicalComplex.congr_hom |
| 78 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_projection X hKL) n) c |
| 79 | |
| 80 | theorem affineProjectedClass_eq_coordinateCompactClass (d : ℕ) (a : Fin d → ℝ) |
| 81 | (r : ℝ) (hr : 0 < r) (K : Set (Fin d → ℝ)) (hK : IsCompact K) |
| 82 | (hKs : K ⊆ AffineOrientation.IntegrationConstruction.affineInterior d a r) : |
| 83 | ProjectedClasses.IntegrationConstruction.projectedClass (TopCat.of (Fin d → ℝ)) Kᶜ d |
| 84 | (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj (TopCat.of (Fin d → ℝ))) (affineSingularSimplex d a r)) |
| 85 | (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle _ _ d _ (affineSimplex_faces_avoid d a r hr K hKs)) = |
| 86 | IntegrationOrientation.Geometry.coordinateCompactClass d K hK := by |
| 87 | rw [← AffineOrientation.IntegrationConstruction.affineInteriorClass_restrict_compact d a r hr K hK hKs, |
| 88 | affineInteriorClass_eq_projectedClass, projectedClass_restrict] |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! An actual affine chart simplex represents the geometric compact chart |
| 93 | class. Chart excision is applied to its codomain-restricted simplex. -/ |
| 94 | |
| 95 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 96 | open _root_.CategoryTheory Opposite Set |
| 97 | open scoped Simplicial |
| 98 | |
| 99 | set_option backward.isDefEq.respectTransparency false |
| 100 | set_option backward.isDefEq.respectTransparency.types false |
| 101 | |
| 102 | def chartLiftSimplex {X Y : TopCat.{0}} (e : OpenPartialHomeomorph X Y) (n : ℕ) |
| 103 | (σ : Cohomology.Singular.Basic.singularSimplices X n) (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) : |
| 104 | Cohomology.Singular.Basic.singularSimplices (TopCat.of e.source) n := |
| 105 | ((TopCat.of e.source).toSSetObjEquiv (op ⦋n⦌)).symm |
| 106 | ⟨fun t => ⟨X.toSSetObjEquiv (op ⦋n⦌) σ t, hs t⟩, |
| 107 | (X.toSSetObjEquiv (op ⦋n⦌) σ).continuous.subtype_mk _⟩ |
| 108 | |
| 109 | theorem chartLiftSimplex_inclusion {X Y : TopCat.{0}} (e : OpenPartialHomeomorph X Y) (n : ℕ) |
| 110 | (σ : Cohomology.Singular.Basic.singularSimplices X n) (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) : |
| 111 | (TopCat.toSSet.map (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X e.source)).app _ (chartLiftSimplex e n σ hs) = σ := by |
| 112 | apply (X.toSSetObjEquiv (op ⦋n⦌)).injective |
| 113 | rfl |
| 114 | |
| 115 | theorem chartLiftSimplex_faces {X Y : TopCat.{0}} (e : OpenPartialHomeomorph X Y) (K : Set X) |
| 116 | (n : ℕ) (σ : Cohomology.Singular.Basic.singularSimplices X n) |
| 117 | (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) |
| 118 | (hσ : SimplexCycles.IntegrationConstruction.SimplexFacesIn X Kᶜ n σ) : |
| 119 | SimplexCycles.IntegrationConstruction.SimplexFacesIn (TopCat.of e.source) ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X e.source) ⁻¹' K)ᶜ n |
| 120 | (chartLiftSimplex e n σ hs) := by |
| 121 | cases n with |
| 122 | | zero => trivial |
| 123 | | succ n => exact fun i t => hσ i t |
| 124 | |
| 125 | def chartModelSimplex {X Y : TopCat.{0}} (e : OpenPartialHomeomorph X Y) (n : ℕ) |
| 126 | (σ : Cohomology.Singular.Basic.singularSimplices X n) (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) : |
| 127 | Cohomology.Singular.Basic.singularSimplices Y n := |
| 128 | (TopCat.toSSet.map (ProjectedClasses.IntegrationConstruction.chartSourceToModel e)).app _ (chartLiftSimplex e n σ hs) |
| 129 | |
| 130 | theorem chartModelSimplex_faces {X Y : TopCat.{0}} (e : OpenPartialHomeomorph X Y) (K : Set X) |
| 131 | (hKs : K ⊆ e.source) (n : ℕ) (σ : Cohomology.Singular.Basic.singularSimplices X n) |
| 132 | (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) |
| 133 | (hσ : SimplexCycles.IntegrationConstruction.SimplexFacesIn X Kᶜ n σ) : |
| 134 | SimplexCycles.IntegrationConstruction.SimplexFacesIn Y (e '' K)ᶜ n (chartModelSimplex e n σ hs) := by |
| 135 | cases n with |
| 136 | | zero => trivial |
| 137 | | succ n => |
| 138 | intro i t ht |
| 139 | obtain ⟨z, hz, heq⟩ := ht |
| 140 | have heq' : z = X.toSSetObjEquiv _ σ (Convexity.StdSimplex.map i.succAbove t) := |
| 141 | e.injOn (hKs hz) (hs _) heq |
| 142 | exact hσ i t (heq' ▸ hz) |
| 143 | |
| 144 | theorem chartProjectedSimplex_transport {X Y : TopCat.{0}} [T2Space X] [T2Space Y] |
| 145 | (e : OpenPartialHomeomorph X Y) (K : Set X) (hK : IsCompact K) (hKs : K ⊆ e.source) |
| 146 | (n : ℕ) (σ : Cohomology.Singular.Basic.singularSimplices X n) |
| 147 | (hs : ∀ t, X.toSSetObjEquiv (op ⦋n⦌) σ t ∈ e.source) (hσ : SimplexCycles.IntegrationConstruction.SimplexFacesIn X Kᶜ n σ) : |
| 148 | (AlgebraicGeometry.CycleClass.Geometric.CompactSupportCharts.Cycles.compactSupportChartHomologyIso e K hK hKs n).hom |
| 149 | (ProjectedClasses.IntegrationConstruction.projectedClass X Kᶜ n (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj X) σ) |
| 150 | (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle X Kᶜ n σ hσ)) = |
| 151 | ProjectedClasses.IntegrationConstruction.projectedClass Y (e '' K)ᶜ n |
| 152 | (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj Y) (chartModelSimplex e n σ hs)) |
| 153 | (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle Y (e '' K)ᶜ n _ (chartModelSimplex_faces e K hKs n σ hs hσ)) := by |
| 154 | let c := Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj (TopCat.of e.source)) (chartLiftSimplex e n σ hs) |
| 155 | have hinc : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChainFunctor.map (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X e.source)).f n c = |
| 156 | Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj X) σ := by |
| 157 | change (Cohomology.Singular.EvaluationNaturality.simplicialScalarChainMap (R := ℤ) (TopCat.toSSet.map (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X e.source))).f n _ = _ |
| 158 | rw [Cohomology.Singular.EvaluationNaturality.simplicialScalarChainMap_simplex, chartLiftSimplex_inclusion] |
| 159 | have hmodel : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChainFunctor.map (ProjectedClasses.IntegrationConstruction.chartSourceToModel e)).f n c = |
| 160 | Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj Y) (chartModelSimplex e n σ hs) := |
| 161 | Cohomology.Singular.EvaluationNaturality.simplicialScalarChainMap_simplex _ _ |
| 162 | have hsource := SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle (TopCat.of e.source) |
| 163 | ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X e.source) ⁻¹' K)ᶜ n _ (chartLiftSimplex_faces e K n σ hs hσ) |
| 164 | have hambient := SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle X Kᶜ n σ hσ |
| 165 | have htarget := SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle Y (e '' K)ᶜ n _ (chartModelSimplex_faces e K hKs n σ hs hσ) |
| 166 | rw [← hinc] at hambient |
| 167 | rw [← hmodel] at htarget |
| 168 | have h := ProjectedClasses.IntegrationConstruction.compactSupportChartHomologyIso_projectedClass e K hK hKs n c hsource hambient htarget |
| 169 | simpa only [hinc, hmodel] using h |
| 170 | |
| 171 | theorem chartSimplex_faces_avoid {X : TopCat.{0}} {d : ℕ} |
| 172 | (e : OpenPartialHomeomorph X (Fin d → ℝ)) (K : Set X) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 173 | (hK : e '' K ⊆ AffineOrientation.IntegrationConstruction.affineInterior d a r) (σ : Cohomology.Singular.Basic.singularSimplices X d) |
| 174 | (hcoords : ∀ t, e (X.toSSetObjEquiv (op ⦋d⦌) σ t) = |
| 175 | AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r (LocalSimplex.IntegrationGeometry.positiveSimplex d t)) : |
| 176 | SimplexCycles.IntegrationConstruction.SimplexFacesIn X Kᶜ d σ := by |
| 177 | cases d with |
| 178 | | zero => trivial |
| 179 | | succ d => |
| 180 | intro i t ht |
| 181 | have hk := hK ⟨X.toSSetObjEquiv _ σ (Convexity.StdSimplex.map i.succAbove t), ht, rfl⟩ |
| 182 | rw [hcoords] at hk |
| 183 | obtain ⟨y, hy, heq⟩ := hk |
| 184 | exact SimplexGeometry.IntegrationConstruction.positiveSimplex_face_outside d i t |
| 185 | ((AffineOrientation.IntegrationConstruction.positiveAffine_injective (Fin (d + 1) → ℝ) a r hr heq) ▸ hy) |
| 186 | |
| 187 | theorem chartProjectedSimplex_eq_chartCompactClass {X : TopCat.{0}} [T2Space X] {d : ℕ} |
| 188 | (e : OpenPartialHomeomorph X (Fin d → ℝ)) (K : Set X) (hK : IsCompact K) (hKs : K ⊆ e.source) |
| 189 | (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) (hKi : e '' K ⊆ AffineOrientation.IntegrationConstruction.affineInterior d a r) |
| 190 | (σ : Cohomology.Singular.Basic.singularSimplices X d) (hs : ∀ t, X.toSSetObjEquiv (op ⦋d⦌) σ t ∈ e.source) |
| 191 | (hcoords : ∀ t, e (X.toSSetObjEquiv (op ⦋d⦌) σ t) = |
| 192 | AffineOrientation.IntegrationConstruction.positiveAffine (Fin d → ℝ) a r (LocalSimplex.IntegrationGeometry.positiveSimplex d t)) : |
| 193 | ProjectedClasses.IntegrationConstruction.projectedClass X Kᶜ d (Cohomology.Singular.ChainDual.simplexChain (R := ℤ) (TopCat.toSSet.obj X) σ) |
| 194 | (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle X Kᶜ d σ (chartSimplex_faces_avoid e K a r hr hKi σ hcoords)) = |
| 195 | IntegrationOrientation.Geometry.chartCompactClass e K hK hKs := by |
| 196 | let iso := AlgebraicGeometry.CycleClass.Geometric.CompactSupportCharts.Cycles.compactSupportChartHomologyIso (X := X) (Y := TopCat.of (Fin d → ℝ)) e K hK hKs d |
| 197 | apply iso.toLinearEquiv.injective |
| 198 | change iso.hom _ = iso.hom (iso.inv _) |
| 199 | rw [CategoryTheory.Iso.inv_hom_id_apply] |
| 200 | change (AlgebraicGeometry.CycleClass.Geometric.CompactSupportCharts.Cycles.compactSupportChartHomologyIso (X := X) (Y := TopCat.of (Fin d → ℝ)) e K hK hKs d).hom _ = _ |
| 201 | rw [chartProjectedSimplex_transport (X := X) (Y := TopCat.of (Fin d → ℝ)) e K hK hKs d σ hs |
| 202 | (chartSimplex_faces_avoid e K a r hr hKi σ hcoords)] |
| 203 | have hmodel : chartModelSimplex e d σ hs = affineSingularSimplex d a r := by |
| 204 | apply ((TopCat.of (Fin d → ℝ)).toSSetObjEquiv (op ⦋d⦌)).injective |
| 205 | apply ContinuousMap.ext |
| 206 | intro t |
| 207 | exact hcoords t |
| 208 | simp only [hmodel] |
| 209 | exact affineProjectedClass_eq_coordinateCompactClass d a r hr (e '' K) |
| 210 | (AlgebraicGeometry.CycleClass.Geometric.CompactSupportCharts.Cycles.compactSupportChart_image_isCompact (X := X) (Y := TopCat.of (Fin d → ℝ)) e K hK hKs) hKi |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.AlgebraicTopology.FundamentalClass.AffineCycle.IntegrationConstruction |