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.Principal.FiniteEtaleResidueDetection |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.ScalarAction |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.AdditiveSelectedClass |
| 4 | |
| 5 | /-! # Finite Etale Residue Fixed -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleResidueFixed |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual selected finite residue is fixed by its source numerator |
| 12 | on the original nested-pushforward supported total. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 14 | open scoped TensorProduct |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 20 | attribute [local instance] IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 21 | variable (R : Type u) [CommRing R] |
| 22 | (X Y : Over (Spec (CommRingCat.of R))) (f : Y ⟶ X) |
| 23 | [IsFinite f.left] [Etale f.left] [IsProper X.hom] [Smooth X.hom] |
| 24 | {Z : Scheme.{u}} (i : X.left ⟶ Z) [IsClosedImmersion i] |
| 25 | (U : Z.Opens) (hU : IsAffineOpen U) |
| 26 | (hgood : FiniteEtale.TraceBasis.Good R Y X f (i ⁻¹ᵁ U)) (g : ℕ) |
| 27 | private abbrev ambientRing : Type u := Γ(Z,U) |
| 28 | private abbrev finiteRing : Type u := IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U |
| 29 | private abbrev scalarImage : Z.Modules := |
| 30 | (Scheme.Modules.pushforward i).obj (SheafOfModules.unit X.left.ringCatSheaf) |
| 31 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleResidueFixed.ambientRing U |
| 32 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U |
| 33 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleResidueFixed.finiteRing (f := f) (i := i) (U := U) |
| 34 | local notation "N" => OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g |
| 35 | local notation "T" => OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FormSheafDuality.source R Y X f g |
| 36 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars.modules i U hU N |
| 37 | local instance targetBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i ⁻¹ᵁ U) |
| 38 | local instance sourceBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 39 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 40 | local instance baseTower : IsScalarTower R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 41 | AffineOpen.DeRhamTrace.sectionTower R Y X f (i ⁻¹ᵁ U) |
| 42 | variable {ι : Type u} [LinearOrder ι] (W : ι → SectionPresheaf.Index U) (c q : ℕ) |
| 43 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleResidueDetection.ambientFunctor U W c q |
| 44 | local notation "FQ" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedSupportedScalars.functor i U W c q |
| 45 | local notation "FG" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedSupportedScalars.additive i U W c q |
| 46 | variable [Algebra (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) R] |
| 47 | (ε : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U →ₐ[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U] R) (lift : R → ambientRing U) |
| 48 | (hlift : ∀ r, algebraMap (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) R (i.app U (lift r)) = r) |
| 49 | (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) g) |
| 50 | (r : (FiniteEtaleResidueDetection.ambientFunctor U W c q).obj |
| 51 | (SectionPresheaf.modules U hU (scalarImage (X := X) (i := i)))) |
| 52 | (hscalar : ∀ s : ambientRing U, algebraMap (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) R (i.app U s) = 0 → s • r = 0) |
| 53 | |
| 54 | include hlift hscalar in |
| 55 | theorem fixed (z : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) |
| 56 | (hz : |
| 57 | letI : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 58 | letI : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 59 | letI : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 60 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 61 | (1 ⊗ₜ[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U] z : R ⊗[IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U] IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) = |
| 62 | FiniteEtale.FiberSectionTrace.component (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) R ε) |
| 63 | (he : ε z = 1) : |
| 64 | (F).map (PrincipalSource.OpenFixedClass.scalar f.left i U hU |
| 65 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R Y g) z) |
| 66 | ((F).map (PushforwardSection.map i U hU T |
| 67 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 68 | (z • OrdinaryFormScalars.Ordinary.map R Q B g ω))) r) = |
| 69 | (F).map (PushforwardSection.map i U hU T |
| 70 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 71 | (z • OrdinaryFormScalars.Ordinary.map R Q B g ω))) r := by |
| 72 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 73 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 74 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 75 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 76 | let e := FiniteEtaleFormTensor.iso R X Y f i U hU hgood g |
| 77 | let d := ClosedScalars.restrictionIso i U hU N |
| 78 | let mN := PushforwardSection.map i U hU N |
| 79 | (Integral.FormSectionUnit.unit R X g (i ⁻¹ᵁ U) ω) |
| 80 | let y : (FQ).obj P := (F).map d.inv ((F).map mN r) |
| 81 | have hy (s : Q) (hs : algebraMap Q R s = 0) : |
| 82 | (FG).map (FiniteEtale.PresheafTrace.scalar Q P s) y = 0 := by |
| 83 | obtain ⟨s₀, hs₀⟩ := i.app_surjective U hU s |
| 84 | change (FQ).map (FiniteEtale.PresheafTrace.scalar Q P s) y = 0 |
| 85 | rw [← hs₀, ClosedSupportedScalars.scalar_map] |
| 86 | have hk : algebraMap Q R (i.app U s₀) = 0 := by simpa only [hs₀] using hs |
| 87 | calc |
| 88 | s₀ • y = (F).map d.inv ((F).map mN (s₀ • r)) := by simp only [y, map_smul] |
| 89 | _ = 0 := by rw [hscalar s₀ hk, map_zero, map_zero] |
| 90 | let mS (b : B) := PushforwardSection.map i U hU T |
| 91 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 92 | (b • OrdinaryFormScalars.Ordinary.map R Q B g ω)) |
| 93 | have inserted (b : B) : (F).map e.hom ((F).map (mS b) r) = |
| 94 | (FG).map (FiniteEtale.PresheafTrace.insertion Q B P b) y := by |
| 95 | have h := ConcreteCategory.congr_hom (congrArg (F).map |
| 96 | (FiniteEtaleFormInsertion.comparison R X Y f i U hU hgood g b ω)) r |
| 97 | simp only [Functor.map_comp, ConcreteCategory.comp_apply] at h |
| 98 | convert h using 1; rfl |
| 99 | have hs : mS z ≫ PrincipalSource.OpenFixedClass.scalar f.left i U hU |
| 100 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R Y g) z = mS (z*z) := by |
| 101 | dsimp only [mS] |
| 102 | rw [PrincipalSource.ScalarAction.symbol] |
| 103 | have hu := (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U))).map_smul z |
| 104 | (z • OrdinaryFormScalars.Ordinary.map R Q B g ω) |
| 105 | rw [smul_smul] at hu |
| 106 | rw [← hu] |
| 107 | change (F).map _ ((F).map (mS z) r) = (F).map (mS z) r |
| 108 | rw [← ConcreteCategory.comp_apply, ← Functor.map_comp, hs] |
| 109 | apply (ConcreteCategory.bijective_of_isIso ((F).map e.hom)).injective |
| 110 | rw [inserted, inserted] |
| 111 | exact FiniteEtale.AdditiveSelectedClass.fixed Q B R P (FG) ε |
| 112 | (fun x => i.app U (lift x)) hlift y hy z hz he |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleResidueFixed |