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.SimplexSupport |
| 2 | |
| 3 | /-! # Affine Orientation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicTopology.FundamentalClass.AffineOrientation.IntegrationConstruction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Positive affine rescaling preserves the geometric local orientation |
| 12 | classes. The proof uses a homotopy of punctured Euclidean spaces. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Set |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | section Scale |
| 20 | |
| 21 | variable (E : Type) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | |
| 23 | def positiveScale (r : ℝ) : TopCat.of E ⟶ TopCat.of E := |
| 24 | TopCat.ofHom ⟨fun x => r • x, continuous_const.smul continuous_id⟩ |
| 25 | |
| 26 | theorem positiveScale_mapsTo (r : ℝ) (hr : 0 < r) : |
| 27 | MapsTo (positiveScale E r) ({0}ᶜ : Set E) ({0}ᶜ : Set E) := by |
| 28 | intro x hx |
| 29 | change r • x ≠ 0 |
| 30 | exact smul_ne_zero hr.ne' hx |
| 31 | |
| 32 | def positiveScaleHomotopy (r : ℝ) : |
| 33 | TopCat.Homotopy (𝟙 (TopCat.of E)) (positiveScale E r) where |
| 34 | toFun z := (1 - (z.1 : ℝ) + (z.1 : ℝ) * r) • z.2 |
| 35 | continuous_toFun := by fun_prop |
| 36 | map_zero_left x := by simp |
| 37 | map_one_left x := by simp [positiveScale] |
| 38 | |
| 39 | theorem positiveScaleHomotopy_mapsTo (r : ℝ) (hr : 0 < r) (t : unitInterval) : |
| 40 | MapsTo (fun x => positiveScaleHomotopy E r (t, x)) ({0}ᶜ : Set E) ({0}ᶜ : Set E) := by |
| 41 | intro x hx |
| 42 | have hp : 0 < 1 - (t : ℝ) + (t : ℝ) * r := by |
| 43 | rcases t.property.1.eq_or_lt with ht | ht |
| 44 | · rw [← ht] |
| 45 | norm_num |
| 46 | · exact add_pos_of_nonneg_of_pos (sub_nonneg.mpr t.property.2) (mul_pos ht hr) |
| 47 | exact smul_ne_zero hp.ne' hx |
| 48 | |
| 49 | theorem positiveScaleHomologyMap_eq_id (r : ℝ) (hr : 0 < r) (n : ℕ) : |
| 50 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveScale E r) (positiveScale_mapsTo E r hr) n = |
| 51 | 𝟙 (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.localSingularHomology (TopCat.of E) 0 n) := by |
| 52 | have h := AlgebraicGeometry.CycleClass.Geometric.RelativeHomotopy.Cycles.relativeSingularHomologyMap_eq_of_homotopy |
| 53 | (X := TopCat.of E) (Y := TopCat.of E) |
| 54 | (A := ({0}ᶜ : Set E)) (B := ({0}ᶜ : Set E)) |
| 55 | (fun _ hx => hx) (positiveScale_mapsTo E r hr) (positiveScaleHomotopy E r) |
| 56 | (positiveScaleHomotopy_mapsTo E r hr) n |
| 57 | rw [AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap_id] at h |
| 58 | exact h.symm |
| 59 | |
| 60 | def positiveAffine (a : E) (r : ℝ) : TopCat.of E ⟶ TopCat.of E := |
| 61 | TopCat.ofHom ⟨fun x => a + r • x, continuous_const.add (continuous_const.smul continuous_id)⟩ |
| 62 | |
| 63 | theorem positiveAffine_injective (a : E) (r : ℝ) (hr : 0 < r) : |
| 64 | Function.Injective (positiveAffine E a r) := by |
| 65 | intro x y h |
| 66 | exact (smul_right_injective E hr.ne') (add_left_cancel h) |
| 67 | |
| 68 | theorem positiveAffine_mapsTo_point (a : E) (r : ℝ) (hr : 0 < r) (x : E) : |
| 69 | MapsTo (positiveAffine E a r) ({x}ᶜ : Set E) |
| 70 | ({positiveAffine E a r x}ᶜ : Set E) := by |
| 71 | intro y hy h |
| 72 | exact hy (positiveAffine_injective E a r hr h) |
| 73 | |
| 74 | theorem positiveAffine_translation (a : E) (r : ℝ) (hr : 0 < r) (x : E) (n : ℕ) : |
| 75 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine E a r) (positiveAffine_mapsTo_point E a r hr x) n ≫ |
| 76 | (AlgebraicGeometry.CycleClass.Geometric.ClosedBall.Cycles.localTranslationHomologyIso E (positiveAffine E a r x) n).hom = |
| 77 | (AlgebraicGeometry.CycleClass.Geometric.ClosedBall.Cycles.localTranslationHomologyIso E x n).hom := by |
| 78 | let tx := (TopCat.isoOfHomeo (X := TopCat.of E) (Y := TopCat.of E) (Homeomorph.subRight x)).hom |
| 79 | let ty := (TopCat.isoOfHomeo (X := TopCat.of E) (Y := TopCat.of E) |
| 80 | (Homeomorph.subRight (positiveAffine E a r x))).hom |
| 81 | have hx : MapsTo tx ({x}ᶜ : Set E) ({0}ᶜ : Set E) := by |
| 82 | intro y hy |
| 83 | exact sub_ne_zero.mpr hy |
| 84 | have hy : MapsTo ty ({positiveAffine E a r x}ᶜ : Set E) ({0}ᶜ : Set E) := by |
| 85 | intro y hy |
| 86 | exact sub_ne_zero.mpr hy |
| 87 | have hmap : positiveAffine E a r ≫ ty = tx ≫ positiveScale E r := by |
| 88 | ext y |
| 89 | change a + r • y - (a + r • x) = r • (y - x) |
| 90 | simp only [smul_sub] |
| 91 | abel |
| 92 | change AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine E a r) _ n ≫ |
| 93 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap ty hy n = AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap tx hx n |
| 94 | calc |
| 95 | _ = AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap tx hx n ≫ |
| 96 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveScale E r) (positiveScale_mapsTo E r hr) n := by |
| 97 | rw [AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap_comp, AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap_comp] |
| 98 | congr 1 |
| 99 | _ = _ := by rw [positiveScaleHomologyMap_eq_id E r hr n, Category.comp_id] |
| 100 | |
| 101 | end Scale |
| 102 | |
| 103 | theorem positiveCoordinateClass_affine (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 104 | (x : Fin d → ℝ) : |
| 105 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine (Fin d → ℝ) a r) |
| 106 | (positiveAffine_mapsTo_point (Fin d → ℝ) a r hr x) d (IntegrationOrientation.Geometry.positiveCoordinateClass d x) = |
| 107 | IntegrationOrientation.Geometry.positiveCoordinateClass d (positiveAffine (Fin d → ℝ) a r x) := by |
| 108 | apply (AlgebraicGeometry.CycleClass.Geometric.ClosedBall.Cycles.localTranslationHomologyIso (Fin d → ℝ) (positiveAffine (Fin d → ℝ) a r x) d).toLinearEquiv.injective |
| 109 | have h := ConcreteCategory.congr_hom |
| 110 | (positiveAffine_translation (Fin d → ℝ) a r hr x d) (IntegrationOrientation.Geometry.positiveCoordinateClass d x) |
| 111 | exact h.trans (by simp [IntegrationOrientation.Geometry.positiveCoordinateClass]) |
| 112 | |
| 113 | end |
| 114 | |
| 115 | open _root_.CategoryTheory Set |
| 116 | |
| 117 | set_option backward.isDefEq.respectTransparency false |
| 118 | set_option backward.isDefEq.respectTransparency.types false |
| 119 | |
| 120 | def affineInterior (d : ℕ) (a : Fin d → ℝ) (r : ℝ) : Set (Fin d → ℝ) := |
| 121 | positiveAffine (Fin d → ℝ) a r '' SimplexGeometry.IntegrationConstruction.positiveInterior d |
| 122 | |
| 123 | theorem positiveAffine_mapsTo_complement (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) : |
| 124 | MapsTo (positiveAffine (Fin d → ℝ) a r) (SimplexGeometry.IntegrationConstruction.positiveInterior d)ᶜ (affineInterior d a r)ᶜ := by |
| 125 | intro x hx |
| 126 | rintro ⟨y, hy, h⟩ |
| 127 | exact hx ((positiveAffine_injective (Fin d → ℝ) a r hr h) ▸ hy) |
| 128 | |
| 129 | def affineInteriorClass (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) : |
| 130 | AlgebraicGeometry.CycleClass.Geometric.HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin d → ℝ)) (affineInterior d a r) d := |
| 131 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine (Fin d → ℝ) a r) |
| 132 | (positiveAffine_mapsTo_complement d a r hr) d (SimplexSupport.IntegrationConstruction.positiveInteriorClass d) |
| 133 | |
| 134 | theorem affineInteriorClass_atPoint (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 135 | (y : Fin d → ℝ) (hy : y ∈ affineInterior d a r) : |
| 136 | AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin d → ℝ)) (affineInterior d a r) y hy d |
| 137 | (affineInteriorClass d a r hr) = IntegrationOrientation.Geometry.positiveCoordinateClass d y := by |
| 138 | obtain ⟨x, hx, rfl⟩ := hy |
| 139 | have hcomm : |
| 140 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine (Fin d → ℝ) a r) |
| 141 | (positiveAffine_mapsTo_complement d a r hr) d ≫ |
| 142 | AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin d → ℝ)) (affineInterior d a r) |
| 143 | (positiveAffine (Fin d → ℝ) a r x) ⟨x, hx, rfl⟩ d = |
| 144 | AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin d → ℝ)) (SimplexGeometry.IntegrationConstruction.positiveInterior d) x hx d ≫ |
| 145 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (positiveAffine (Fin d → ℝ) a r) |
| 146 | (positiveAffine_mapsTo_point (Fin d → ℝ) a r hr x) d := by |
| 147 | change AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap _ _ d ≫ AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (𝟙 _) _ d = |
| 148 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap (𝟙 _) _ d ≫ AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap _ _ d |
| 149 | rw [AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap_comp, AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap_comp] |
| 150 | simp only [Category.comp_id, Category.id_comp] |
| 151 | have h := ConcreteCategory.congr_hom hcomm (SimplexSupport.IntegrationConstruction.positiveInteriorClass d) |
| 152 | change AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.localHomologyToPoint _ _ _ _ d (affineInteriorClass d a r hr) = |
| 153 | AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomologyMap _ _ d |
| 154 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles.localHomologyToPoint _ _ x hx d (SimplexSupport.IntegrationConstruction.positiveInteriorClass d)) at h |
| 155 | rw [SimplexSupport.IntegrationConstruction.positiveInteriorClass_atPoint, positiveCoordinateClass_affine d a r hr x] at h |
| 156 | exact h |
| 157 | |
| 158 | theorem affineInteriorClass_restrict_compact (d : ℕ) (a : Fin d → ℝ) (r : ℝ) (hr : 0 < r) |
| 159 | (K : Set (Fin d → ℝ)) (hK : IsCompact K) (hKs : K ⊆ affineInterior d a r) : |
| 160 | AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles.homologyWithSupportRestriction (TopCat.of (Fin d → ℝ)) hKs d (affineInteriorClass d a r hr) = |
| 161 | IntegrationOrientation.Geometry.coordinateCompactClass d K hK := by |
| 162 | apply RealSupport.IntegrationGeometry.realManifold_compactSupport_point_ext d K hK |
| 163 | intro x hx |
| 164 | rw [AlgebraicGeometry.CycleClass.Geometric.FiniteSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint_apply, affineInteriorClass_atPoint, |
| 165 | IntegrationOrientation.Geometry.coordinateCompactClass_atPoint] |
| 166 | |
| 167 | end |
| 168 | |
| 169 | end OAI.AlgebraicTopology.FundamentalClass.AffineOrientation.IntegrationConstruction |