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.NumberTheory.PadicHodge.IntegralComparison.LinearPurityBaseChange |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Hom |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LinearResolutionPurity |
| 4 | import Mathlib.RingTheory.Flat.Localization |
| 5 | |
| 6 | /-! # Linear Hom -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.LinearHom |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The canonical linear Hom scalar-extension map is the original |
| 13 | principal-open restriction of the internal-Hom sheaf, on the full complex. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.HomEvaluation |
| 24 | |
| 25 | theorem tensor_ext {R S M T : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 26 | [AddCommGroup M] [Module R M] [AddCommGroup T] [Module S T] |
| 27 | {f g : S ⊗[R] M →ₗ[S] T} (h : ∀ a m, f (a ⊗ₜ[R] m) = g (a ⊗ₜ[R] m)) : f = g := by |
| 28 | apply LinearMap.ext |
| 29 | intro x |
| 30 | induction x using TensorProduct.inductionOn with |
| 31 | | add x y hx hy => simp only [map_add, hx, hy] |
| 32 | | tmul a m => exact h a m |
| 33 | |
| 34 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) (r : Γ(X, U)) |
| 35 | |
| 36 | abbrev chartComplex (K : ChainComplex X.Modules ℕ) := |
| 37 | ((AffineOpen.InternalHom.sections U hU).mapHomologicalComplex (.down ℕ)).obj K |
| 38 | |
| 39 | variable (N : X.Modules) [N.IsQuasicoherent] (K : ChainComplex X.Modules ℕ) |
| 40 | [∀ i, (K.X i).IsQuasicoherent] |
| 41 | [∀ i, Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 42 | [∀ i, Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 43 | [∀ i, ((Affine.LinearResolutionPurity.internalComplex N K).X i).IsQuasicoherent] |
| 44 | (e : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 45 | |
| 46 | def targetFrame : |
| 47 | (AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N ≅ |
| 48 | ModuleCat.of Γ(X, Sections.openSubset U r) Γ(X, Sections.openSubset U r) := |
| 49 | LinearHomBaseChange.compatibleFrame Γ(X, U) Γ(X, Sections.openSubset U r) _ _ e |
| 50 | (AffinePrincipal.Hom.Comparison.chartIso U hU r N) |
| 51 | |
| 52 | def linearIso : |
| 53 | ((PrincipalComplex.tensorFunctor U r).mapHomologicalComplex (.up ℕ)).obj |
| 54 | (LinearHomBaseChange.homComplex Γ(X, U) (chartComplex U hU K) |
| 55 | ((AffineOpen.InternalHom.sections U hU).obj N)) ≅ |
| 56 | LinearHomBaseChange.homComplex Γ(X, Sections.openSubset U r) |
| 57 | (chartComplex (Sections.openSubset U r) (hU.basicOpen r) K) |
| 58 | ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N) := by |
| 59 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 60 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 61 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 62 | let (i : ℕ) : Module.Free Γ(X, U) ((chartComplex U hU K).X i) := |
| 63 | inferInstanceAs (Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 64 | let (i : ℕ) : Module.Finite Γ(X, U) ((chartComplex U hU K).X i) := |
| 65 | inferInstanceAs (Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 66 | exact LinearHomBaseChange.complexIso Γ(X, U) Γ(X, Sections.openSubset U r) |
| 67 | (chartComplex U hU K) (chartComplex (Sections.openSubset U r) (hU.basicOpen r) K) |
| 68 | (PrincipalComplex.chartIso U hU r (.down ℕ) K) _ _ e (targetFrame U hU r N e) |
| 69 | |
| 70 | omit [∀ i, Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 71 | [∀ i, Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] in |
| 72 | theorem chart_component (i : ℕ) : |
| 73 | (PrincipalComplex.chartIso U hU r (.down ℕ) K).hom.f i = |
| 74 | (AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom := by |
| 75 | apply ModuleCat.hom_ext |
| 76 | apply tensor_ext |
| 77 | intro a x |
| 78 | obtain ⟨m, rfl⟩ := (ConcreteCategory.bijective_of_isIso |
| 79 | (Affine.ChartSections.iso U hU (K.X i)).hom).surjective x |
| 80 | exact (PrincipalComplex.chartIso_tmul U hU r (.down ℕ) K i a m).trans |
| 81 | (AffinePrincipal.Hom.Comparison.chartIso_tmul U hU r (K.X i) a m).symm |
| 82 | |
| 83 | theorem sectionComplexIso_square : |
| 84 | ((PrincipalComplex.tensorFunctor U r).mapHomologicalComplex (.up ℕ)).map |
| 85 | (Affine.LinearResolutionPurity.sectionComplexIso U hU N K).hom ≫ |
| 86 | (linearIso U hU r N K e).hom = |
| 87 | (PrincipalComplex.iso U hU r (.up ℕ) |
| 88 | (Affine.LinearResolutionPurity.internalComplex N K)).hom ≫ |
| 89 | (Affine.LinearResolutionPurity.sectionComplexIso |
| 90 | (Sections.openSubset U r) (hU.basicOpen r) N K).hom := by |
| 91 | let : MulAction Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj N) := |
| 92 | (ModuleCat.isModule _).toDistribMulAction.toMulAction |
| 93 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 94 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 95 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 96 | let (i : ℕ) : Module.Free Γ(X, U) ((chartComplex U hU K).X i) := |
| 97 | inferInstanceAs (Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 98 | let (i : ℕ) : Module.Finite Γ(X, U) ((chartComplex U hU K).X i) := |
| 99 | inferInstanceAs (Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 100 | apply Hom.ext |
| 101 | funext i |
| 102 | apply ModuleCat.hom_ext |
| 103 | apply tensor_ext |
| 104 | intro a q |
| 105 | change Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X i) N, U) at q |
| 106 | apply ModuleCat.hom_ext |
| 107 | apply LinearMap.ext |
| 108 | intro z |
| 109 | obtain ⟨z, rfl⟩ := (ConcreteCategory.bijective_of_isIso |
| 110 | (AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom).surjective z |
| 111 | induction z using TensorProduct.inductionOn with |
| 112 | | add z w hz hw => simpa only [map_add] using congrArg₂ (· + ·) hz hw |
| 113 | | tmul b m => |
| 114 | change (LinearHomBaseChange.component Γ(X, U) Γ(X, Sections.openSubset U r) |
| 115 | (chartComplex U hU K) (chartComplex (Sections.openSubset U r) (hU.basicOpen r) K) |
| 116 | (PrincipalComplex.chartIso U hU r (.down ℕ) K) _ _ e |
| 117 | (targetFrame U hU r N e) i (a ⊗ₜ[Γ(X, U)] Affine.HomEvaluation.chartEvaluation (K.X i) N U hU q)) |
| 118 | ((AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom |
| 119 | (b ⊗ₜ[Γ(X, U)] m)) = |
| 120 | Affine.HomEvaluation.chartEvaluation (K.X i) N (Sections.openSubset U r) (hU.basicOpen r) |
| 121 | (a • (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X i) N).presheaf.map (Sections.inclusion U r).op q) |
| 122 | ((AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom (b ⊗ₜ[Γ(X, U)] m)) |
| 123 | have hl := LinearHomBaseChange.component_evaluation_literal |
| 124 | Γ(X, U) Γ(X, Sections.openSubset U r) (chartComplex U hU K) |
| 125 | (chartComplex (Sections.openSubset U r) (hU.basicOpen r) K) |
| 126 | (PrincipalComplex.chartIso U hU r (.down ℕ) K) _ _ e |
| 127 | (AffinePrincipal.Hom.Comparison.chartIso U hU r N) i a b |
| 128 | (Affine.HomEvaluation.chartEvaluation (K.X i) N U hU q) m |
| 129 | have hc := ConcreteCategory.congr_hom (chart_component U hU r K i) |
| 130 | (b ⊗ₜ[Γ(X, U)] m) |
| 131 | have hl' := (congrArg (fun z => |
| 132 | (LinearHomBaseChange.component Γ(X, U) Γ(X, Sections.openSubset U r) |
| 133 | (chartComplex U hU K) (chartComplex (Sections.openSubset U r) (hU.basicOpen r) K) |
| 134 | (PrincipalComplex.chartIso U hU r (.down ℕ) K) _ _ e |
| 135 | (targetFrame U hU r N e) i |
| 136 | (a ⊗ₜ[Γ(X, U)] Affine.HomEvaluation.chartEvaluation (K.X i) N U hU q)) z) hc).symm.trans hl |
| 137 | refine hl'.trans ?_ |
| 138 | have hs := (((AffineOpen.LinearHom.comparison (Sections.openSubset U r) (hU.basicOpen r) N).app |
| 139 | (op (K.X i))).hom).map_smul a |
| 140 | ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X i) N).presheaf.map (Sections.inclusion U r).op q) |
| 141 | have hse := ConcreteCategory.congr_hom hs |
| 142 | ((AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom (b ⊗ₜ[Γ(X, U)] m)) |
| 143 | change (AffinePrincipal.Hom.Comparison.chartIso U hU r N).hom |
| 144 | ((a * b) ⊗ₜ[Γ(X, U)] Affine.HomEvaluation.chartEvaluation (K.X i) N U hU q m) = |
| 145 | Affine.HomEvaluation.chartEvaluation (K.X i) N (Sections.openSubset U r) (hU.basicOpen r) |
| 146 | (a • (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X i) N).presheaf.map (Sections.inclusion U r).op q) |
| 147 | ((AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom (b ⊗ₜ[Γ(X, U)] m)) |
| 148 | erw [hse] |
| 149 | change _ = a • Affine.HomEvaluation.chartEvaluation (K.X i) N (Sections.openSubset U r) (hU.basicOpen r) |
| 150 | ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X i) N).presheaf.map (Sections.inclusion U r).op q) |
| 151 | ((AffinePrincipal.Hom.Comparison.chartIso U hU r (K.X i)).hom (b ⊗ₜ[Γ(X, U)] m)) |
| 152 | rw [AffinePrincipal.Hom.Comparison.comparison_tmul, ← map_smul, |
| 153 | TensorProduct.smul_tmul', smul_eq_mul] |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.LinearHom |