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.SequentialModuleDifference |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 3 | import Mathlib.CategoryTheory.Functor.OfSequence |
| 4 | |
| 5 | /-! # Sequential Kernel Limit -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SequentialKernelLimit |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: the kernel of the countable difference is the native inverse limit |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable (R : Type u) [Ring R] (M : ℕ → Type v) |
| 20 | [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 21 | (t : ∀ n, M (n + 1) →ₗ[R] M n) |
| 22 | |
| 23 | def diagram : ℕᵒᵖ ⥤ ModuleCat.{v} R := |
| 24 | Functor.ofOpSequence (X := fun n => ModuleCat.of R (M n)) (fun n => ModuleCat.ofHom (t n)) |
| 25 | |
| 26 | def cone : Cone (diagram R M t) where |
| 27 | pt := ModuleCat.of R (LinearMap.ker (SequentialModuleDifference.difference R M t)) |
| 28 | π := NatTrans.ofOpSequence |
| 29 | (fun n => ModuleCat.ofHom |
| 30 | { toFun := fun x => x.val n |
| 31 | map_add' := fun _ _ => rfl |
| 32 | map_smul' := fun _ _ => rfl }) (fun n => by |
| 33 | simp only [Functor.const_obj_map, diagram, Functor.ofOpSequence_map_homOfLE_succ] |
| 34 | apply ModuleCat.hom_ext |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | exact ((SequentialModuleDifference.difference_eq_zero_iff R M t x.val).mp x.property n).symm) |
| 38 | |
| 39 | def lift (s : Cone (diagram R M t)) : s.pt ⟶ (cone R M t).pt := |
| 40 | ModuleCat.ofHom |
| 41 | { toFun := fun x => ⟨fun n => s.π.app (op n) x, |
| 42 | (SequentialModuleDifference.difference_eq_zero_iff R M t _).mpr (fun n => by |
| 43 | have h := s.w (homOfLE (Nat.le_succ n)).op |
| 44 | change s.π.app (op (n + 1)) ≫ (diagram R M t).map (homOfLE (Nat.le_succ n)).op = s.π.app (op n) at h |
| 45 | rw [show (diagram R M t).map (homOfLE (Nat.le_succ n)).op = ModuleCat.ofHom (t n) from |
| 46 | Functor.ofOpSequence_map_homOfLE_succ _ n] at h |
| 47 | exact congrArg (fun g : s.pt ⟶ ModuleCat.of R (M n) => g x) h)⟩ |
| 48 | map_add' := fun x y => Subtype.ext (funext (fun n => (s.π.app (op n)).hom.map_add x y)) |
| 49 | map_smul' := fun r x => Subtype.ext (funext (fun n => (s.π.app (op n)).hom.map_smul r x)) } |
| 50 | |
| 51 | def isLimit : IsLimit (cone R M t) where |
| 52 | lift := SequentialKernelLimit.lift R M t |
| 53 | fac s n := by |
| 54 | apply ModuleCat.hom_ext |
| 55 | apply LinearMap.ext |
| 56 | intro x |
| 57 | rfl |
| 58 | uniq s a ha := by |
| 59 | apply ModuleCat.hom_ext |
| 60 | apply LinearMap.ext |
| 61 | intro x |
| 62 | apply Subtype.ext |
| 63 | funext n |
| 64 | exact congrArg (fun g : s.pt ⟶ ModuleCat.of R (M n) => g x) (ha (op n)) |
| 65 | |
| 66 | def limitIso : ModuleCat.of R (LinearMap.ker (SequentialModuleDifference.difference R M t)) ≅ |
| 67 | limit (diagram R M t) := |
| 68 | (SequentialKernelLimit.isLimit R M t).conePointUniqueUpToIso (limit.isLimit (diagram R M t)) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SequentialKernelLimit |