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.AffinePrincipal.Cohomology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PurityBaseChangeIdeals |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Augmentation |
| 4 | |
| 5 | /-! # Oriented Purity -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.OrientedPurity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The normalized scalar purity coordinate on the actual cohomology |
| 12 | sheaf restricts by the literal quotient map on a principal affine subopen. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.LinearHom |
| 23 | |
| 24 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) (r : Γ(X, U)) |
| 25 | |
| 26 | include hU in |
| 27 | theorem regular {c : ℕ} (s : Fin c → Γ(X, U)) |
| 28 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(X, U) (List.ofFn s)) : |
| 29 | RingTheory.Sequence.IsWeaklyRegular Γ(X, Sections.openSubset U r) |
| 30 | (List.ofFn (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) ∘ s)) := by |
| 31 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 32 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 33 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 34 | exact Koszul.AugmentationBaseChange.regular Γ(X, U) Γ(X, Sections.openSubset U r) s hreg |
| 35 | |
| 36 | variable (N : X.Modules) [N.IsQuasicoherent] (K : ChainComplex X.Modules ℕ) |
| 37 | [∀ i, (K.X i).IsQuasicoherent] |
| 38 | [∀ i, Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 39 | [∀ i, Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 40 | [∀ i, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 41 | [∀ i, Projective ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj (K.X i))] |
| 42 | [∀ i, ((Affine.LinearResolutionPurity.internalComplex N K).X i).IsQuasicoherent] |
| 43 | (M : X.Modules) [M.IsQuasicoherent] |
| 44 | (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) [QuasiIso ε] |
| 45 | (I : Ideal Γ(X, U)) (J : Ideal Γ(X, Sections.openSubset U r)) |
| 46 | (hIJ : I ≤ J.comap (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r))) |
| 47 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ModuleCat.of Γ(X, U) (Γ(X, U) ⧸ I)) |
| 48 | (eM' : (AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj M ≅ |
| 49 | ModuleCat.of Γ(X, Sections.openSubset U r) (Γ(X, Sections.openSubset U r) ⧸ J)) |
| 50 | (he : (Hom.Comparison.chartIso U hU r M).hom ≫ eM'.hom = |
| 51 | (PrincipalComplex.tensorFunctor U r).map eM.hom ≫ ModuleCat.ofHom |
| 52 | (PurityBaseChangeIdeals.Linear.tensorQuotient Γ(X, U) Γ(X, Sections.openSubset U r) I J hIJ)) |
| 53 | {c : ℕ} (s : Fin c → Γ(X, U)) |
| 54 | (hs : Koszul.OrientedTopCohomology.ideal Γ(X, U) s = I) |
| 55 | (ht : Koszul.OrientedTopCohomology.ideal Γ(X, Sections.openSubset U r) |
| 56 | (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) ∘ s) = J) |
| 57 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(X, U) (List.ofFn s)) |
| 58 | (e : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 59 | |
| 60 | include he in |
| 61 | omit [∀ (i : ℕ), ((Affine.LinearResolutionPurity.internalComplex N K).X i).IsQuasicoherent] in |
| 62 | theorem linear_purity |
| 63 | (x : (LinearHomBaseChange.homComplex Γ(X, U) |
| 64 | (Affine.OrientedPurity.resolution U hU K M ε I eM).complex |
| 65 | ((AffineOpen.InternalHom.sections U hU).obj N)).homology c) : |
| 66 | (LinearHomOrientedPurity.iso Γ(X, Sections.openSubset U r) J |
| 67 | (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) ∘ s) ht (regular U hU r s hreg) |
| 68 | (Affine.OrientedPurity.resolution (Sections.openSubset U r) (hU.basicOpen r) K M ε J eM') |
| 69 | ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N) (LinearHom.targetFrame U hU r N e)).hom |
| 70 | ((Cohomology.Comparison.baseChange U hU N K r e c).hom |
| 71 | (1 ⊗ₜ[Γ(X, U)] x)) = |
| 72 | PurityBaseChangeIdeals.Linear.quotientMap Γ(X, U) Γ(X, Sections.openSubset U r) I J hIJ |
| 73 | ((LinearHomOrientedPurity.iso Γ(X, U) I s hs hreg |
| 74 | (Affine.OrientedPurity.resolution U hU K M ε I eM) |
| 75 | ((AffineOpen.InternalHom.sections U hU).obj N) e).hom x) := by |
| 76 | |
| 77 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 78 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 79 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 80 | let P := Affine.OrientedPurity.resolution U hU K M ε I eM |
| 81 | let P' := Affine.OrientedPurity.resolution (Sections.openSubset U r) (hU.basicOpen r) K M ε J eM' |
| 82 | let (i : ℕ) : Module.Free Γ(X, U) (P.complex.X i) := |
| 83 | inferInstanceAs (Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 84 | let (i : ℕ) : Module.Finite Γ(X, U) (P.complex.X i) := |
| 85 | inferInstanceAs (Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X i))) |
| 86 | let eP : ((PrincipalComplex.tensorFunctor U r).mapHomologicalComplex (.down ℕ)).obj |
| 87 | P.complex ≅ P'.complex := PrincipalComplex.chartIso U hU r (.down ℕ) K |
| 88 | have hP := Augmentation.augmentation_square U hU r K M ε I J eM eM' |
| 89 | (ModuleCat.ofHom (PurityBaseChangeIdeals.Linear.tensorQuotient |
| 90 | Γ(X, U) Γ(X, Sections.openSubset U r) I J hIJ)) he |
| 91 | have hp := PurityBaseChangeIdeals.Linear.purity Γ(X, U) Γ(X, Sections.openSubset U r) |
| 92 | I J hIJ s hs ht hreg P P' eP hP ((AffineOpen.InternalHom.sections U hU).obj N) |
| 93 | ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N) e (LinearHom.targetFrame U hU r N e) 1 |
| 94 | x |
| 95 | rw [one_smul] at hp |
| 96 | exact hp |
| 97 | |
| 98 | omit [∀ i, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 99 | [∀ i, Projective ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj (K.X i))] in |
| 100 | theorem comparison_restriction |
| 101 | (z : Γ((Affine.LinearResolutionPurity.internalComplex N K).homology c, U)) : |
| 102 | (Cohomology.Comparison.baseChange U hU N K r e c).hom |
| 103 | (1 ⊗ₜ[Γ(X, U)] (Cohomology.Comparison.comparison U hU N K c).hom z) = |
| 104 | (Cohomology.Comparison.comparison (Sections.openSubset U r) (hU.basicOpen r) N K c).hom |
| 105 | (((Affine.LinearResolutionPurity.internalComplex N K).homology c).presheaf.map |
| 106 | (Sections.inclusion U r).op z) := by |
| 107 | have hn := Cohomology.Comparison.naturality U hU N K r e c |
| 108 | have hx := ConcreteCategory.congr_hom hn (1 ⊗ₜ[Γ(X, U)] z) |
| 109 | change (Cohomology.Comparison.baseChange U hU N K r e c).hom |
| 110 | (1 ⊗ₜ[Γ(X, U)] (Cohomology.Comparison.comparison U hU N K c).hom z) = |
| 111 | (Cohomology.Comparison.comparison (Sections.openSubset U r) (hU.basicOpen r) N K c).hom |
| 112 | (Homology.component U r |
| 113 | ((Affine.LinearResolutionPurity.internalComplex N K).homology c) (1 ⊗ₜ[Γ(X, U)] z)) at hx |
| 114 | rw [Homology.component_tmul, one_smul] at hx |
| 115 | exact hx |
| 116 | |
| 117 | include he in |
| 118 | theorem restriction (z : Γ((Affine.LinearResolutionPurity.internalComplex N K).homology c, U)) : |
| 119 | (Affine.OrientedPurity.iso (Sections.openSubset U r) (hU.basicOpen r) N K M ε J eM' |
| 120 | (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) ∘ s) ht (regular U hU r s hreg) |
| 121 | (LinearHom.targetFrame U hU r N e)).hom |
| 122 | (((Affine.LinearResolutionPurity.internalComplex N K).homology c).presheaf.map |
| 123 | (Sections.inclusion U r).op z) = |
| 124 | PurityBaseChangeIdeals.Linear.quotientMap Γ(X, U) Γ(X, Sections.openSubset U r) I J hIJ |
| 125 | ((Affine.OrientedPurity.iso U hU N K M ε I eM s hs hreg e).hom z) := by |
| 126 | have hp := linear_purity U hU r N K M ε I J hIJ eM eM' he s hs ht hreg e |
| 127 | ((Cohomology.Comparison.comparison U hU N K c).hom z) |
| 128 | have hx := comparison_restriction U hU r N K e z |
| 129 | rw [hx] at hp |
| 130 | exact hp |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.OrientedPurity |