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.CategoryTheory.Abelian.Injective.Resolution |
| 2 | |
| 3 | /-! # Injective Cycle -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.InjectiveCycle.InjectiveCycleTower |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Short exact sequences of cycles in an injective resolution |
| 11 | |
| 12 | The kernels of successive differentials form a tower of short exact |
| 13 | sequences with the original injective terms in the middle. Degree-zero |
| 14 | cycles are canonically isomorphic to the resolved object. All objects |
| 15 | and maps are taken from the given injective resolution. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {C : Type u} [Category.{v} C] [Abelian C] {F : C} (I : InjectiveResolution F) |
| 23 | |
| 24 | def cycle (n : ℕ) : C := kernel (I.cocomplex.d n (n + 1)) |
| 25 | |
| 26 | def inclusion (n : ℕ) : cycle I n ⟶ I.cocomplex.X n := kernel.ι _ |
| 27 | |
| 28 | def projection (n : ℕ) : I.cocomplex.X n ⟶ cycle I (n + 1) := |
| 29 | kernel.lift (I.cocomplex.d (n + 1) (n + 2)) (I.cocomplex.d n (n + 1)) (I.complex_d_comp n) |
| 30 | |
| 31 | theorem projection_inclusion (n : ℕ) : |
| 32 | projection I n ≫ inclusion I (n + 1) = I.cocomplex.d n (n + 1) := |
| 33 | kernel.lift_ι _ _ _ |
| 34 | |
| 35 | theorem inclusion_projection (n : ℕ) : inclusion I n ≫ projection I n = 0 := by |
| 36 | have : Mono (inclusion I (n + 1)) := by change Mono (kernel.ι _); infer_instance |
| 37 | apply (cancel_mono (inclusion I (n + 1))).mp |
| 38 | exact (Category.assoc _ _ _).trans |
| 39 | ((congrArg (fun f => inclusion I n ≫ f) (projection_inclusion I n)).trans |
| 40 | ((kernel.condition (I.cocomplex.d n (n + 1))).trans |
| 41 | (zero_comp : (0 : cycle I n ⟶ cycle I (n + 1)) ≫ inclusion I (n + 1) = 0).symm)) |
| 42 | |
| 43 | def shortComplex (n : ℕ) : ShortComplex C := |
| 44 | ShortComplex.mk (inclusion I n) (projection I n) (inclusion_projection I n) |
| 45 | |
| 46 | def comparison (n : ℕ) : shortComplex I n ⟶ |
| 47 | ShortComplex.mk (kernel.ι (I.cocomplex.d n (n + 1))) (I.cocomplex.d n (n + 1)) (kernel.condition _) := |
| 48 | ShortComplex.Hom.mk (𝟙 _) (𝟙 _) (inclusion I (n + 1)) |
| 49 | ((Category.id_comp _).trans (Category.comp_id _).symm) |
| 50 | ((Category.id_comp _).trans (projection_inclusion I n).symm) |
| 51 | |
| 52 | theorem shortExact (n : ℕ) : (shortComplex I n).ShortExact := by |
| 53 | refine { exact := ?_, mono_f := ?_, epi_g := ?_ } |
| 54 | · have : Epi (comparison I n).τ₁ := by change Epi (𝟙 (cycle I n)); infer_instance |
| 55 | have : IsIso (comparison I n).τ₂ := by change IsIso (𝟙 (I.cocomplex.X n)); infer_instance |
| 56 | have : Mono (comparison I n).τ₃ := by change Mono (kernel.ι _); infer_instance |
| 57 | exact (ShortComplex.exact_iff_of_epi_of_isIso_of_mono (comparison I n)).mpr |
| 58 | (ShortComplex.kernelSequence_exact (I.cocomplex.d n (n + 1))) |
| 59 | · change Mono (kernel.ι (I.cocomplex.d n (n + 1))) |
| 60 | infer_instance |
| 61 | · have hI : (I.cocomplex.sc' n (n + 1) (n + 2)).Exact := |
| 62 | (I.cocomplex.exactAt_iff' n (n + 1) (n + 2) (by simp) (by simp)).mp (I.cocomplex_exactAt_succ n) |
| 63 | exact ((I.cocomplex.sc' n (n + 1) (n + 2)).exact_iff_epi_kernel_lift).mp hI |
| 64 | |
| 65 | instance middle_injective (n : ℕ) : Injective (shortComplex I n).X₂ := by |
| 66 | change Injective (I.cocomplex.X n) |
| 67 | infer_instance |
| 68 | |
| 69 | def augmentationIso : F ≅ cycle I 0 := |
| 70 | I.isLimitKernelFork.conePointUniqueUpToIso (limit.isLimit (parallelPair (I.cocomplex.d 0 1) 0)) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.InjectiveCycle.InjectiveCycleTower |