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.AlgebraicGeometry.Comparison.Betti.Target |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.AdapterNaturality |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.BettiFinite |
| 4 | |
| 5 | /-! # Betti -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace NumberTheory.PadicHodge.GeometricComparison |
| 12 | |
| 13 | /-! The full BettiComparison input and its comparison on GeometricComparison's actual complex de Rham object. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | def Betti.ComparisonInput : Prop := AlgebraicGeometry.Comparison.Betti.Target.ComparisonTarget |
| 18 | |
| 19 | namespace Betti.ComplexComparison |
| 20 | |
| 21 | def equivOfBijective {M N : Type*} [AddCommGroup M] [AddCommGroup N] |
| 22 | [Module ℂ M] [Module ℂ N] (f : M →ₗ[ℂ] N) (hf : Function.Bijective f) : M ≃ₗ[ℂ] N := |
| 23 | LinearEquiv.ofBijective f hf |
| 24 | |
| 25 | theorem equivOfBijective_toLinearMap {M N : Type*} [AddCommGroup M] [AddCommGroup N] |
| 26 | [Module ℂ M] [Module ℂ N] (f : M →ₗ[ℂ] N) (hf : Function.Bijective f) : |
| 27 | (equivOfBijective f hf).toLinearMap = f := rfl |
| 28 | |
| 29 | variable (hBettiComparison : ComparisonInput) (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) |
| 30 | [Smooth X.hom] [IsProper X.hom] |
| 31 | |
| 32 | def originalEquiv (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRham X n ≃ₗ[ℂ] |
| 33 | AlgebraicGeometry.Betti.Scheme.schemeBetti (ModuleCat.of ℂ ℂ) X n := by |
| 34 | letI := hBettiComparison.1 X n |
| 35 | exact equivOfBijective (AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap X n) |
| 36 | ((AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.bettiDownEquiv X n).bijective.comp |
| 37 | ((asIso (AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.smoothDeRhamBettiMap X n)).toLinearEquiv.bijective)) |
| 38 | |
| 39 | theorem originalEquiv_toLinearMap (n : ℕ) : |
| 40 | (originalEquiv hBettiComparison X n).toLinearMap = AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap X n := |
| 41 | equivOfBijective_toLinearMap _ _ |
| 42 | |
| 43 | def nativeEquiv (n : ℕ) : AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℂ X n ≃ₗ[ℂ] |
| 44 | AlgebraicGeometry.Betti.Scheme.schemeBetti (ModuleCat.of ℂ ℂ) X n := |
| 45 | (SheafFormsAdapter.FormsAdapter.cohomologyEquiv X n).symm.trans (originalEquiv hBettiComparison X n) |
| 46 | |
| 47 | theorem inverse_trans_comp {M N T : Type*} [AddCommGroup M] [AddCommGroup N] |
| 48 | [AddCommGroup T] [Module ℂ M] [Module ℂ N] [Module ℂ T] |
| 49 | (e : M ≃ₗ[ℂ] N) (d : M ≃ₗ[ℂ] T) : |
| 50 | (e.symm.trans d).toLinearMap.comp e.toLinearMap = d.toLinearMap := by |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | exact congrArg d (e.symm_apply_apply x) |
| 54 | |
| 55 | theorem nativeEquiv_comp_forms (n : ℕ) : |
| 56 | (nativeEquiv hBettiComparison X n).toLinearMap.comp (SheafFormsAdapter.FormsAdapter.cohomologyEquiv X n).toLinearMap = |
| 57 | AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap X n := |
| 58 | (inverse_trans_comp (SheafFormsAdapter.FormsAdapter.cohomologyEquiv X n) (originalEquiv hBettiComparison X n)).trans |
| 59 | (originalEquiv_toLinearMap hBettiComparison X n) |
| 60 | |
| 61 | theorem nativeEquiv_filtration (P : AlgebraicGeometry.Foundations.Scheme.SmoothProjective.ProjectivePresentation X.left X.hom) (n : ℕ) (r : ℤ) : |
| 62 | (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.filtration ℂ X n r).map (nativeEquiv hBettiComparison X n).toLinearMap = |
| 63 | AlgebraicGeometry.Comparison.Betti.Target.projectiveBettiHodgeFiltration (AlgebraicGeometry.Comparison.Betti.Target.projectivePresentation X P) n r := by |
| 64 | have h₁ := congrArg (Submodule.map (nativeEquiv hBettiComparison X n).toLinearMap) |
| 65 | (FilteredComplexAdapter.FormsAdapter.cohomologyEquiv_filtration X n r).symm |
| 66 | have h₂ := (Submodule.map_comp (SheafFormsAdapter.FormsAdapter.cohomologyEquiv X n).toLinearMap |
| 67 | (nativeEquiv hBettiComparison X n).toLinearMap (FilteredComplexAdapter.FormsAdapter.filtration66 X n r)).symm |
| 68 | have h₃ := congrArg (fun m => (FilteredComplexAdapter.FormsAdapter.filtration66 X n r).map m) |
| 69 | (nativeEquiv_comp_forms hBettiComparison X n) |
| 70 | exact h₁.trans (h₂.trans (h₃.trans (hBettiComparison.2.2 X P n r))) |
| 71 | |
| 72 | theorem projectiveFiltration_one (P : AlgebraicGeometry.Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (r : ℤ) : |
| 73 | AlgebraicGeometry.Comparison.Betti.Target.projectiveBettiHodgeFiltration P 1 r = |
| 74 | if r ≤ 0 then ⊤ else if r = 1 then P.pureBettiSubspace 1 0 else ⊥ := by |
| 75 | classical |
| 76 | unfold AlgebraicGeometry.Comparison.Betti.Target.projectiveBettiHodgeFiltration |
| 77 | by_cases hr : r ≤ 0 |
| 78 | · simp only [ite_eq_left hr] |
| 79 | · rw [ite_eq_right hr, ite_eq_right hr] |
| 80 | by_cases hr1 : r = 1 |
| 81 | · subst r |
| 82 | rw [ite_eq_right (show ¬ ((1 : ℕ) : ℤ) < 1 by norm_num), ite_eq_left rfl] |
| 83 | apply le_antisymm |
| 84 | · refine iSup_le (fun p => iSup_le (fun hp => ?_)) |
| 85 | have hp1 : p = 1 := by apply Fin.ext; have := p.isLt; dsimp at *; omega |
| 86 | subst p |
| 87 | simp [AlgebraicGeometry.Comparison.Betti.Target.projectivePureBettiInDegree] |
| 88 | · refine le_iSup_of_le (1 : Fin 2) (le_iSup_of_le (by norm_num) ?_) |
| 89 | simp [AlgebraicGeometry.Comparison.Betti.Target.projectivePureBettiInDegree] |
| 90 | · rw [ite_eq_right hr1, ite_eq_left (show ((1 : ℕ) : ℤ) < r by omega)] |
| 91 | |
| 92 | end Betti.ComplexComparison |
| 93 | |
| 94 | variable {K : Type} [Field K] [NumberField K] |
| 95 | {q : ℕ} [Fact q.Prime] {jq : K →+* ℚ_[q]} (A : Geometry.AbelianH1Model K q jq) |
| 96 | |
| 97 | def Geometry.AbelianH1Model.nativeComplexComparison (hBettiComparison : Betti.ComparisonInput) (j : K →+* ℂ) : |
| 98 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℂ (A.complexFiber j).scheme 1 ≃ₗ[ℂ] A.ComplexBetti j := |
| 99 | Betti.ComplexComparison.nativeEquiv hBettiComparison (A.complexFiber j).scheme 1 |
| 100 | |
| 101 | theorem Geometry.AbelianH1Model.nativeComplexComparison_filtration (hBettiComparison : Betti.ComparisonInput) (j : K →+* ℂ) |
| 102 | (P : AlgebraicGeometry.Foundations.Scheme.SmoothProjective.ProjectivePresentation (A.complexFiber j).scheme.left (A.complexFiber j).scheme.hom) |
| 103 | (r : ℤ) : |
| 104 | (AlgebraicGeometry.Crystalline.Cohomology.HodgeFiltrationD.HodgeFiltration.filtration ℂ (A.complexFiber j).scheme 1 r).map |
| 105 | (A.nativeComplexComparison hBettiComparison j).toLinearMap = A.bettiFiltration j P r := |
| 106 | (Betti.ComplexComparison.nativeEquiv_filtration hBettiComparison (A.complexFiber j).scheme P 1 r).trans |
| 107 | (Betti.ComplexComparison.projectiveFiltration_one (A.smoothProjectiveFiber j P) r) |
| 108 | |
| 109 | theorem Geometry.AbelianH1Model.complexDeRham_finite_of_BettiComparison (hBettiComparison : Betti.ComparisonInput) (j : K →+* ℂ) |
| 110 | (P : AlgebraicGeometry.Foundations.Scheme.SmoothProjective.ProjectivePresentation (A.complexFiber j).scheme.left (A.complexFiber j).scheme.hom) : |
| 111 | FiniteDimensional ℂ (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℂ (A.complexFiber j).scheme 1) := by |
| 112 | let := A.complexBetti_finiteDimensional j P |
| 113 | exact (A.nativeComplexComparison hBettiComparison j).symm.finiteDimensional |
| 114 | |
| 115 | end NumberTheory.PadicHodge.GeometricComparison |
| 116 | |
| 117 | namespace NumberTheory.PadicHodge.GeometricComparison.Betti.ComplexComparison |
| 118 | |
| 119 | /-! Naturality of BettiComparison's comparison after the proved native form and Betti universe transports. -/ |
| 120 | |
| 121 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 122 | |
| 123 | theorem ulift_naturality {M N : ModuleCat.{0} ℂ} (f : M ⟶ N) : |
| 124 | (ULift.moduleEquiv : ULift.{1} N ≃ₗ[ℂ] N).toLinearMap.comp |
| 125 | ((ModuleCat.uliftFunctor.{1, 0} ℂ).map f).hom = |
| 126 | f.hom.comp (ULift.moduleEquiv : ULift.{1} M ≃ₗ[ℂ] M).toLinearMap := rfl |
| 127 | |
| 128 | theorem lower_square {M N U V U' V' : Type*} |
| 129 | [AddCommGroup M] [AddCommGroup N] [AddCommGroup U] [AddCommGroup V] |
| 130 | [AddCommGroup U'] [AddCommGroup V'] |
| 131 | [Module ℂ M] [Module ℂ N] [Module ℂ U] [Module ℂ V] [Module ℂ U'] [Module ℂ V'] |
| 132 | (a : M →ₗ[ℂ] N) (b : N →ₗ[ℂ] V) (c : M →ₗ[ℂ] U) (d : U →ₗ[ℂ] V) |
| 133 | (u : U →ₗ[ℂ] U') (v : V →ₗ[ℂ] V') (d' : U' →ₗ[ℂ] V') |
| 134 | (h : b.comp a = d.comp c) (hd : v.comp d = d'.comp u) : |
| 135 | (v.comp b).comp a = d'.comp (u.comp c) := by |
| 136 | rw [LinearMap.comp_assoc, h, ← LinearMap.comp_assoc, hd, LinearMap.comp_assoc] |
| 137 | |
| 138 | theorem module_hom_square {M N U V : ModuleCat.{1} ℂ} |
| 139 | (a : M ⟶ N) (b : N ⟶ V) (c : M ⟶ U) (d : U ⟶ V) |
| 140 | (h : a ≫ b = c ≫ d) : b.hom.comp a.hom = d.hom.comp c.hom := |
| 141 | congrArg (fun f : M ⟶ V => f.hom) h |
| 142 | |
| 143 | theorem lowerMap_naturality (hBettiComparison : ComparisonInput) |
| 144 | {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth X.hom] [IsProper X.hom] |
| 145 | [Smooth Y.hom] [IsProper Y.hom] (f : X ⟶ Y) (n : ℕ) : |
| 146 | (AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap X n).comp (AlgebraicGeometry.Comparison.Betti.OpenForms.algebraicDeRhamPullback f n).hom = |
| 147 | (AlgebraicGeometry.Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f).hom.comp |
| 148 | (AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap Y n) := |
| 149 | by |
| 150 | unfold AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap |
| 151 | exact lower_square (AlgebraicGeometry.Comparison.Betti.OpenForms.algebraicDeRhamPullback f n).hom |
| 152 | (AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.smoothDeRhamBettiMap X n).hom (AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.smoothDeRhamBettiMap Y n).hom |
| 153 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.bettiPullback f n).hom |
| 154 | (AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.bettiDownEquiv Y n).toLinearMap (AlgebraicGeometry.Comparison.Betti.Smooth.ReferenceCongruence.bettiDownEquiv X n).toLinearMap |
| 155 | (AlgebraicGeometry.Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f).hom |
| 156 | (module_hom_square _ _ _ _ (hBettiComparison.2.1 X Y f n)) (ulift_naturality _) |
| 157 | |
| 158 | theorem cancel_comparison_square {M N M' N' U V : Type*} |
| 159 | [AddCommGroup M] [AddCommGroup N] [AddCommGroup M'] [AddCommGroup N'] |
| 160 | [AddCommGroup U] [AddCommGroup V] |
| 161 | [Module ℂ M] [Module ℂ N] [Module ℂ M'] [Module ℂ N'] [Module ℂ U] [Module ℂ V] |
| 162 | (eM : M ≃ₗ[ℂ] M') (eN : N ≃ₗ[ℂ] N') |
| 163 | (cM : M' →ₗ[ℂ] U) (cN : N' →ₗ[ℂ] V) (bM : M →ₗ[ℂ] U) (bN : N →ₗ[ℂ] V) |
| 164 | (f : M →ₗ[ℂ] N) (f' : M' →ₗ[ℂ] N') (g : U →ₗ[ℂ] V) |
| 165 | (hM : cM.comp eM.toLinearMap = bM) (hN : cN.comp eN.toLinearMap = bN) |
| 166 | (he : f'.comp eM.toLinearMap = eN.toLinearMap.comp f) |
| 167 | (hb : bN.comp f = g.comp bM) : cN.comp f' = g.comp cM := by |
| 168 | apply LinearMap.ext |
| 169 | intro x |
| 170 | obtain ⟨y, rfl⟩ := eM.surjective x |
| 171 | change cN (f' (eM y)) = g (cM (eM y)) |
| 172 | rw [show f' (eM y) = eN (f y) from LinearMap.congr_fun he y] |
| 173 | rw [show cN (eN (f y)) = bN (f y) from LinearMap.congr_fun hN (f y), |
| 174 | show cM (eM y) = bM y from LinearMap.congr_fun hM y] |
| 175 | exact LinearMap.congr_fun hb y |
| 176 | |
| 177 | theorem nativeEquiv_naturality (hBettiComparison : ComparisonInput) |
| 178 | {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth X.hom] [IsProper X.hom] |
| 179 | [Smooth Y.hom] [IsProper Y.hom] (f : X ⟶ Y) (n : ℕ) : |
| 180 | (nativeEquiv hBettiComparison X n).toLinearMap.comp (DeRham.Int.pullback f n) = |
| 181 | (AlgebraicGeometry.Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f).hom.comp (nativeEquiv hBettiComparison Y n).toLinearMap := |
| 182 | cancel_comparison_square (SheafFormsAdapter.FormsAdapter.cohomologyEquiv Y n) (SheafFormsAdapter.FormsAdapter.cohomologyEquiv X n) |
| 183 | (nativeEquiv hBettiComparison Y n).toLinearMap (nativeEquiv hBettiComparison X n).toLinearMap |
| 184 | (AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap Y n) (AlgebraicGeometry.Comparison.Betti.Target.smoothDeRhamBettiLinearMap X n) |
| 185 | (AlgebraicGeometry.Comparison.Betti.OpenForms.algebraicDeRhamPullback f n).hom (DeRham.Int.pullback f n) |
| 186 | (AlgebraicGeometry.Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f).hom |
| 187 | (nativeEquiv_comp_forms hBettiComparison Y n) (nativeEquiv_comp_forms hBettiComparison X n) |
| 188 | (LinearMap.ext (fun x => (DeRham.AdapterNaturality.FormsAdapter.cohomologyEquiv_pullback f n x).symm)) |
| 189 | (lowerMap_naturality hBettiComparison f n) |
| 190 | |
| 191 | end NumberTheory.PadicHodge.GeometricComparison.Betti.ComplexComparison |
| 192 | |
| 193 | end |
| 194 | |
| 195 | end OAI |