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.PeriodInvariants.CrystallineSheafCoherence |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SheafInjectives |
| 4 | |
| 5 | /-! # Crystalline Functoriality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CrystallineFunctoriality.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Identity and composition for GeometricComparison's actual big crystalline H1. |
| 12 | The proof uses exact restriction and its checked Ext transport directly. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | |
| 18 | namespace Big |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology |
| 21 | NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence NumberTheory.PadicHodge.PeriodInvariants.CrystallineSheafCoherence NumberTheory.PadicHodge.PeriodInvariants.ExtTransport |
| 22 | |
| 23 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 24 | variable {X Y Z : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} |
| 25 | {fY : Y ⟶ Spec (CommRingCat.of B)} {fZ : Z ⟶ Spec (CommRingCat.of B)} |
| 26 | |
| 27 | theorem pullback_id (n : ℕ) (x : NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.Cohomology (p := p) (J := J) (δ := δ) f n) : |
| 28 | NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.pullback (𝟙 X) (Category.id_comp f) n x = x := by |
| 29 | change NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.restriction (𝟙 X) (Category.id_comp f)) |
| 30 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantTransport (𝟙 X) (Category.id_comp f)) (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureTransport (𝟙 X) (Category.id_comp f)) n x = x |
| 31 | rw [NumberTheory.PadicHodge.PeriodInvariants.CrystallineSheafCoherence.constantTransport_id, NumberTheory.PadicHodge.PeriodInvariants.CrystallineSheafCoherence.structureTransport_id] |
| 32 | have hn := NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport_natIso (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.restrictionId |
| 33 | (Iso.refl (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantUnit f)) (Iso.refl (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureSheaf f)) x |
| 34 | have ht := congrArg₂ (fun iA iB => NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) |
| 35 | (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.restriction (𝟙 X) (Category.id_comp f)) iA iB n x) |
| 36 | (Iso.trans_refl (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.restrictionId.app (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantUnit f))).symm |
| 37 | (Iso.trans_refl (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.restrictionId.app (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureSheaf f))).symm |
| 38 | exact ht.trans (hn.trans (NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport_id (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) x)) |
| 39 | |
| 40 | theorem pullback_comp (g : X ⟶ Y) (hg : g ≫ fY = f) (h : Y ⟶ Z) (hh : h ≫ fZ = fY) |
| 41 | (n : ℕ) (x : NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.Cohomology (p := p) (J := J) (δ := δ) fZ n) : |
| 42 | NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.pullback g hg n (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.pullback h hh n x) = NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.pullback (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh) n x := by |
| 43 | change NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.restriction g hg) (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantTransport g hg) |
| 44 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureTransport g hg) n |
| 45 | (NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.restriction h hh) (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantTransport h hh) |
| 46 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureTransport h hh) n x) = |
| 47 | NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.restriction (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh)) |
| 48 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantTransport (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh)) |
| 49 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureTransport (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh)) n x |
| 50 | rw [NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport_comp, NumberTheory.PadicHodge.PeriodInvariants.CrystallineSheafCoherence.constantTransport_comp, NumberTheory.PadicHodge.PeriodInvariants.CrystallineSheafCoherence.structureTransport_comp] |
| 51 | exact NumberTheory.PadicHodge.PeriodInvariants.ExtTransport.exactTransport_natIso (NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B)) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.restrictionComp g hg h hh) |
| 52 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.constantTransport (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh)) |
| 53 | (NumberTheory.PadicHodge.IntegralComparison.BigCrystallineCohomology.structureTransport (g ≫ h) (NumberTheory.PadicHodge.PeriodInvariants.CrystallineRestrictionCoherence.composite_over g hg h hh)) x |
| 54 | |
| 55 | end Big |
| 56 | |
| 57 | open OAI.NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter |
| 58 | |
| 59 | variable (q : ℕ) [Fact q.Prime] |
| 60 | {X Y Z : Over (Spec (.of (ZMod q)))} |
| 61 | |
| 62 | theorem rationalPullback_id (X : Over (Spec (.of (ZMod q)))) : |
| 63 | NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q (𝟙 X) = LinearMap.id := by |
| 64 | apply LinearMap.ext |
| 65 | intro x |
| 66 | induction x using TensorProduct.inductionOn with |
| 67 | | tmul r x => exact congrArg (fun z => r ⊗ₜ[NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.Witt q] z) (Big.pullback_id 1 x) |
| 68 | | add x y hx hy => simp only [map_add, hx, hy, LinearMap.id_apply] |
| 69 | |
| 70 | theorem rationalPullback_comp (f : X ⟶ Y) (g : Y ⟶ Z) : |
| 71 | (NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q f).comp (NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q g) = NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q (f ≫ g) := by |
| 72 | apply LinearMap.ext |
| 73 | intro x |
| 74 | change NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q f (NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q g x) = NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.rationalPullback q (f ≫ g) x |
| 75 | induction x using TensorProduct.inductionOn with |
| 76 | | tmul r x => |
| 77 | exact congrArg (fun z => r ⊗ₜ[NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.Witt q] z) |
| 78 | (Big.pullback_comp f.left (by simp only [NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.wittStructure, ← Category.assoc, Over.w]) |
| 79 | g.left (by simp only [NumberTheory.PadicHodge.GeometricComparison.Crystalline.CoefficientAdapter.wittStructure, ← Category.assoc, Over.w]) 1 x) |
| 80 | | add x y hx hy => simp only [map_add, hx, hy] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CrystallineFunctoriality.CM |