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.BigCrystallineCohomology |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.Topology |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers |
| 4 | import Mathlib.RingTheory.WittVector.Compare |
| 5 | |
| 6 | /-! # Coefficient Adapter -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Rationalization of IntegralComparison's genuine big crystalline cohomology over the |
| 15 | split base. Pullback is its proved exact-sheaf Ext construction. The scalar |
| 16 | map is the canonical W(𝔽_q) → ℤ_q → ℚ_q, independent of comparison. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | variable {p : ℕ} {B : Type} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 22 | {X Y : Scheme} {f : X ⟶ Spec (CommRingCat.of B)} |
| 23 | {fY : Y ⟶ Spec (CommRingCat.of B)} |
| 24 | |
| 25 | abbrev IntegralCohomology (p : ℕ) (B : Type) [CommRing B] (J : Ideal B) |
| 26 | (δ : DividedPowers J) {X : Scheme} (f : X ⟶ Spec (CommRingCat.of B)) (n : ℕ) := |
| 27 | IntegralComparison.BigCrystallineCohomology.Cohomology (p := p) (J := J) (δ := δ) f n |
| 28 | |
| 29 | /-- The actual integral crystalline pullback, with its base-ring scalars. -/ |
| 30 | def integralPullback (g : X ⟶ Y) (hg : g ≫ fY = f) (n : ℕ) : |
| 31 | IntegralCohomology p B J δ fY n →ₗ[B] IntegralCohomology p B J δ f n := by |
| 32 | let T : IntegralCohomology p B J δ fY n →ₗ[ULift.{1} B] |
| 33 | IntegralCohomology p B J δ f n := |
| 34 | IntegralComparison.BigCrystallineCohomology.pullback g hg n |
| 35 | exact |
| 36 | { toFun := T |
| 37 | map_add' := T.map_add |
| 38 | map_smul' b x := by |
| 39 | change T ((ULift.up b : ULift.{1} B) • x) = (ULift.up b : ULift.{1} B) • T x |
| 40 | exact T.map_smul _ _ } |
| 41 | |
| 42 | variable (q : ℕ) [Fact q.Prime] |
| 43 | |
| 44 | abbrev Witt := WittVector q (ZMod q) |
| 45 | |
| 46 | def wittToPadicField : Witt q →+* ℚ_[q] := |
| 47 | (algebraMap ℤ_[q] ℚ_[q]).comp (WittVector.equiv q).toRingHom |
| 48 | |
| 49 | /-- The coefficient-field identification at the completely split prime. -/ |
| 50 | def coefficientFieldEquiv : FractionRing (Witt q) ≃+* ℚ_[q] := |
| 51 | IsFractionRing.ringEquivOfRingEquiv (WittVector.equiv q) |
| 52 | |
| 53 | theorem coefficientFieldEquiv_algebraMap (x : Witt q) : |
| 54 | coefficientFieldEquiv q (algebraMap (Witt q) (FractionRing (Witt q)) x) = |
| 55 | wittToPadicField q x := |
| 56 | IsFractionRing.ringEquivOfRingEquiv_algebraMap (WittVector.equiv q) x |
| 57 | |
| 58 | instance wittPadicAlgebra : Algebra (Witt q) ℚ_[q] := (wittToPadicField q).toAlgebra |
| 59 | |
| 60 | def wittStructure (X : Over (Spec (CommRingCat.of (ZMod q)))) : |
| 61 | X.left ⟶ Spec (CommRingCat.of (Witt q)) := |
| 62 | X.hom ≫ Spec.map (CommRingCat.ofHom (WittVector.constantCoeff : Witt q →+* ZMod q)) |
| 63 | |
| 64 | abbrev IntegralH1 (X : Over (Spec (CommRingCat.of (ZMod q)))) := |
| 65 | IntegralCohomology q (Witt q) (Ideal.span {(q : Witt q)}) |
| 66 | (AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers q (ZMod q)) (wittStructure q X) 1 |
| 67 | |
| 68 | abbrev RationalH1 (X : Over (Spec (CommRingCat.of (ZMod q)))) := |
| 69 | ℚ_[q] ⊗[Witt q] IntegralH1 q X |
| 70 | |
| 71 | def rationalPullback {X Y : Over (Spec (CommRingCat.of (ZMod q)))} (f : X ⟶ Y) : |
| 72 | RationalH1 q Y →ₗ[ℚ_[q]] RationalH1 q X := |
| 73 | (integralPullback (p := q) (J := Ideal.span {(q : Witt q)}) |
| 74 | (δ := AlgebraicGeometry.Crystalline.Cohomology.Witt.DividedPowers.WittDividedPowers.wittDividedPowers q (ZMod q)) |
| 75 | f.left (by simp only [wittStructure, ← Category.assoc, Over.w]) 1).baseChange ℚ_[q] |
| 76 | |
| 77 | end |
| 78 | |
| 79 | /-! Explicit change from the Witt fraction field to the split p-adic coefficient field. -/ |
| 80 | |
| 81 | open scoped TensorProduct |
| 82 | |
| 83 | variable (q : ℕ) [Fact q.Prime] |
| 84 | |
| 85 | def coefficientAlgEquiv : FractionRing (Witt q) ≃ₐ[Witt q] ℚ_[q] where |
| 86 | __ := coefficientFieldEquiv q |
| 87 | commutes' := coefficientFieldEquiv_algebraMap q |
| 88 | |
| 89 | instance coefficientInvPair : RingHomInvPair (coefficientFieldEquiv q).toRingHom |
| 90 | (coefficientFieldEquiv q).symm.toRingHom := RingHomInvPair.of_ringEquiv (coefficientFieldEquiv q) |
| 91 | |
| 92 | instance coefficientInvPair_symm : RingHomInvPair (coefficientFieldEquiv q).symm.toRingHom |
| 93 | (coefficientFieldEquiv q).toRingHom := RingHomInvPair.of_ringEquiv_symm (coefficientFieldEquiv q) |
| 94 | |
| 95 | variable (M : Type*) [AddCommGroup M] [Module (Witt q) M] |
| 96 | |
| 97 | def coefficientTensorWittEquiv : |
| 98 | FractionRing (Witt q) ⊗[Witt q] M ≃ₗ[Witt q] ℚ_[q] ⊗[Witt q] M := |
| 99 | TensorProduct.congr (coefficientAlgEquiv q).toLinearEquiv (LinearEquiv.refl (Witt q) M) |
| 100 | |
| 101 | /-- The actual coefficient change is semilinear for the canonical fraction-field isomorphism. -/ |
| 102 | def coefficientTensorEquiv : FractionRing (Witt q) ⊗[Witt q] M ≃ₛₗ[(coefficientFieldEquiv q).toRingHom] |
| 103 | ℚ_[q] ⊗[Witt q] M where |
| 104 | __ := (coefficientTensorWittEquiv q M).toAddEquiv |
| 105 | map_smul' a x := by |
| 106 | induction x using TensorProduct.inductionOn with |
| 107 | | add x y hx hy => |
| 108 | change coefficientTensorWittEquiv q M (a • (x + y)) = |
| 109 | coefficientFieldEquiv q a • coefficientTensorWittEquiv q M (x + y) |
| 110 | rw [smul_add, (coefficientTensorWittEquiv q M).map_add, |
| 111 | (coefficientTensorWittEquiv q M).map_add, smul_add] |
| 112 | exact congrArg₂ (· + ·) hx hy |
| 113 | | tmul b m => |
| 114 | change coefficientFieldEquiv q (a * b) ⊗ₜ[Witt q] m = |
| 115 | (coefficientFieldEquiv q a * coefficientFieldEquiv q b) ⊗ₜ[Witt q] m |
| 116 | rw [map_mul] |
| 117 | |
| 118 | theorem coefficientTensorEquiv_tmul (a : FractionRing (Witt q)) (m : M) : |
| 119 | coefficientTensorEquiv q M (a ⊗ₜ[Witt q] m) = coefficientFieldEquiv q a ⊗ₜ[Witt q] m := rfl |
| 120 | |
| 121 | theorem coefficientTensorEquiv_map {N : Type*} [AddCommGroup N] [Module (Witt q) N] |
| 122 | (T : M →ₗ[Witt q] N) (x : FractionRing (Witt q) ⊗[Witt q] M) : |
| 123 | coefficientTensorEquiv q N (T.baseChange (FractionRing (Witt q)) x) = |
| 124 | T.baseChange ℚ_[q] (coefficientTensorEquiv q M x) := by |
| 125 | induction x using TensorProduct.inductionOn with |
| 126 | | add x y hx hy => simp only [map_add, hx, hy] |
| 127 | | tmul a m => rfl |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter |