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.Category.ModuleCat.Limits |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.PreservesHomology |
| 4 | import Mathlib.CategoryTheory.Limits.ConcreteCategory.Basic |
| 5 | import Mathlib.CategoryTheory.Limits.FunctorCategory.EpiMono |
| 6 | |
| 7 | /-! # Sequential Limit -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.SequentialLimit.SequentialLimitLifting |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Lifting compatible sections through a sequential short exact system |
| 15 | |
| 16 | Surjective transitions in the kernel let us correct arbitrary lifts at |
| 17 | each successive level. The resulting compatible lifts prove surjectivity |
| 18 | of the actual categorical inverse-limit map. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable (R : Type u) [Ring R] |
| 26 | |
| 27 | local instance : HasLimitsOfShape ℕᵒᵖ (ModuleCat.{v} R) := ModuleCat.hasLimitsOfShape |
| 28 | |
| 29 | def transition (F : ℕᵒᵖ ⥤ (ModuleCat.{v} R)) (n : ℕ) : F.obj (op (n + 1)) →ₗ[R] F.obj (op n) := |
| 30 | (F.map (homOfLE (Nat.le_succ n)).op).hom |
| 31 | |
| 32 | theorem naturality {F G : ℕᵒᵖ ⥤ (ModuleCat.{v} R)} (f : F ⟶ G) (n : ℕ) (z : F.obj (op (n + 1))) : |
| 33 | f.app (op n) (transition R F n z) = transition R G n (f.app (op (n + 1)) z) := |
| 34 | ConcreteCategory.congr_hom (f.naturality (homOfLE (Nat.le_succ n)).op) z |
| 35 | |
| 36 | variable (S : ShortComplex (ℕᵒᵖ ⥤ (ModuleCat.{v} R))) (hS : S.ShortExact) |
| 37 | (hA : ∀ n, Function.Surjective (transition R S.X₁ n)) |
| 38 | (x : ∀ n, S.X₃.obj (op n)) (hx : ∀ n, transition R S.X₃ n (x (n + 1)) = x n) |
| 39 | |
| 40 | include hS hA hx in |
| 41 | theorem step (n : ℕ) (y : S.X₂.obj (op n)) (hy : S.g.app (op n) y = x n) : |
| 42 | ∃ z : S.X₂.obj (op (n + 1)), S.g.app (op (n + 1)) z = x (n + 1) ∧ |
| 43 | transition R S.X₂ n z = y := by |
| 44 | have : Epi S.g := hS.epi_g |
| 45 | obtain ⟨z, hz⟩ := (ModuleCat.epi_iff_surjective (S.g.app (op (n + 1)))).mp inferInstance (x (n + 1)) |
| 46 | have hd : S.g.app (op n) (transition R S.X₂ n z - y) = 0 := by |
| 47 | rw [map_sub, SequentialLimitLifting.naturality, hz, hx, hy, sub_self] |
| 48 | have he := hS.exact.map ((evaluation ℕᵒᵖ (ModuleCat.{v} R)).obj (op n)) |
| 49 | obtain ⟨c, hc⟩ := (ShortComplex.moduleCat_exact_iff _).mp he _ hd |
| 50 | obtain ⟨c', hc'⟩ := hA n c |
| 51 | refine ⟨z - S.f.app (op (n + 1)) c', ?_, ?_⟩ |
| 52 | · rw [map_sub, hz] |
| 53 | have hzero := ConcreteCategory.congr_hom (congr_app S.zero (op (n + 1))) c' |
| 54 | change S.g.app (op (n + 1)) (S.f.app (op (n + 1)) c') = 0 at hzero |
| 55 | rw [hzero, sub_zero] |
| 56 | · rw [map_sub, ← SequentialLimitLifting.naturality, hc'] |
| 57 | change S.f.app (op n) c = transition R S.X₂ n z - y at hc |
| 58 | rw [hc, sub_sub_cancel] |
| 59 | |
| 60 | def lifts : ∀ n, {y : S.X₂.obj (op n) // S.g.app (op n) y = x n} |
| 61 | | 0 => by |
| 62 | have : Epi S.g := hS.epi_g |
| 63 | exact ⟨Classical.choose ((ModuleCat.epi_iff_surjective (S.g.app (op 0))).mp inferInstance (x 0)), |
| 64 | Classical.choose_spec ((ModuleCat.epi_iff_surjective (S.g.app (op 0))).mp inferInstance (x 0))⟩ |
| 65 | | n + 1 => |
| 66 | ⟨Classical.choose (SequentialLimitLifting.step R S hS hA x hx n (lifts n).val (lifts n).property), |
| 67 | (Classical.choose_spec (SequentialLimitLifting.step R S hS hA x hx n (lifts n).val (lifts n).property)).1⟩ |
| 68 | |
| 69 | theorem lifts_compatible (n : ℕ) : |
| 70 | transition R S.X₂ n (SequentialLimitLifting.lifts R S hS hA x hx (n + 1)).val = (SequentialLimitLifting.lifts R S hS hA x hx n).val := |
| 71 | (Classical.choose_spec (SequentialLimitLifting.step R S hS hA x hx n |
| 72 | (SequentialLimitLifting.lifts R S hS hA x hx n).val (SequentialLimitLifting.lifts R S hS hA x hx n).property)).2 |
| 73 | |
| 74 | theorem compatible_all (F : ℕᵒᵖ ⥤ (ModuleCat.{v} R)) (y : ∀ n, F.obj (op n)) |
| 75 | (hy : ∀ n, transition R F n (y (n + 1)) = y n) {n m : ℕ} (h : n ≤ m) : |
| 76 | F.map (homOfLE h).op (y m) = y n := by |
| 77 | induction m, h using Nat.le_induction with |
| 78 | | base => |
| 79 | have he : (homOfLE (Nat.le_refl n)).op = 𝟙 (op n) := Subsingleton.elim _ _ |
| 80 | rw [he, F.map_id] |
| 81 | rfl |
| 82 | | succ m h ih => |
| 83 | have he : (homOfLE (Nat.le.step h)).op = |
| 84 | (homOfLE (Nat.le_succ m)).op ≫ (homOfLE h).op := Subsingleton.elim _ _ |
| 85 | rw [he, F.map_comp] |
| 86 | change F.map (homOfLE h).op (transition R F m (y (m + 1))) = y n |
| 87 | rw [hy, ih] |
| 88 | |
| 89 | include hS hA in |
| 90 | theorem limit_surjective : Function.Surjective (limMap S.g) := by |
| 91 | intro z |
| 92 | let x : ∀ n, S.X₃.obj (op n) := fun n => limit.π S.X₃ (op n) z |
| 93 | have hx : ∀ n, transition R S.X₃ n (x (n + 1)) = x n := fun n => |
| 94 | ConcreteCategory.congr_hom (limit.w S.X₃ (homOfLE (Nat.le_succ n)).op) z |
| 95 | let y : ∀ n, S.X₂.obj (op n) := fun n => (SequentialLimitLifting.lifts R S hS hA x hx n).val |
| 96 | let s : (S.X₂ ⋙ forget (ModuleCat.{v} R)).sections := ⟨fun n => y n.unop, fun {i j} f => |
| 97 | compatible_all R S.X₂ y (lifts_compatible R S hS hA x hx) (leOfHom f.unop)⟩ |
| 98 | let e := Types.isLimitEquivSections (isLimitOfPreserves (forget (ModuleCat.{v} R)) (limit.isLimit S.X₂)) |
| 99 | refine ⟨e.symm s, ?_⟩ |
| 100 | apply Concrete.limit_ext S.X₃ |
| 101 | intro n |
| 102 | have he := Types.isLimitEquivSections_symm_apply |
| 103 | (isLimitOfPreserves (forget (ModuleCat.{v} R)) (limit.isLimit S.X₂)) s n |
| 104 | have hm := ConcreteCategory.congr_hom (limMap_π S.g n) (e.symm s) |
| 105 | change limit.π S.X₃ n (limMap S.g (e.symm s)) = S.g.app n (limit.π S.X₂ n (e.symm s)) at hm |
| 106 | exact hm.trans ((congrArg (S.g.app n) he).trans (SequentialLimitLifting.lifts R S hS hA x hx n.unop).property) |
| 107 | |
| 108 | include hS hA in |
| 109 | theorem limit_epi : Epi (limMap S.g) := |
| 110 | (ModuleCat.epi_iff_surjective _).mpr (limit_surjective R S hS hA) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.SequentialLimit.SequentialLimitLifting |