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.ExternalTensorRankOne |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdditiveFreeVanishing |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.ExactSequence |
| 5 | |
| 6 | /-! # External Tensor Acyclic -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExternalTensorAcyclic |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! External products of finite free modules are acyclic for tensoring |
| 13 | with the diagonal. The rank-one case follows from one-sided flat Tor |
| 14 | base change; additivity supplies the general finite free case. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 25 | ExternalTensorFunctor.scalar ExternalTensorFunctor.tower ExternalTensor.module |
| 26 | |
| 27 | theorem right_flat (K A B : Type u) [Field K] [CommRing A] [CommRing B] [Algebra K A] [Algebra K B] : |
| 28 | Module.Flat B (A ⊗[K] B) := |
| 29 | Module.Flat.of_linearEquiv (Algebra.TensorProduct.commRight K B A).symm.toLinearEquiv |
| 30 | |
| 31 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensor OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality |
| 32 | |
| 33 | variable (K R : Type u) [Field K] [CommRing R] [Algebra K R] |
| 34 | |
| 35 | local instance : SMul R (DiagonalTensor.Ring K R) := (Algebra.TensorProduct.rightAlgebra (R := K) (A := R) (B := R)).toSMul |
| 36 | local instance : Module R (DiagonalTensor.Ring K R) := (Algebra.TensorProduct.rightAlgebra (R := K) (A := R) (B := R)).toModule |
| 37 | |
| 38 | local instance : Module R (DiagonalTensorNaturality.diagonal K R) := Module.restrictScalars R (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R) |
| 39 | local instance : IsScalarTower R (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R) := |
| 40 | IsScalarTower.restrictScalars R (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R) |
| 41 | |
| 42 | def diagonalRightEquiv : DiagonalTensorNaturality.diagonal K R ≃ₗ[R] R := |
| 43 | { AddEquiv.refl R with |
| 44 | map_smul' := by |
| 45 | intro r x |
| 46 | change ((1 * r) * (show R from x)) = r * (show R from x) |
| 47 | rw [one_mul] } |
| 48 | |
| 49 | theorem rank_one (N : ModuleCat.{u} R) (i : ℕ) : |
| 50 | IsZero (((Tor (ModuleCat (DiagonalTensor.Ring K R)) (i + 1)).obj |
| 51 | ((ExternalTensorFunctor.tensor K R R N).obj (.of R R))).obj (DiagonalTensorNaturality.diagonal K R)) := by |
| 52 | let : Module.Flat R (DiagonalTensor.Ring K R) := right_flat K R R |
| 53 | let : Module.Flat R (DiagonalTensorNaturality.diagonal K R) := Module.Flat.of_linearEquiv (diagonalRightEquiv K R) |
| 54 | have hz := OneSidedTor.higher_isZero R (DiagonalTensor.Ring K R) N (DiagonalTensorNaturality.diagonal K R) i |
| 55 | let e := ExternalTensorRankOne.equiv K R R N |
| 56 | let e₀ := ExternalTensor.congr K R R (M := (ModuleCat.of R R)) (M' := R) (N := N) (N' := N) |
| 57 | (mK := ExternalTensorFunctor.scalar K R (.of R R)) |
| 58 | (mTower := ExternalTensorFunctor.tower K R (.of R R)) |
| 59 | (mK' := inferInstanceAs (Module K R)) |
| 60 | (LinearEquiv.refl R R) (LinearEquiv.refl R N) |
| 61 | let F := (Tor (ModuleCat (DiagonalTensor.Ring K R)) (i + 1)).flip.obj (DiagonalTensorNaturality.diagonal K R) |
| 62 | exact IsZero.of_iso hz (F.mapIso (e₀ ≪≫ e.symm.toModuleIso)) |
| 63 | |
| 64 | theorem free (N : ModuleCat.{u} R) (P : ModuleCat.{u} R) [Module.Free R P] [Module.Finite R P] (i : ℕ) : |
| 65 | IsZero (((Tor (ModuleCat (DiagonalTensor.Ring K R)) (i + 1)).obj |
| 66 | ((ExternalTensorFunctor.tensor K R R N).obj P)).obj (DiagonalTensorNaturality.diagonal K R)) := |
| 67 | AdditiveFreeVanishing.isZero R |
| 68 | (ExternalTensorFunctor.tensor K R R N ⋙ |
| 69 | ((Tor (ModuleCat (DiagonalTensor.Ring K R)) (i + 1)).flip.obj (DiagonalTensorNaturality.diagonal K R))) |
| 70 | (rank_one K R N i) P |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExternalTensorAcyclic |