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.IntrinsicDeRham.SectionUnit |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.DeRhamTraceCoordinates |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 6 | |
| 7 | /-! # De Rham Trace -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.DeRhamTrace |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The finite étale trace on the original sheaf de Rham sections over |
| 14 | an actual affine open where the coordinate algebra is free. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.IntrinsicDeRham.SectionUnit.Intrinsic |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] |
| 23 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 24 | [IsFinite f.left] [Etale f.left] (U : Y.left.Opens) |
| 25 | |
| 26 | abbrev targetRing := IntrinsicDeRham.SectionUnit.Intrinsic.ring R Y U |
| 27 | abbrev sourceRing := IntrinsicDeRham.SectionUnit.Intrinsic.ring R X (f.left ⁻¹ᵁ U) |
| 28 | |
| 29 | @[instance_reducible] |
| 30 | def sectionAlgebra : Algebra (targetRing R Y U) (sourceRing R X Y f U) := |
| 31 | (OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo.DeRhamPullback.sectionPullback f U).toRingHom.toAlgebra |
| 32 | |
| 33 | local instance : Algebra (targetRing R Y U) (sourceRing R X Y f U) := sectionAlgebra R X Y f U |
| 34 | |
| 35 | local instance sectionTower : IsScalarTower R (targetRing R Y U) (sourceRing R X Y f U) := |
| 36 | IsScalarTower.of_algebraMap_eq (fun r => ((OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo.DeRhamPullback.sectionPullback f U).commutes r).symm) |
| 37 | |
| 38 | theorem sectionEtale (hU : IsAffineOpen U) : |
| 39 | Algebra.Etale (targetRing R Y U) (sourceRing R X Y f U) := by |
| 40 | change (f.left.app U).hom.Etale |
| 41 | rw [Scheme.Hom.app_eq_appLE] |
| 42 | exact f.left.etale_appLE hU (hU.preimage f.left) le_rfl |
| 43 | |
| 44 | variable [Fact (IsAffineOpen U)] |
| 45 | |
| 46 | local notation "hU" => (Fact.out : IsAffineOpen U) |
| 47 | |
| 48 | variable (σ : Type u) [Fintype σ] [LinearOrder σ] |
| 49 | [Algebra (MvPolynomial σ R) (targetRing R Y U)] |
| 50 | [IsScalarTower R (MvPolynomial σ R) (targetRing R Y U)] |
| 51 | [Algebra.Etale (MvPolynomial σ R) (targetRing R Y U)] |
| 52 | |
| 53 | local instance polynomialSource : Algebra (MvPolynomial σ R) (sourceRing R X Y f U) := |
| 54 | ((algebraMap (targetRing R Y U) (sourceRing R X Y f U)).comp |
| 55 | (algebraMap (MvPolynomial σ R) (targetRing R Y U))).toAlgebra |
| 56 | |
| 57 | local instance polynomialTower : |
| 58 | IsScalarTower (MvPolynomial σ R) (targetRing R Y U) (sourceRing R X Y f U) := |
| 59 | IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 60 | |
| 61 | local instance polynomialBaseTower : IsScalarTower R (MvPolynomial σ R) (sourceRing R X Y f U) := |
| 62 | IsScalarTower.of_algebraMap_eq (fun r => by |
| 63 | change algebraMap R (sourceRing R X Y f U) r = |
| 64 | algebraMap (targetRing R Y U) (sourceRing R X Y f U) |
| 65 | (algebraMap (MvPolynomial σ R) (targetRing R Y U) (algebraMap R (MvPolynomial σ R) r)) |
| 66 | rw [← IsScalarTower.algebraMap_apply R (MvPolynomial σ R) (targetRing R Y U)] |
| 67 | exact ((OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo.DeRhamPullback.sectionPullback f U).commutes r).symm) |
| 68 | |
| 69 | local instance sourceEtale : Algebra.Etale (MvPolynomial σ R) (sourceRing R X Y f U) := by |
| 70 | let : Algebra.Etale (targetRing R Y U) (sourceRing R X Y f U) := sectionEtale R X Y f U hU |
| 71 | exact Algebra.Etale.comp (MvPolynomial σ R) (targetRing R Y U) (sourceRing R X Y f U) |
| 72 | |
| 73 | variable {ι : Type v} [Fintype ι] (b : Module.Basis ι (targetRing R Y U) (sourceRing R X Y f U)) |
| 74 | |
| 75 | def map : IntrinsicDeRham.SectionUnit.Intrinsic.sections R X (f.left ⁻¹ᵁ U) ⟶ IntrinsicDeRham.SectionUnit.Intrinsic.sections R Y U := |
| 76 | (IntrinsicDeRham.SectionUnit.Intrinsic.iso R X (f.left ⁻¹ᵁ U) ((Fact.out : IsAffineOpen U).preimage f.left) σ).inv ≫ |
| 77 | IntegralComparison.Etale.DeRhamTrace.trace R (targetRing R Y U) (sourceRing R X Y f U) σ b ≫ |
| 78 | (IntrinsicDeRham.SectionUnit.Intrinsic.iso R Y U hU σ).hom |
| 79 | |
| 80 | theorem map_unit : |
| 81 | IntrinsicDeRham.SectionUnit.Intrinsic.unit R X (f.left ⁻¹ᵁ U) ≫ map R X Y f U σ b = |
| 82 | IntegralComparison.Etale.DeRhamTrace.trace R (targetRing R Y U) (sourceRing R X Y f U) σ b ≫ |
| 83 | IntrinsicDeRham.SectionUnit.Intrinsic.unit R Y U := by |
| 84 | change (IntrinsicDeRham.SectionUnit.Intrinsic.iso R X (f.left ⁻¹ᵁ U) ((Fact.out : IsAffineOpen U).preimage f.left) σ).hom ≫ _ = _ |
| 85 | simp only [map, Iso.hom_inv_id_assoc] |
| 86 | rfl |
| 87 | |
| 88 | variable (τ : Type u) [Fintype τ] [LinearOrder τ] |
| 89 | [Algebra (MvPolynomial τ R) (targetRing R Y U)] |
| 90 | [IsScalarTower R (MvPolynomial τ R) (targetRing R Y U)] |
| 91 | [Algebra.Etale (MvPolynomial τ R) (targetRing R Y U)] |
| 92 | {κ : Type w} [Fintype κ] |
| 93 | (c : Module.Basis κ (targetRing R Y U) (sourceRing R X Y f U)) |
| 94 | |
| 95 | theorem map_coordinate_independent : map R X Y f U σ b = map R X Y f U τ c := by |
| 96 | have ht := IntegralComparison.Etale.DeRhamTraceCoordinates.trace_coordinate_independent R |
| 97 | (targetRing R Y U) (sourceRing R X Y f U) σ b τ c |
| 98 | unfold map |
| 99 | rw [ht] |
| 100 | rfl |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.DeRhamTrace |