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.FiniteEtaleAdjunctionPairing |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientResidueClass |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientWeight |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.CoefficientLocalClass |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.SectionUnit |
| 6 | |
| 7 | /-! # Etale Point Pairing Data -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointPairingData |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Every coefficient pairing of the actual finite local point class |
| 14 | is section evaluation times the same original scalar point residue. |
| 15 | The affine basis data are the genuine projective parameter chart. -/ |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module Opposite _root_.HomologicalComplex |
| 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 | private theorem reweight {A M : Type*} [SMul A M] |
| 22 | (x y : M) (a b : A) (h : x = a • y) (hab : a = b) : x = b • y := by |
| 23 | rw [← hab] |
| 24 | exact h |
| 25 | |
| 26 | private theorem map_weight {A : Type u} [CommRing A] {M N : ModuleCat.{u} A} |
| 27 | (f : M ⟶ N) (x y : M) (a : A) (h : x = a • y) : f x = a • f y := by |
| 28 | rw [h, map_smul] |
| 29 | |
| 30 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 31 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 32 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 33 | [IsArtinianRing R] [IsLocalRing R] {n c g : ℕ} (hcg : c+g=n+1) |
| 34 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 35 | Projective.LocalAdjunction.ambientAlgebra Projective.ParameterChart.coordinateOrder |
| 36 | attribute [local instance] Finite.FlatCoefficientSections.quotientAlgebra |
| 37 | Finite.FlatCoefficientSections.coefficientAlgebra Finite.FlatCoefficientSections.ambientAlgebra |
| 38 | variable (X Y : Over (Spec (CommRingCat.of R))) [Nonempty X.left] (f : Y ⟶ X) |
| 39 | [IsFinite f.left] [Etale f.left] |
| 40 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n+1)) [IsClosedImmersion i.left] |
| 41 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 42 | [Smooth Y.hom] [IsProper Y.hom] [GeometricallyConnected Y.hom] |
| 43 | [SmoothOfRelativeDimension g X.hom] |
| 44 | (s₀ : Spec (CommRingCat.of R) ⟶ Y.left) (hbase : s₀ ≫ Y.hom = 𝟙 _) |
| 45 | (B : ℕ) (hB : n+2≤B) |
| 46 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R (n+1)).Opens) (hU : IsAffineOpen U) |
| 47 | (hcontains : ⊤ ≤ ((s₀ ≫ f.left) ≫ i.left) ⁻¹ᵁ U) |
| 48 | (k : Fin (n+2)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 49 | (s : Fin c → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) |
| 50 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) s = Projective.LocalAdjunction.ideal X i U hU) |
| 51 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (List.ofFn s)) |
| 52 | (bI : Basis (Fin c) (Projective.LocalAdjunction.quotient X i U hU) (Projective.LocalAdjunction.ideal X i U hU).Cotangent) |
| 53 | (hI : ∀ a, bI a = (Projective.LocalAdjunction.ideal X i U hU).toCotangent |
| 54 | (ConormalKoszulPurity.conormalVectors Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (Projective.LocalAdjunction.ideal X i U hU) s hs a)) |
| 55 | (bQ : Basis (Fin g) (Projective.LocalAdjunction.quotient X i U hU) Ω[Projective.LocalAdjunction.quotient X i U hU⁄R]) |
| 56 | (t : Fin g → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) |
| 57 | (ht : ∀ a, bQ a = KaehlerDifferential.D R (Projective.LocalAdjunction.quotient X i U hU) |
| 58 | (Ideal.Quotient.mk (Projective.LocalAdjunction.ideal X i U hU) (t a))) |
| 59 | (hst : KoszulPartial.Resolution.pointIdeal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) s t = |
| 60 | ((s₀ ≫ f.left) ≫ i.left).ker.ideal ⟨U,hU⟩) |
| 61 | (hregst : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (List.ofFn (Fin.append s t))) |
| 62 | (b : Basis (Fin (n+1)) Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)⁄R]) |
| 63 | (hb : (fun a : Fin (c+g) => b (Fin.cast hcg a)) = |
| 64 | Fin.append (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (s a)) |
| 65 | (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (t a))) |
| 66 | (τ : Type u) [Fintype τ] |
| 67 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 68 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 69 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 70 | |
| 71 | local instance composite_smooth : Smooth (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) := by |
| 72 | change Smooth (i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n+1)).hom) |
| 73 | rw [Over.w i] |
| 74 | infer_instance |
| 75 | local instance composite_proper : IsProper (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) := by |
| 76 | change IsProper (i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n+1)).hom) |
| 77 | rw [Over.w i] |
| 78 | infer_instance |
| 79 | local instance composite_connected : GeometricallyConnected (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) := by |
| 80 | change GeometricallyConnected (i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n+1)).hom) |
| 81 | rw [Over.w i] |
| 82 | infer_instance |
| 83 | |
| 84 | abbrev pairingPoint (x : Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := by |
| 85 | letI : Subsingleton (Spec (CommRingCat.of R)) := Ring.KrullDimLE.subsingleton_primeSpectrum R |
| 86 | let hsec := FiniteEtale.SectionUnit.section_over X Y f i s₀ hbase |
| 87 | letI : IsClosedImmersion (s₀ ≫ f.left) := |
| 88 | isClosedImmersion_of_comp_eq_id (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) (s₀ ≫ f.left) hsec |
| 89 | letI := Finite.MapPureTrace.coefficients_quasicoherent f.left i.left |
| 90 | letI := Finite.MapPureTrace.coefficients_finiteType f.left i.left |
| 91 | let j := ProjectivePoint.Survivor.chart (R := R) (n := n) |
| 92 | let W := PrincipalPoint.Fraction.family U t |
| 93 | let y := ProjectivePoint.CoefficientLocalClass.value i.left (s₀ ≫ f.left) hsec B hB |
| 94 | (Cech.StructurePullbackUnit.coefficients f.left i.left) |
| 95 | (Cech.SectionCoefficientUnit.sheafMap s₀ f.left i.left) U hU s t hst hcg |
| 96 | have hp := Principal.FiniteEtaleAdjunctionPairing.comparison hcg X Y f i j B hB U hU W (c+g) |
| 97 | k hUk s hs hreg bI hI bQ t ht b hb τ x |
| 98 | exact ConcreteCategory.congr_hom hp y |
| 99 | |
| 100 | abbrev scalarImage (x : Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := by |
| 101 | letI : Subsingleton (Spec (CommRingCat.of R)) := Ring.KrullDimLE.subsingleton_primeSpectrum R |
| 102 | let hsec := FiniteEtale.SectionUnit.section_over X Y f i s₀ hbase |
| 103 | letI : IsClosedImmersion (s₀ ≫ f.left) := |
| 104 | isClosedImmersion_of_comp_eq_id (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) (s₀ ≫ f.left) hsec |
| 105 | let H := Supported.CechHomotopyEquivalence.functor (R := Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) |
| 106 | (PrincipalPoint.Fraction.family U t) (c+g) |
| 107 | let S := single ((Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ |
| 108 | ModuleCat.{u} Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) (.up ℕ) c |
| 109 | let e := Projective.PrincipalResidueCoordinates.scalarFrame (c := n+1) (g := 0) |
| 110 | (ProjectivePoint.Survivor.chart (R := R) (n := n)) U hU k hUk b |
| 111 | let mul := Principal.DifferentialSymbol.map R X (Projective.IntrinsicOverlap.Intrinsic.model R (n+1)) i U hU g |
| 112 | (fun a => i.left.app U (t a)) |
| 113 | have hr := CoefficientResidueClass.fixedPoint_scalar f.left i.left s₀ hsec |
| 114 | B hB U hU hcontains k hUk e s t hs hst hreg hregst hcg x |
| 115 | exact map_weight (H.map (S.map mul)) _ _ _ hr |
| 116 | |
| 117 | abbrev weightedResidue (x : Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := by |
| 118 | letI : Subsingleton (Spec (CommRingCat.of R)) := Ring.KrullDimLE.subsingleton_primeSpectrum R |
| 119 | let hsec := FiniteEtale.SectionUnit.section_over X Y f i s₀ hbase |
| 120 | letI : IsClosedImmersion (s₀ ≫ f.left) := |
| 121 | isClosedImmersion_of_comp_eq_id (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) (s₀ ≫ f.left) hsec |
| 122 | have hr := scalarImage (hcg := hcg) (X := X) (Y := Y) (f := f) (i := i) |
| 123 | (s₀ := s₀) (hbase := hbase) (B := B) (hB := hB) (U := U) (hU := hU) |
| 124 | (hcontains := hcontains) (k := k) (hUk := hUk) (s := s) (hs := hs) (hreg := hreg) |
| 125 | (t := t) (hst := hst) (hregst := hregst) (b := b) x |
| 126 | have hw := CoefficientWeight.value f.left i.left s₀ hsec |
| 127 | U hU hcontains s t hst x |
| 128 | change CoefficientResidueClass.weight f.left i.left s₀ hsec |
| 129 | U hU hcontains s t hst x = _ at hw |
| 130 | exact reweight _ _ _ _ hr hw |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointPairingData |