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.Limits.Preserves.Opposites |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionShift |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.CyclesExactFunctor |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceMappedSequenceConnecting |
| 5 | |
| 6 | /-! # Exact Functor Shift -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorShift |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual dimension-shift comparison commutes with exact functors and native cycle transport. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | attribute [local instance] preservesFiniteLimits_op preservesFiniteColimits_op |
| 17 | |
| 18 | open Abelian OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionCycles |
| 19 | |
| 20 | universe u v u' v' z t |
| 21 | |
| 22 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 23 | {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{z} D] |
| 24 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 25 | (R : Type t) [CommRing R] [Linear R C] [Linear R D] (Y : C) |
| 26 | |
| 27 | private theorem transport {Z : Cᵒᵖ} {d d' : ℕ} (hd : d = d') |
| 28 | {U V : Type z} [AddCommGroup U] [Module R U] [AddCommGroup V] [Module R V] |
| 29 | (e : U ≃ₗ[R] Ext.{z} Z.unop Y d) (e' : V ≃ₗ[R] Ext.{z} (F.op.obj Z).unop (F.obj Y) d) |
| 30 | (x : U) (y : V) (h : e' y = (e x).mapExactFunctor F) : |
| 31 | (hd ▸ e') y = ((hd ▸ e) x).mapExactFunctor F := by |
| 32 | subst d' |
| 33 | exact h |
| 34 | |
| 35 | variable (K : CochainComplex Cᵒᵖ ℕ) |
| 36 | |
| 37 | local notation "L" => Functor.obj (Functor.mapHomologicalComplex F.op (ComplexShape.up ℕ)) K |
| 38 | |
| 39 | def cycleMap (n q : ℕ) (α : Ext.{z} (Augmented.ResolutionCycles.differentialSequence K n).cycles.unop Y (q + 1)) : |
| 40 | Ext.{z} (Augmented.ResolutionCycles.differentialSequence L n).cycles.unop (F.obj Y) (q + 1) := |
| 41 | (Ext.mk₀ (Augmented.CyclesExactFunctor.cyclesIso F.op K n).hom.unop).precomp |
| 42 | (F.obj Y) (zero_add (q + 1)) (α.mapExactFunctor F) |
| 43 | |
| 44 | variable {Z : Cᵒᵖ} (ι : (CochainComplex.single₀ Cᵒᵖ).obj Z ⟶ K) |
| 45 | (κ : (CochainComplex.single₀ Dᵒᵖ).obj (F.op.obj Z) ⟶ |
| 46 | (F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K) (hκ : κ.f 0 = F.op.map (ι.f 0)) |
| 47 | [QuasiIso ι] [QuasiIso κ] |
| 48 | (hK : ∀ a q, Subsingleton (Ext.{z} (K.X a).unop Y (q + 1))) |
| 49 | (hL : ∀ a q, Subsingleton (Ext.{z} (((F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).X a).unop (F.obj Y) (q + 1))) |
| 50 | |
| 51 | include hκ in |
| 52 | theorem cycles (n q : ℕ) (α : Ext.{z} (Augmented.ResolutionCycles.differentialSequence K n).cycles.unop Y (q + 1)) : |
| 53 | ResolutionShift.cycleExtEquiv R (F.obj Y) L κ hL n q (cycleMap F Y K n q α) = |
| 54 | (ResolutionShift.cycleExtEquiv R Y K ι hK n q α).mapExactFunctor F := by |
| 55 | induction n generalizing q with |
| 56 | | zero => |
| 57 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.initialSequence K ι).unop.X₂ Y (q + 1)) := hK 0 q |
| 58 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.initialSequence K ι).unop.X₂ Y (q + 1 + 1)) := hK 0 (q + 1) |
| 59 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.initialSequence L κ).unop.X₂ (F.obj Y) (q + 1)) := hL 0 q |
| 60 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.initialSequence L κ).unop.X₂ (F.obj Y) (q + 1 + 1)) := hL 0 (q + 1) |
| 61 | apply transport F R Y (show q + 1 + 1 = 0 + q + 2 by omega) |
| 62 | (IntegralComparison.Ext.SourceDimensionShift.linearEquivalence (Augmented.ResolutionCycles.initialSequence_shortExact K ι).unop Y (q + 1) R) |
| 63 | (IntegralComparison.Ext.SourceDimensionShift.linearEquivalence (Augmented.ResolutionCycles.initialSequence_shortExact L κ).unop (F.obj Y) (q + 1) R) |
| 64 | have h := IntegralComparison.Ext.SourceMappedSequenceConnecting.connecting F Y (Augmented.ResolutionCycles.initialSequence_shortExact K ι) |
| 65 | (Augmented.ResolutionCycles.initialSequence_shortExact L κ) (Augmented.CyclesExactFunctor.initialIso F.op K ι κ hκ).hom (q + 1) α |
| 66 | exact h.trans (Ext.mk₀_id_comp _) |
| 67 | | succ n ih => |
| 68 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.successiveSequence K n).unop.X₂ Y (q + 1)) := hK (n + 1) q |
| 69 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.successiveSequence K n).unop.X₂ Y (q + 1 + 1)) := hK (n + 1) (q + 1) |
| 70 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.successiveSequence L n).unop.X₂ (F.obj Y) (q + 1)) := hL (n + 1) q |
| 71 | let : Subsingleton (Ext.{z} (Augmented.ResolutionCycles.successiveSequence L n).unop.X₂ (F.obj Y) (q + 1 + 1)) := hL (n + 1) (q + 1) |
| 72 | apply transport F R Y (show n + (q + 1) + 2 = n + 1 + q + 2 by omega) |
| 73 | ((IntegralComparison.Ext.SourceDimensionShift.linearEquivalence (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n).unop Y (q + 1) R).trans |
| 74 | (ResolutionShift.cycleExtEquiv R Y K ι hK n (q + 1))) |
| 75 | ((IntegralComparison.Ext.SourceDimensionShift.linearEquivalence (Augmented.ResolutionCycles.successiveSequence_shortExact L κ n).unop (F.obj Y) (q + 1) R).trans |
| 76 | (ResolutionShift.cycleExtEquiv R (F.obj Y) L κ hL n (q + 1))) |
| 77 | have h := IntegralComparison.Ext.SourceMappedSequenceConnecting.connecting F Y (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n) |
| 78 | (Augmented.ResolutionCycles.successiveSequence_shortExact L κ n) (Augmented.CyclesExactFunctor.successiveIso F.op K n).hom (q + 1) α |
| 79 | exact (congrArg (ResolutionShift.cycleExtEquiv R (F.obj Y) L κ hL n (q + 1)) h).trans |
| 80 | (ih (q + 1) (IntegralComparison.Ext.SourceDimensionShift.connecting (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n).unop Y (q + 1) α)) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorShift |