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.Crystalline.Cohomology.Module.InverseLimit |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 3 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 4 | |
| 5 | /-! # Tensor Inverse Limit -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.TensorInverseLimit.FiniteTensorInverseLimit |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Tensoring with a finite free module commutes with compatible sections |
| 13 | |
| 14 | A finite basis turns the tensor product into finitely many coefficient |
| 15 | coordinates. Taking compatible systems commutes with those coordinates, |
| 16 | yielding an explicit inverse-limit tensor isomorphism. |
| 17 | -/ |
| 18 | |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | open Classical |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable (R ξ : Type u) [CommRing R] |
| 26 | (M N : Type u) [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 27 | |
| 28 | def piMap (f : M →ₗ[R] N) : (ξ → M) →ₗ[R] (ξ → N) := |
| 29 | LinearMap.pi (fun i => f.comp (LinearMap.proj i)) |
| 30 | |
| 31 | variable (V : Type u) [AddCommGroup V] [Module R V] [Fintype ξ] (b : Module.Basis ξ R V) |
| 32 | |
| 33 | def coordinateEquiv : M ⊗[R] V ≃ₗ[R] (ξ → M) := |
| 34 | (TensorProduct.congr (LinearEquiv.refl R M) b.equivFun).trans (TensorProduct.piScalarRight R R M ξ) |
| 35 | |
| 36 | theorem coordinateEquiv_tmul (m : M) (v : V) (i : ξ) : |
| 37 | coordinateEquiv R ξ M V b (m ⊗ₜ[R] v) i = b.equivFun v i • m := rfl |
| 38 | |
| 39 | theorem coordinate_naturality (f : M →ₗ[R] N) : |
| 40 | (coordinateEquiv R ξ N V b).toLinearMap.comp (TensorProduct.map f LinearMap.id) = |
| 41 | (piMap R ξ M N f).comp (coordinateEquiv R ξ M V b).toLinearMap := by |
| 42 | apply TensorProduct.ext |
| 43 | apply LinearMap.ext |
| 44 | intro m |
| 45 | apply LinearMap.ext |
| 46 | intro v |
| 47 | funext i |
| 48 | change b.equivFun v i • f m = f (b.equivFun v i • m) |
| 49 | exact (f.map_smul _ _).symm |
| 50 | |
| 51 | variable (A : ℕ → Type u) [∀ n, AddCommGroup (A n)] [∀ n, Module R (A n)] |
| 52 | (t : ∀ n m, n ≤ m → A m →ₗ[R] A n) |
| 53 | |
| 54 | def tensorTransition (n m : ℕ) (hnm : n ≤ m) : A m ⊗[R] V →ₗ[R] A n ⊗[R] V := |
| 55 | TensorProduct.map (t n m hnm) LinearMap.id |
| 56 | |
| 57 | def piTransition (n m : ℕ) (hnm : n ≤ m) : (ξ → A m) →ₗ[R] (ξ → A n) := |
| 58 | piMap R ξ (A m) (A n) (t n m hnm) |
| 59 | |
| 60 | local notation "C" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.InverseLimit.ModuleInverseLimit.compatible R A t |
| 61 | local notation "CT" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.InverseLimit.ModuleInverseLimit.compatible R (fun n => A n ⊗[R] V) (OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.TensorInverseLimit.FiniteTensorInverseLimit.tensorTransition R V A t) |
| 62 | local notation "CP" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.InverseLimit.ModuleInverseLimit.compatible R (fun n => ξ → A n) (OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.TensorInverseLimit.FiniteTensorInverseLimit.piTransition R ξ A t) |
| 63 | |
| 64 | def piCompatibleEquiv : CP ≃ₗ[R] (ξ → C) where |
| 65 | toFun x i := ⟨fun n => x.val n i, fun n m hnm => congrFun (x.property n m hnm) i⟩ |
| 66 | invFun x := ⟨fun n i => (x i).val n, fun n m hnm => funext (fun i => (x i).property n m hnm)⟩ |
| 67 | left_inv _ := Subtype.ext rfl |
| 68 | right_inv _ := funext (fun _ => Subtype.ext rfl) |
| 69 | map_add' _ _ := funext (fun _ => Subtype.ext rfl) |
| 70 | map_smul' _ _ := funext (fun _ => Subtype.ext rfl) |
| 71 | |
| 72 | def diagramEquiv : CT ≃ₗ[R] CP := |
| 73 | Cohomology.Module.InverseLimit.ModuleInverseLimit.equiv R (fun n => A n ⊗[R] V) (tensorTransition R V A t) |
| 74 | (fun n => ξ → A n) (piTransition R ξ A t) (fun n => coordinateEquiv R ξ (A n) V b) |
| 75 | (fun n m hnm a => LinearMap.congr_fun (coordinate_naturality R ξ (A m) (A n) V b (t n m hnm)) a) |
| 76 | |
| 77 | /-- Tensoring compatible sections with a finite free module gives compatible tensor sections. -/ |
| 78 | def equiv : C ⊗[R] V ≃ₗ[R] CT := |
| 79 | (coordinateEquiv R ξ C V b).trans (piCompatibleEquiv R ξ A t).symm |>.trans |
| 80 | (diagramEquiv R ξ V b A t).symm |
| 81 | |
| 82 | theorem equiv_eval (n : ℕ) (z : C ⊗[R] V) : |
| 83 | Cohomology.Module.InverseLimit.ModuleInverseLimit.eval R (fun n => A n ⊗[R] V) (tensorTransition R V A t) n |
| 84 | (equiv R ξ V b A t z) = TensorProduct.map (Cohomology.Module.InverseLimit.ModuleInverseLimit.eval R A t n) LinearMap.id z := by |
| 85 | apply (coordinateEquiv R ξ (A n) V b).injective |
| 86 | change coordinateEquiv R ξ (A n) V b |
| 87 | ((coordinateEquiv R ξ (A n) V b).symm (fun i => (coordinateEquiv R ξ C V b z i).val n)) = _ |
| 88 | rw [LinearEquiv.apply_symm_apply] |
| 89 | exact (LinearMap.congr_fun (coordinate_naturality R ξ C (A n) V b (Cohomology.Module.InverseLimit.ModuleInverseLimit.eval R A t n)) z).symm |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Finite.TensorInverseLimit.FiniteTensorInverseLimit |