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.Etale.FormDualTrace |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Integral.IntrinsicFormNormalization |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.DeRhamSheafTraceNormalization |
| 4 | |
| 5 | /-! # Etale Form Duality -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.EtaleFormDuality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual source module-form sections are the coefficient dual of |
| 12 | actual target module-form sections. Evaluation at one agrees with the |
| 13 | original global finite étale de Rham trace through its native comparison. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 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 v |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 25 | [IsFinite f.left] [Etale f.left] (U : Y.left.Opens) [Fact (IsAffineOpen U)] |
| 26 | |
| 27 | local instance : Algebra (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 28 | AffineOpen.DeRhamTrace.sectionAlgebra R X Y f U |
| 29 | local instance : IsScalarTower R (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 30 | AffineOpen.DeRhamTrace.sectionTower R X Y f U |
| 31 | local instance : Algebra.Etale (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 32 | AffineOpen.DeRhamTrace.sectionEtale R X Y f U Fact.out |
| 33 | |
| 34 | variable (σ : Type u) [Fintype σ] [LinearOrder σ] |
| 35 | [Algebra (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U)] |
| 36 | [IsScalarTower R (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U)] |
| 37 | [Algebra.Etale (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U)] |
| 38 | |
| 39 | local instance : Algebra (MvPolynomial σ R) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 40 | AffineOpen.DeRhamTrace.polynomialSource R X Y f U σ |
| 41 | local instance : IsScalarTower (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 42 | AffineOpen.DeRhamTrace.polynomialTower R X Y f U σ |
| 43 | local instance : IsScalarTower R (MvPolynomial σ R) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 44 | AffineOpen.DeRhamTrace.polynomialBaseTower R X Y f U σ |
| 45 | local instance : Algebra.Etale (MvPolynomial σ R) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := |
| 46 | AffineOpen.DeRhamTrace.sourceEtale R X Y f U σ |
| 47 | |
| 48 | abbrev sourceSections (n : ℕ) := Γ(GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X n, f.left ⁻¹ᵁ U) |
| 49 | abbrev targetSections (n : ℕ) := Γ(GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R Y n, U) |
| 50 | |
| 51 | local instance sourceScalar (n : ℕ) : Module (AffineOpen.DeRhamTrace.sourceRing R X Y f U) (sourceSections R X Y f U n) := |
| 52 | inferInstanceAs (Module Γ(X.left, f.left ⁻¹ᵁ U) (sourceSections R X Y f U n)) |
| 53 | local instance targetScalar (n : ℕ) : Module (AffineOpen.DeRhamTrace.targetRing R Y U) (targetSections R Y U n) := |
| 54 | inferInstanceAs (Module Γ(Y.left, U) (targetSections R Y U n)) |
| 55 | local instance restrictedScalar (n : ℕ) : Module (AffineOpen.DeRhamTrace.targetRing R Y U) (sourceSections R X Y f U n) := |
| 56 | Module.compHom (sourceSections R X Y f U n) (algebraMap (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U)) |
| 57 | local instance (n : ℕ) : IsScalarTower (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) |
| 58 | (sourceSections R X Y f U n) := IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 59 | |
| 60 | variable [Module.Free (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U)] |
| 61 | [Module.Finite (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U)] |
| 62 | |
| 63 | def equiv (n : ℕ) : sourceSections R X Y f U n ≃ₗ[AffineOpen.DeRhamTrace.targetRing R Y U] |
| 64 | (AffineOpen.DeRhamTrace.sourceRing R X Y f U →ₗ[AffineOpen.DeRhamTrace.targetRing R Y U] targetSections R Y U n) := |
| 65 | ((IntegralComparison.Etale.FormSections.Integral.unitIso R X (f.left ⁻¹ᵁ U) |
| 66 | ((Fact.out : IsAffineOpen U).preimage f.left) σ n).symm.restrictScalars (AffineOpen.DeRhamTrace.targetRing R Y U)).trans |
| 67 | ((IntegralComparison.Etale.FormDualTrace.equiv R (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) σ n).trans |
| 68 | (LinearEquiv.congrRight (IntegralComparison.Etale.FormSections.Integral.unitIso R Y U Fact.out σ n))) |
| 69 | |
| 70 | omit [Fintype σ] in |
| 71 | theorem equiv_unit (n : ℕ) (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R (AffineOpen.DeRhamTrace.sourceRing R X Y f U) n) |
| 72 | (b : AffineOpen.DeRhamTrace.sourceRing R X Y f U) : |
| 73 | equiv R X Y f U σ n (Integral.FormSectionUnit.unit R X n (f.left ⁻¹ᵁ U) ω) b = |
| 74 | Integral.FormSectionUnit.unit R Y n U |
| 75 | (IntegralComparison.Etale.FormDualTrace.equiv R (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) σ n ω b) := by |
| 76 | change Integral.FormSectionUnit.unit R Y n U |
| 77 | (IntegralComparison.Etale.FormDualTrace.equiv R (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) σ n |
| 78 | ((IntegralComparison.Etale.FormSections.Integral.unitIso R X (f.left ⁻¹ᵁ U) |
| 79 | ((Fact.out : IsAffineOpen U).preimage f.left) σ n).symm |
| 80 | ((IntegralComparison.Etale.FormSections.Integral.unitIso R X (f.left ⁻¹ᵁ U) |
| 81 | ((Fact.out : IsAffineOpen U).preimage f.left) σ n) ω)) b) = _ |
| 82 | rw [LinearEquiv.symm_apply_apply] |
| 83 | |
| 84 | variable {ι : Type v} [Fintype ι] |
| 85 | (b : Module.Basis ι (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U)) |
| 86 | |
| 87 | theorem native_trace (n : ℕ) (z : sourceSections R X Y f U n) : |
| 88 | (Integral.IntrinsicFormNormalization.Intrinsic.iso R Y U n).hom (equiv R X Y f U σ n z 1) = |
| 89 | (AffineOpen.DeRhamTrace.map R X Y f U σ b).f n |
| 90 | ((Integral.IntrinsicFormNormalization.Intrinsic.iso R X (f.left ⁻¹ᵁ U) n).hom z) := by |
| 91 | obtain ⟨ω, rfl⟩ := IntegralComparison.Etale.FormSections.Integral.unit_bijective R X (f.left ⁻¹ᵁ U) |
| 92 | ((Fact.out : IsAffineOpen U).preimage f.left) σ n |>.surjective z |
| 93 | rw [equiv_unit, Integral.IntrinsicFormNormalization.Intrinsic.unit, Integral.IntrinsicFormNormalization.Intrinsic.unit] |
| 94 | rw [← IntegralComparison.Etale.FormDualTrace.trace_eq_eval_one R (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) σ b] |
| 95 | have h0 := congrArg (fun a => a.f n) (AffineOpen.DeRhamTrace.map_unit R X Y f U σ b) |
| 96 | have h := ConcreteCategory.congr_hom (C := ModuleCat R) h0 ω |
| 97 | exact h.symm |
| 98 | |
| 99 | variable [IsProper Y.hom] [Smooth Y.hom] |
| 100 | |
| 101 | include b in |
| 102 | theorem global_trace (n : ℕ) (z : sourceSections R X Y f U n) : |
| 103 | (Integral.IntrinsicFormNormalization.Intrinsic.iso R Y U n).hom (equiv R X Y f U σ n z 1) = |
| 104 | ((FiniteEtale.DeRhamSheafTrace.trace R X Y f).f n).hom.app (op U) |
| 105 | ((Integral.IntrinsicFormNormalization.Intrinsic.iso R X (f.left ⁻¹ᵁ U) n).hom z) := by |
| 106 | rw [FiniteEtale.DeRhamSheafTraceNormalization.trace_app_of_chart R X Y f U σ b] |
| 107 | exact native_trace R X Y f U σ b n z |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.EtaleFormDuality |