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 Mathlib.Algebra.Homology.DerivedCategory.Ext.ExactSequences |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear |
| 3 | |
| 4 | /-! # Source Dimension Shift -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceDimensionShift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Dimension shifting in the first argument of the actual original Ext groups. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | open Abelian |
| 15 | |
| 16 | universe u v z |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 19 | {S : ShortComplex C} (hS : S.ShortExact) (Y : C) (m : ℕ) |
| 20 | |
| 21 | abbrev connecting : Ext.{z} S.X₁ Y m →+ Ext.{z} S.X₃ Y (m + 1) := |
| 22 | hS.extClass.precomp Y (Nat.add_comm 1 m) |
| 23 | |
| 24 | theorem connecting_injective [Subsingleton (Ext.{z} S.X₂ Y m)] : |
| 25 | Function.Injective (connecting hS Y m) := by |
| 26 | apply (AddMonoidHom.ker_eq_bot_iff (connecting hS Y m)).mp |
| 27 | rw [AddSubgroup.eq_bot_iff_forall] |
| 28 | intro x hx |
| 29 | obtain ⟨y, hy⟩ := Ext.contravariant_sequence_exact₁ hS Y x (Nat.add_comm 1 m) hx |
| 30 | exact hy.symm.trans (by rw [Subsingleton.elim y 0, Ext.comp_zero]) |
| 31 | |
| 32 | theorem connecting_surjective [Subsingleton (Ext.{z} S.X₂ Y (m + 1))] : |
| 33 | Function.Surjective (connecting hS Y m) := by |
| 34 | intro x |
| 35 | exact Ext.contravariant_sequence_exact₃ hS Y x (Subsingleton.elim _ _) (Nat.add_comm 1 m) |
| 36 | |
| 37 | def linearEquivalence (R : Type*) [CommRing R] [Linear R C] |
| 38 | [Subsingleton (Ext.{z} S.X₂ Y m)] [Subsingleton (Ext.{z} S.X₂ Y (m + 1))] : |
| 39 | Ext.{z} S.X₁ Y m ≃ₗ[R] Ext.{z} S.X₃ Y (m + 1) := |
| 40 | LinearEquiv.ofBijective (hS.extClass.precompOfLinear R Y (Nat.add_comm 1 m)) |
| 41 | ⟨connecting_injective hS Y m, connecting_surjective hS Y m⟩ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceDimensionShift |