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.Reference.ScalarCupCompatibility |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.ScalarCupNaturality |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.GradedExteriorCup |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ScalarIntrinsicEndomorphismDeterminant |
| 5 | |
| 6 | /-! # Crystalline Determinant -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.CrystallineDeterminant |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The determinant of an original crystalline pullback is its scalar |
| 13 | on the nonzero top exterior cup. The unit and product compatibilities |
| 14 | are supplied by the checked native crystalline constructions. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [Fintype k] [CharP k p] |
| 25 | (X : Over (Spec (CommRingCat.of k))) [IsProper X.hom] [Smooth X.hom] |
| 26 | (hX : Projectivity.Construction.ProjectiveOver k X.hom) |
| 27 | |
| 28 | local notation "F" => FractionRing (WittVector p k) |
| 29 | local notation "D" => OAI.NumberTheory.PadicHodge.IntegralComparison.Balanced.RationalCupUnit.data p k X hX |
| 30 | local notation "H" => OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline.rationalCohomology p k X |
| 31 | |
| 32 | local notation "N" => Module.finrank (FractionRing (WittVector p k)) |
| 33 | (TensorProduct (WittVector p k) (FractionRing (WittVector p k)) |
| 34 | (Witt.Crystalline.integralCohomology p k X 1)) |
| 35 | |
| 36 | attribute [local irreducible] Balanced.RationalCrystallineCup.integralCup |
| 37 | |
| 38 | attribute [local irreducible] GradedExteriorCup.exteriorPowerCup Module.finrank |
| 39 | |
| 40 | variable [FiniteDimensional (FractionRing (WittVector p k)) |
| 41 | (Witt.Crystalline.rationalCohomology p k X 1)] |
| 42 | |
| 43 | theorem of_top_scalar (f : X ⟶ X) (c : F) |
| 44 | (hprod : GradedExteriorCup.exteriorPowerCup D N ≠ 0) |
| 45 | (htop : ∀ x : H N, PeriodInvariants.CrystallinePullback.rationalPullback p k f N x = c • x) : |
| 46 | (PeriodInvariants.CrystallinePullback.rationalPullback p k f 1).det = c := by |
| 47 | let : FiniteDimensional F (TensorProduct (WittVector p k) F |
| 48 | (Witt.Crystalline.integralCohomology p k X 1)) := |
| 49 | inferInstanceAs (FiniteDimensional F (H 1)) |
| 50 | have hu := ScalarCupCompatibility.unit p k X hX f |
| 51 | have hc := ScalarCupNaturality.natural p k X hX f |
| 52 | unfold PeriodInvariants.CrystallinePullback.rationalPullback at hu htop ⊢ |
| 53 | dsimp only [ScalarCupNaturality.endomorphism] at hc |
| 54 | dsimp only [Witt.Crystalline.rationalCohomology, ModuleCat.of] at hu htop ⊢ |
| 55 | exact ScalarIntrinsicEndomorphismDeterminant.Intrinsic.det_eq_of_top_scalar F |
| 56 | (Witt.Crystalline.integralCohomology p k X) |
| 57 | (Balanced.RationalCrystallineCup.integralCup p k X hX) |
| 58 | (Balanced.CupUnit.Integral.one p k X hX) |
| 59 | (Balanced.RationalCupUnit.scalarLeft p k X hX) |
| 60 | (Balanced.RationalCupUnit.scalarRight p k X hX) |
| 61 | (Balanced.RationalCupUnit.scalarAssoc p k X hX) |
| 62 | (Balanced.RationalCupUnit.scalarSquare p k X hX) |
| 63 | (fun n => (PeriodInvariants.CrystallinePullback.integralPullback p k f n).baseChange F) |
| 64 | (by exact hu) |
| 65 | (by intro i j x y; exact hc i j x y) |
| 66 | c (by exact hprod) |
| 67 | (by intro x; exact htop x) |
| 68 | |
| 69 | theorem of_trace (f : X ⟶ X) (c : F) |
| 70 | (hprod : GradedExteriorCup.exteriorPowerCup D N ≠ 0) |
| 71 | (trace : H N ≃ₗ[F] F) |
| 72 | (htrace : ∀ x : H N, trace (PeriodInvariants.CrystallinePullback.rationalPullback p k f N x) = c * trace x) : |
| 73 | (PeriodInvariants.CrystallinePullback.rationalPullback p k f 1).det = c := by |
| 74 | apply of_top_scalar p k X hX f c hprod |
| 75 | intro x |
| 76 | apply trace.injective |
| 77 | rw [htrace, map_smul] |
| 78 | rfl |
| 79 | |
| 80 | theorem of_additive_trace {T : Type*} [AddCommGroup T] (f : X ⟶ X) (d : ℕ) |
| 81 | (hprod : GradedExteriorCup.exteriorPowerCup D N ≠ 0) |
| 82 | (trace : H N →+ T) (hinj : Function.Injective trace) |
| 83 | (htrace : ∀ x : H N, trace (PeriodInvariants.CrystallinePullback.rationalPullback p k f N x) = d • trace x) : |
| 84 | (PeriodInvariants.CrystallinePullback.rationalPullback p k f 1).det = (d : F) := by |
| 85 | apply of_top_scalar p k X hX f (d : F) hprod |
| 86 | intro x |
| 87 | apply hinj |
| 88 | rw [htrace, Nat.cast_smul_eq_nsmul, map_nsmul] |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.CrystallineDeterminant |