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.FiniteEtaleFormTensor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PushforwardSection |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionTransformationAtOne |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.FormCoherence |
| 5 | |
| 6 | /-! # Finite Etale Form Insertion -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormInsertion |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The complete principal diagram of the actual source differential |
| 13 | symbol is tensor insertion of its coefficient into the corresponding |
| 14 | target symbol. Equality at the unit open extends by quasicoherence. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | open scoped TensorProduct |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | universe u |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 22 | attribute [local instance] IntegralComparison.Finite.FlatCoefficientSections.quotientAlgebra IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra IntegralComparison.Finite.FlatCoefficientSections.ambientAlgebra |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | (X Y : Over (Spec (CommRingCat.of R))) (f : Y ⟶ X) |
| 25 | [IsFinite f.left] [Etale f.left] [IsProper X.hom] [Smooth X.hom] |
| 26 | {Z : Scheme.{u}} (i : X.left ⟶ Z) [IsClosedImmersion i] |
| 27 | (U : Z.Opens) (hU : IsAffineOpen U) |
| 28 | (hgood : FiniteEtale.TraceBasis.Good R Y X f (i ⁻¹ᵁ U)) |
| 29 | (g : ℕ) |
| 30 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U |
| 31 | private abbrev finiteRing : Type u := IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U |
| 32 | private abbrev scalarImage : Z.Modules := |
| 33 | (Scheme.Modules.pushforward i).obj (SheafOfModules.unit X.left.ringCatSheaf) |
| 34 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormInsertion.finiteRing (f := f) (i := i) (U := U) |
| 35 | local notation "N" => OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g |
| 36 | local notation "S" => OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FormSheafDuality.source R Y X f g |
| 37 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormInsertion.scalarImage (X := X) (i := i) |
| 38 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars.modules i U hU N |
| 39 | local notation "r₁" => op (OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOne.object U) |
| 40 | local instance targetBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X (i ⁻¹ᵁ U) |
| 41 | local instance sourceBase : Algebra R (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 42 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R Y (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 43 | local instance baseTower : IsScalarTower R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 44 | AffineOpen.DeRhamTrace.sectionTower R Y X f (i ⁻¹ᵁ U) |
| 45 | |
| 46 | theorem comparison (b : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) |
| 47 | (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) g) : |
| 48 | PushforwardSection.map i U hU S |
| 49 | (Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 50 | (b • OrdinaryFormScalars.Ordinary.map R Q B g ω)) ≫ |
| 51 | (FiniteEtaleFormTensor.iso R X Y f i U hU hgood g).hom = |
| 52 | PushforwardSection.map i U hU N |
| 53 | (Integral.FormSectionUnit.unit R X g (i ⁻¹ᵁ U) ω) ≫ |
| 54 | (ClosedScalars.restrictionIso i U hU N).inv ≫ |
| 55 | (FiniteEtaleTraceCoordinates.forget i U).map |
| 56 | (FiniteEtale.PresheafTrace.insertion Q B P b) := by |
| 57 | let : Smooth Y.hom := by rw [← Over.w f]; infer_instance |
| 58 | let : IsProper Y.hom := by rw [← Over.w f]; infer_instance |
| 59 | let : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := hgood.2.2 |
| 60 | let : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := f.left.finite_app _ hgood.1 |
| 61 | let : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f.left i U) := |
| 62 | AffineOpen.DeRhamTrace.sectionEtale R Y X f (i ⁻¹ᵁ U) hgood.1 |
| 63 | let e := FiniteEtaleFormTensor.iso R X Y f i U hU hgood g |
| 64 | let ωS := Integral.FormSectionUnit.unit R Y g (f.left ⁻¹ᵁ (i ⁻¹ᵁ U)) |
| 65 | (b • OrdinaryFormScalars.Ordinary.map R Q B g ω) |
| 66 | let ωN := Integral.FormSectionUnit.unit R X g (i ⁻¹ᵁ U) ω |
| 67 | let α := PushforwardSection.map i U hU S ωS ≫ e.hom |
| 68 | let β := PushforwardSection.map i U hU N ωN ≫ |
| 69 | (ClosedScalars.restrictionIso i U hU N).inv ≫ |
| 70 | (FiniteEtaleTraceCoordinates.forget i U).map |
| 71 | (FiniteEtale.PresheafTrace.insertion Q B P b) |
| 72 | have hα : α.app r₁ (AtOne.equiv U M (1 : Q)) = |
| 73 | b ⊗ₜ[Q] ClosedAtOne.equiv i U N ωN := by |
| 74 | change e.hom.app r₁ |
| 75 | ((PushforwardSection.map i U hU S ωS).app r₁ |
| 76 | (AtOne.equiv U M (1 : Q))) = _ |
| 77 | rw [PushforwardSection.atOne, one_smul] |
| 78 | exact FiniteEtaleFormTensor.unit R X Y f i U hU hgood g b ω |
| 79 | have hβ : β.app r₁ (AtOne.equiv U M (1 : Q)) = |
| 80 | b ⊗ₜ[Q] ClosedAtOne.equiv i U N ωN := by |
| 81 | change b ⊗ₜ[Q] |
| 82 | (show (P).obj r₁ from |
| 83 | (ClosedScalars.restrictionIso i U hU N).inv.app r₁ |
| 84 | ((PushforwardSection.map i U hU N ωN).app r₁ |
| 85 | (AtOne.equiv U M (1 : Q)))) = _ |
| 86 | rw [PushforwardSection.atOne, one_smul] |
| 87 | rfl |
| 88 | have hone := hα.trans hβ.symm |
| 89 | have hcomponent : α.app r₁ = β.app r₁ := by |
| 90 | apply ModuleCat.hom_ext |
| 91 | apply LinearMap.ext |
| 92 | intro x |
| 93 | obtain ⟨y, rfl⟩ := (AtOne.equiv U M).surjective x |
| 94 | obtain ⟨a, rfl⟩ := i.app_surjective U hU y |
| 95 | have hm : (i.app U a : Γ(M, U)) = a • (show Γ(M, U) from (1 : Q)) := by |
| 96 | change i.app U a = i.app U a * 1 |
| 97 | exact (mul_one _).symm |
| 98 | rw [hm, map_smul, map_smul, map_smul, hone] |
| 99 | rfl |
| 100 | let : (SheafOfModules.unit X.left.ringCatSheaf).IsQuasicoherent := |
| 101 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 102 | let : (M).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom i |
| 103 | let := IntegralComparison.Smooth.FormCoherence.Integral.quasicoherent R Y g |
| 104 | let : (S).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom f.left |
| 105 | let : ((Scheme.Modules.pushforward i).obj S).IsQuasicoherent := |
| 106 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom i |
| 107 | change α = β |
| 108 | apply (cancel_mono e.inv).mp |
| 109 | change (PushforwardSection.map i U hU S ωS ≫ e.hom) ≫ e.inv = β ≫ e.inv |
| 110 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 111 | apply SectionTransformationAtOne.Ext.ext_atOne U hU M ((Scheme.Modules.pushforward i).obj S) |
| 112 | simpa only [α, NatTrans.comp_app, Category.assoc, Iso.hom_inv_id_app, Category.comp_id] using |
| 113 | congrArg (fun a => a ≫ e.inv.app r₁) hcomponent |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleFormInsertion |