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.Duality.Poincare.IntegralHomologyCoefficients |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains |
| 3 | import Mathlib.Basic.Complex.Basic |
| 4 | |
| 5 | /-! # Relative Coefficients -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.FundamentalClass.RelativeCoefficients.IntegrationConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Change the coefficients of genuine relative chains and relative homology |
| 12 | from integers to complex numbers, with the actual projection formula. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles OAI.AlgebraicTopology.Duality.Poincare.IntegralHomologyCoefficients |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | def integerLinear {V W : Type} [AddCommGroup V] [AddCommGroup W] |
| 21 | {modV : Module ℤ V} {modW : Module ℤ W} (f : V →+ W) : V →ₗ[ℤ] W where |
| 22 | toFun := f |
| 23 | map_add' := f.map_add |
| 24 | map_smul' r x := by |
| 25 | change f (modV.smul r x) = modW.smul r (f x) |
| 26 | simp only [int_smul_eq_zsmul, map_zsmul] |
| 27 | |
| 28 | def descendLinearMap {R : Type} [Ring R] |
| 29 | {V W P : Type} [AddCommGroup V] [AddCommGroup W] [AddCommGroup P] |
| 30 | {modV : Module R V} {modW : Module R W} {modP : Module R P} |
| 31 | (π : V →ₗ[R] W) (hπ : Function.Surjective π) (f : V →ₗ[R] P) |
| 32 | (hf : LinearMap.ker π ≤ LinearMap.ker f) : W →ₗ[R] P := |
| 33 | ((LinearMap.ker π).liftQ f hf).comp (π.quotKerEquivOfSurjective hπ).symm.toLinearMap |
| 34 | |
| 35 | theorem descendLinearMap_apply {R : Type} [Ring R] |
| 36 | {V W P : Type} [AddCommGroup V] [AddCommGroup W] [AddCommGroup P] |
| 37 | {modV : Module R V} {modW : Module R W} {modP : Module R P} |
| 38 | (π : V →ₗ[R] W) (hπ : Function.Surjective π) (f : V →ₗ[R] P) |
| 39 | (hf : LinearMap.ker π ≤ LinearMap.ker f) (v : V) : |
| 40 | descendLinearMap π hπ f hf (π v) = f v := by |
| 41 | simp only [descendLinearMap, LinearMap.comp_apply, LinearEquiv.coe_coe, |
| 42 | LinearMap.quotKerEquivOfSurjective_symm_apply] |
| 43 | rfl |
| 44 | |
| 45 | def relativeCoefficientBeforeQuotient (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 46 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).X n := |
| 47 | integerLinear (((AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A).f n).hom.toAddMonoidHom.comp |
| 48 | (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X n).toAddMonoidHom) |
| 49 | |
| 50 | theorem relativeCoefficientBeforeQuotient_kernel (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 51 | LinearMap.ker ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f n).hom ≤ |
| 52 | LinearMap.ker (relativeCoefficientBeforeQuotient X A n) := by |
| 53 | rw [show LinearMap.ker ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f n).hom = |
| 54 | LinearMap.range ((AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.scalarSubspaceChainInclusion ℤ X A).f n).hom from |
| 55 | AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection_ker ℤ X A n] |
| 56 | rintro _ ⟨z, rfl⟩ |
| 57 | change (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A).f n |
| 58 | (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X n |
| 59 | ((AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.scalarSubspaceChainInclusion ℤ X A).f n z)) = 0 |
| 60 | have hn := Duality.Poincare.IntegralCapCoefficients.integralToScalarSimplicial_naturality (R := ℂ) |
| 61 | (TopCat.toSSet.map (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.subspaceInclusion X A)) n z |
| 62 | change (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.scalarSubspaceChainInclusion ℂ X A).f n |
| 63 | (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) (TopCat.of A) n z) = |
| 64 | Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X n ((AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.scalarSubspaceChainInclusion ℤ X A).f n z) at hn |
| 65 | rw [← hn] |
| 66 | exact ConcreteCategory.congr_hom (HomologicalComplex.congr_hom |
| 67 | (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.scalarSubspaceChainInclusion_projection ℂ X A) n) |
| 68 | (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) (TopCat.of A) n z) |
| 69 | |
| 70 | def relativeCoefficient (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 71 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).X n →ₗ[ℤ] (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).X n := |
| 72 | descendLinearMap ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f n).hom |
| 73 | (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection_surjective ℤ X A n) |
| 74 | (relativeCoefficientBeforeQuotient X A n) (relativeCoefficientBeforeQuotient_kernel X A n) |
| 75 | |
| 76 | theorem relativeCoefficient_projection (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 77 | (z : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).X n) : |
| 78 | relativeCoefficient X A n ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f n z) = |
| 79 | (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A).f n (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X n z) := by |
| 80 | rw [relativeCoefficient, descendLinearMap_apply] |
| 81 | rfl |
| 82 | |
| 83 | theorem relativeCoefficient_d (X : TopCat.{0}) (A : Set X) (i j : ℕ) |
| 84 | (z : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).X i) : |
| 85 | relativeCoefficient X A j ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).d i j z) = |
| 86 | (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).d i j (relativeCoefficient X A i z) := by |
| 87 | obtain ⟨z, rfl⟩ := AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection_surjective ℤ X A i z |
| 88 | have h := ConcreteCategory.congr_hom ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).comm i j) z |
| 89 | change (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).d i j ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f i z) = |
| 90 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f j ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).d i j z) at h |
| 91 | change relativeCoefficient X A j |
| 92 | ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).d i j ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f i z)) = |
| 93 | (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).d i j |
| 94 | (relativeCoefficient X A i ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A).f i z)) |
| 95 | rw [h, relativeCoefficient_projection, relativeCoefficient_projection] |
| 96 | have hd : Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X j ((AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).d i j z) = |
| 97 | (Cohomology.Singular.Evaluation.singularScalarChains (R := ℂ) X).d i j (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X i z) := |
| 98 | Duality.Poincare.IntegralCapCoefficients.integralToScalarSimplicial_d (R := ℂ) (TopCat.toSSet.obj X) i j z |
| 99 | rw [hd] |
| 100 | exact (ConcreteCategory.congr_hom ((AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A).comm i j) |
| 101 | (Duality.Poincare.IntegralCapCoefficients.integralToScalarSingular (R := ℂ) X i z)).symm |
| 102 | |
| 103 | def relativeCoefficientCycles (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 104 | Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n →ₗ[ℤ] |
| 105 | Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A) n := |
| 106 | integerLinear |
| 107 | { toFun z := ⟨relativeCoefficient X A n z.val, by |
| 108 | change (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).d n ((ComplexShape.down ℕ).next n) |
| 109 | (relativeCoefficient X A n z.val) = 0 |
| 110 | rw [← relativeCoefficient_d, Cohomology.Singular.ChainRepresentatives.chainCycle_d_eq_zero, map_zero]⟩ |
| 111 | map_zero' := by apply Subtype.ext; exact map_zero _ |
| 112 | map_add' z w := by apply Subtype.ext; exact map_add _ _ _ } |
| 113 | |
| 114 | def relativeCoefficientHomology (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 115 | (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A).homology n →ₗ[ℤ] (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A).homology n := |
| 116 | descendLinearMap (Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n) |
| 117 | (Cohomology.Singular.ChainRepresentatives.chainClass_surjective (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n) |
| 118 | (integerLinear ((Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A) n).toAddMonoidHom.comp |
| 119 | (relativeCoefficientCycles X A n).toAddMonoidHom)) (by |
| 120 | intro z hz |
| 121 | obtain ⟨w, hw⟩ := (Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n z).mp hz |
| 122 | change Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A) n (relativeCoefficientCycles X A n z) = 0 |
| 123 | apply (Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists _ n _).mpr |
| 124 | refine ⟨relativeCoefficient X A (n + 1) w, ?_⟩ |
| 125 | rw [← relativeCoefficient_d, hw] |
| 126 | rfl) |
| 127 | |
| 128 | theorem relativeCoefficientHomology_class (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 129 | (z : Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n) : |
| 130 | relativeCoefficientHomology X A n (Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularChains X A) n z) = |
| 131 | Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChains ℂ X A) n (relativeCoefficientCycles X A n z) := by |
| 132 | rw [relativeCoefficientHomology, descendLinearMap_apply] |
| 133 | rfl |
| 134 | |
| 135 | theorem relativeCoefficientCycles_projection (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 136 | (z : Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X) n) : |
| 137 | relativeCoefficientCycles X A n (Cohomology.Singular.EvaluationNaturality.chainCycleMap (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A) n z) = |
| 138 | Cohomology.Singular.EvaluationNaturality.chainCycleMap (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A) n |
| 139 | (Duality.Poincare.IntegralHomologyCoefficients.integralToScalarSingularCycles (R := ℂ) X n z) := by |
| 140 | apply Subtype.ext |
| 141 | exact relativeCoefficient_projection X A n z.val |
| 142 | |
| 143 | theorem relativeCoefficientHomology_projection (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 144 | (z : (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X).homology n) : |
| 145 | relativeCoefficientHomology X A n |
| 146 | (HomologicalComplex.homologyMap (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection X A) n z) = |
| 147 | HomologicalComplex.homologyMap (AlgebraicGeometry.CycleClass.Geometric.RelativeScalarChains.Cycles.relativeScalarChainProjection ℂ X A) n |
| 148 | (Duality.Poincare.IntegralHomologyCoefficients.integralToScalarSingularHomology (R := ℂ) X n z) := by |
| 149 | obtain ⟨z, rfl⟩ := Cohomology.Singular.ChainRepresentatives.chainClass_surjective (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.integralSingularChains X) n z |
| 150 | rw [Cohomology.Singular.EvaluationNaturality.chainClass_naturality, relativeCoefficientHomology_class, |
| 151 | Duality.Poincare.IntegralHomologyCoefficients.integralToScalarSingularHomology_chainClass, Cohomology.Singular.EvaluationNaturality.chainClass_naturality, |
| 152 | relativeCoefficientCycles_projection] |
| 153 | |
| 154 | end |
| 155 | |
| 156 | end OAI.AlgebraicTopology.FundamentalClass.RelativeCoefficients.IntegrationConstruction |