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.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.OneSidedTor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Euler |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 4 | import Mathlib.RingTheory.LocalRing.Length |
| 5 | |
| 6 | /-! # Tor Restriction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.TorRestriction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! One-sided flat base change for native Tor, retaining the actual |
| 13 | module structure after restriction of scalars. This is the local |
| 14 | tensor identity needed for proper pushforward compatibility. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 24 | (N : ModuleCat.{u} S) [Module R N] [IsScalarTower R S N] |
| 25 | |
| 26 | def tensorIso : |
| 27 | 𝟭 (ModuleCat.{u} R) ⋙ tensorLeft (.of R N) ≅ |
| 28 | MixedTensor.tensor R S N ⋙ ModuleCat.restrictScalars (algebraMap R S) := |
| 29 | NatIso.ofComponents (fun M => |
| 30 | (show N ⊗[R] M ≃ₗ[R] |
| 31 | (ModuleCat.restrictScalars (algebraMap R S)).obj ((MixedTensor.tensor R S N).obj M) from |
| 32 | { toFun := fun x => x |
| 33 | invFun := fun x => x |
| 34 | left_inv := fun _ => rfl |
| 35 | right_inv := fun _ => rfl |
| 36 | map_add' := fun _ _ => rfl |
| 37 | map_smul' := fun r x => (algebraMap_smul S r x).symm }).toModuleIso) |
| 38 | (by |
| 39 | intro M M' f |
| 40 | apply ModuleCat.hom_ext |
| 41 | apply TensorProduct.ext' |
| 42 | intro n m |
| 43 | rfl) |
| 44 | |
| 45 | def mixedDerivedIso (M : ModuleCat.{u} R) (n : ℕ) : |
| 46 | ((Tor (ModuleCat R) n).obj (.of R N)).obj M ≅ |
| 47 | (ModuleCat.restrictScalars (algebraMap R S)).obj |
| 48 | (((MixedTensor.tensor R S N).leftDerived n).obj M) := by |
| 49 | change ((tensorLeft (ModuleCat.of R N)).leftDerived n).obj M ≅ _ |
| 50 | exact DerivedBaseChange.leftDerivedIso (MixedTensor.tensor R S N) (tensorLeft (ModuleCat.of R N)) |
| 51 | (𝟭 _) (ModuleCat.restrictScalars (algebraMap R S)) (tensorIso R S N) M n |
| 52 | |
| 53 | def iso [Module.Flat R S] (M : ModuleCat.{u} R) (n : ℕ) : |
| 54 | (ModuleCat.restrictScalars (algebraMap R S)).obj |
| 55 | (((Tor (ModuleCat S) n).obj ((ProjectionFormula.Flat.Extension.baseChange R S).obj M)).obj N) ≅ |
| 56 | ((Tor (ModuleCat R) n).obj M).obj (.of R N) := |
| 57 | (ModuleCat.restrictScalars (algebraMap R S)).mapIso |
| 58 | (Symmetry.iso S ((ProjectionFormula.Flat.Extension.baseChange R S).obj M) N n) ≪≫ |
| 59 | (ModuleCat.restrictScalars (algebraMap R S)).mapIso (OneSidedTor.derivedIso R S M N n) ≪≫ |
| 60 | (mixedDerivedIso R S N M n).symm ≪≫ Symmetry.iso R (.of R N) M n |
| 61 | |
| 62 | theorem length [Module.Flat R S] (M : ModuleCat.{u} R) (n : ℕ) : |
| 63 | Module.length R ((ModuleCat.restrictScalars (algebraMap R S)).obj |
| 64 | (((Tor (ModuleCat S) n).obj ((ProjectionFormula.Flat.Extension.baseChange R S).obj M)).obj N)) = |
| 65 | Module.length R (((Tor (ModuleCat R) n).obj M).obj (.of R N)) := |
| 66 | (iso R S N M n).toLinearEquiv.length_eq |
| 67 | |
| 68 | theorem weighted_length [Module.Flat R S] [IsLocalRing R] [IsLocalRing S] |
| 69 | [IsLocalHom (algebraMap R S)] (M : ModuleCat.{u} R) (n : ℕ) : |
| 70 | Module.length R (((Tor (ModuleCat R) n).obj M).obj (.of R N)) = |
| 71 | Module.length S (((Tor (ModuleCat S) n).obj ((ProjectionFormula.Flat.Extension.baseChange R S).obj M)).obj N) * |
| 72 | Module.length (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField S) := by |
| 73 | let T := ((Tor (ModuleCat S) n).obj ((ProjectionFormula.Flat.Extension.baseChange R S).obj M)).obj N |
| 74 | let L := (ModuleCat.restrictScalars (algebraMap R S)).obj T |
| 75 | let : IsScalarTower R S L := IsScalarTower.of_compHom R S T |
| 76 | exact (TorRestriction.length R S N M n).symm.trans (IsLocalRing.length_restrictScalars R S L) |
| 77 | |
| 78 | theorem euler [Module.Flat R S] [IsLocalRing R] [IsLocalRing S] |
| 79 | [IsLocalHom (algebraMap R S)] (M : ModuleCat.{u} R) (d : ℕ) : |
| 80 | Euler.euler R M (.of R N) d = |
| 81 | Euler.euler S ((ProjectionFormula.Flat.Extension.baseChange R S).obj M) N d * |
| 82 | ((Module.length (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField S)).toNat : ℚ) := by |
| 83 | simp only [Euler.euler, ExactLength.rationalLength, weighted_length R S N, |
| 84 | ENat.toNat_mul, Nat.cast_mul, ← mul_assoc, Finset.sum_mul] |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.TorRestriction |