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.FiniteEtale.AdjunctionTrace |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.MapCoefficientPurity |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ProjectiveFormTrace |
| 4 | |
| 5 | /-! # Proper Trace Base -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.ProperTraceBase |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The proper source trace uses the target projective embedding and |
| 12 | actual finite coefficient algebra. The trace is the original Serre pairing evaluated at the actual unit. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 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 v |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TopTracePairing OAI.NumberTheory.PadicHodge.IntegralComparison.NegativeTwistResidueNaturality |
| 22 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 23 | [IsArtinianRing R] [IsLocalRing R] {n : ℕ} |
| 24 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 25 | variable (X Y : Over (Spec (CommRingCat.of R))) [Nonempty X.left] (f : Y ⟶ X) |
| 26 | [IsFinite f.left] [Etale f.left] |
| 27 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)) [IsClosedImmersion i.left] |
| 28 | (B : ℕ) (hB : n + 2 ≤ B) (g : ℕ) |
| 29 | [SmoothOfRelativeDimension g X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 30 | |
| 31 | local instance composite_dimension : SmoothOfRelativeDimension g |
| 32 | (i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) := by |
| 33 | change SmoothOfRelativeDimension g (i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)).hom) |
| 34 | rw [Over.w i] |
| 35 | infer_instance |
| 36 | |
| 37 | include X i in |
| 38 | omit [Module.Injective R R] [IsArtinianRing R] [IsLocalRing R] [IsProper X.hom] [GeometricallyConnected X.hom] in |
| 39 | theorem degree : g + (n + 1 - g) = n + 1 := by |
| 40 | have h := IntegralComparison.Smooth.ClosedDimension.projective i.left g |
| 41 | simp only [Fintype.card_fin] at h |
| 42 | omega |
| 43 | |
| 44 | include X i in |
| 45 | omit [Module.Injective R R] [IsArtinianRing R] [IsLocalRing R] [IsProper X.hom] [GeometricallyConnected X.hom] in |
| 46 | theorem dimension_le : g ≤ n + 1 := Nat.le.intro (degree X i g) |
| 47 | |
| 48 | local instance : (ProjectiveCoefficient.HomLocal.coefficient X f.left i).IsQuasicoherent := |
| 49 | Finite.MapPureTrace.coefficients_quasicoherent f.left i.left |
| 50 | local instance : (ProjectiveCoefficient.HomLocal.coefficient X f.left i).IsFiniteType := |
| 51 | Finite.MapPureTrace.coefficients_finiteType f.left i.left |
| 52 | |
| 53 | abbrev cohomology : AddCommGrpCat.{u} := |
| 54 | (ProjectiveRefinement.Serre.cohomologyFunctor (R := R) (σ := Fin (n + 2)) g).obj |
| 55 | (ProjectiveFinite.EtaleAdjunction.sourceForms X Y f i g) |
| 56 | |
| 57 | def coefficientPairing := Projective.PureTrace.pairing (ProjectiveCoefficient.HomLocal.coefficient X f.left i) |
| 58 | B n (Fintype.card_fin (n + 2)) hB (n + 1 - g) |
| 59 | (Finite.MapCoefficientPurity.exactAt f.left i.left B n (Fintype.card_fin (n + 2)) hB g) |
| 60 | g (degree X i g) |
| 61 | |
| 62 | def coefficientTrace := SerreUnitTrace.trace (Projective.TopTracePairing.coefficientRing R) |
| 63 | (coefficientPairing X Y f i B hB g) |
| 64 | (Cech.StructurePullbackUnit.unit f.left i.left |
| 65 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) |
| 66 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n + 2))) |
| 67 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.iSup_coordinateOpenCover_eq_top (R := R) (σ := Fin (n + 2)))) |
| 68 | |
| 69 | def trace : cohomology X Y f i g ⟶ AddCommGrpCat.of (Projective.TopTracePairing.coefficientRing R) := |
| 70 | (ProjectiveRefinement.Serre.cohomologyFunctor (R := R) (σ := Fin (n + 2)) g).map |
| 71 | (ProjectiveFinite.EtaleAdjunction.iso X Y f i g (NegativeTwistResidueNaturality.topChart.{u} (n + 1) (Fintype.card_fin (n + 2))) B hB (dimension_le X i g)).inv ≫ |
| 72 | coefficientTrace X Y f i B hB g |
| 73 | |
| 74 | variable [IsProper Y.hom] [Smooth Y.hom] [GeometricallyConnected Y.hom] |
| 75 | (s : Spec (CommRingCat.of R) ⟶ Y.left) (hs : s ≫ Y.hom = 𝟙 _) |
| 76 | |
| 77 | local instance source_composite_proper : IsProper |
| 78 | (f.left ≫ i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) := by |
| 79 | change IsProper (f.left ≫ i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)).hom) |
| 80 | rw [Over.w i, Over.w f] |
| 81 | infer_instance |
| 82 | local instance source_composite_smooth : Smooth |
| 83 | (f.left ≫ i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) := by |
| 84 | change Smooth (f.left ≫ i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)).hom) |
| 85 | rw [Over.w i, Over.w f] |
| 86 | infer_instance |
| 87 | local instance source_composite_connected : GeometricallyConnected |
| 88 | (f.left ≫ i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) := by |
| 89 | change GeometricallyConnected (f.left ≫ i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)).hom) |
| 90 | rw [Over.w i, Over.w f] |
| 91 | infer_instance |
| 92 | |
| 93 | include hs in |
| 94 | omit [IsNoetherianRing R] [Module.Injective R R] [IsArtinianRing R] [IsLocalRing R] [Nonempty ↥X.left] [IsFinite (Over.Hom.left f)] [Etale (Over.Hom.left f)] [IsClosedImmersion (Over.Hom.left i)] [IsProper X.hom] [GeometricallyConnected X.hom] [IsProper Y.hom] [Smooth Y.hom] [GeometricallyConnected Y.hom] in |
| 95 | theorem section_over : s ≫ (f.left ≫ i.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) = 𝟙 _ := by |
| 96 | change s ≫ (f.left ≫ i.left ≫ (Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)).hom) = 𝟙 _ |
| 97 | rw [Over.w i, Over.w f] |
| 98 | exact hs |
| 99 | |
| 100 | def coefficientUnitIso := IteratedCechStructureUnit.artinianIso f.left i.left |
| 101 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) s (section_over X Y f i s hs) |
| 102 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n + 2))) |
| 103 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.iSup_coordinateOpenCover_eq_top (R := R) (σ := Fin (n + 2))) |
| 104 | |
| 105 | def traceIso : cohomology X Y f i g ≅ AddCommGrpCat.of (Projective.TopTracePairing.coefficientRing R) := |
| 106 | ((ProjectiveRefinement.Serre.cohomologyFunctor (R := R) (σ := Fin (n + 2)) g).mapIso |
| 107 | (ProjectiveFinite.EtaleAdjunction.iso X Y f i g (NegativeTwistResidueNaturality.topChart.{u} (n + 1) (Fintype.card_fin (n + 2))) B hB (dimension_le X i g))).symm ≪≫ |
| 108 | SerreUnitTrace.traceIso (Projective.TopTracePairing.coefficientRing R) (coefficientPairing X Y f i B hB g) |
| 109 | (coefficientUnitIso X Y f i s hs).toLinearEquiv |
| 110 | |
| 111 | omit [GeometricallyConnected X.hom] in |
| 112 | theorem traceIso_hom : (traceIso X Y f i B hB g s hs).hom = trace X Y f i B hB g := by |
| 113 | have hu := IteratedCechStructureUnit.artinianIso_one f.left i.left |
| 114 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) s (section_over X Y f i s hs) |
| 115 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n + 2))) |
| 116 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.iSup_coordinateOpenCover_eq_top (R := R) (σ := Fin (n + 2))) |
| 117 | change _ ≫ (SerreUnitTrace.traceIso (Projective.TopTracePairing.coefficientRing R) (coefficientPairing X Y f i B hB g) |
| 118 | (coefficientUnitIso X Y f i s hs).toLinearEquiv).hom = _ |
| 119 | rw [SerreUnitTrace.traceIso_hom] |
| 120 | exact congrArg (fun v => |
| 121 | (ProjectiveRefinement.Serre.cohomologyFunctor (R := R) (σ := Fin (n + 2)) g).map |
| 122 | (ProjectiveFinite.EtaleAdjunction.iso X Y f i g (NegativeTwistResidueNaturality.topChart.{u} (n + 1) (Fintype.card_fin (n + 2))) B hB (dimension_le X i g)).inv ≫ |
| 123 | SerreUnitTrace.trace (Projective.TopTracePairing.coefficientRing R) (coefficientPairing X Y f i B hB g) v) hu |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.ProperTraceBase |