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.Relative.PureRefinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PushforwardRelativeAdditiveCech |
| 3 | |
| 4 | /-! # Pure Pushforward Refinement -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Relative.PurePushforwardRefinement |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Relative refinement is invertible for a pure complex whose survivor |
| 11 | is an actual pushforward. Coverage is required only on that source. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | private theorem square_isIso {C : Type*} [Category C] {A B D E : C} |
| 18 | (a : A ⟶ B) (b : D ⟶ E) (e : A ⟶ D) (f : B ⟶ E) |
| 19 | [IsIso b] [IsIso e] [IsIso f] (h : e ≫ b = a ≫ f) : IsIso a := by |
| 20 | have ha : a = e ≫ b ≫ inv f := by |
| 21 | simpa only [Category.assoc, IsIso.hom_inv_id, Category.comp_id] using |
| 22 | (congrArg (· ≫ inv f) h).symm |
| 23 | rw [ha] |
| 24 | infer_instance |
| 25 | |
| 26 | variable {X Y : Scheme.{u}} [X.IsSeparated] [Y.IsSeparated] |
| 27 | (f : X ⟶ Y) (U : Y.Opens) (hU : IsAffineOpen U) |
| 28 | {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 29 | (V : ι → Y.Opens) (hV : ∀ i, IsAffineOpen (V i)) |
| 30 | (W : κ → Y.Opens) (hW : ∀ i, IsAffineOpen (W i)) |
| 31 | (r : FormalCoproduct.mk κ W ⟶ FormalCoproduct.mk ι V) |
| 32 | (O : X.Opens) |
| 33 | (hVO : iSup (fun i => f ⁻¹ᵁ (U ⊓ V i)) = O) |
| 34 | (hWO : iSup (fun i => f ⁻¹ᵁ (U ⊓ W i)) = O) |
| 35 | (haV : ∀ i, IsAffineOpen (f ⁻¹ᵁ (U ⊓ V i))) |
| 36 | (haW : ∀ i, IsAffineOpen (f ⁻¹ᵁ (U ⊓ W i))) |
| 37 | (K : CochainComplex Y.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] |
| 38 | (c : ℕ) (hK : ∀ q, q ≠ c → K.ExactAt q) |
| 39 | (M : X.Modules) [hM : M.IsQuasicoherent] |
| 40 | (e : K.homology c ≅ (Scheme.Modules.pushforward f).obj M) |
| 41 | |
| 42 | def survivorIso : |
| 43 | AdditiveCechConcentration.coefficients ((single Y.Modules (.up ℕ) c).obj (K.homology c)) ≅ |
| 44 | PushforwardRelativeAdditiveCech.coefficientComplex f ((single X.Modules (.up ℕ) c).obj M) := |
| 45 | ((Scheme.Modules.toPresheaf Y).mapHomologicalComplex (.up ℕ)).mapIso |
| 46 | ((single Y.Modules (.up ℕ) c).mapIso e ≪≫ |
| 47 | ((singleMapHomologicalComplex (Scheme.Modules.pushforward f) (.up ℕ) c).app M).symm) |
| 48 | |
| 49 | include O hVO hWO haV haW M hM e in |
| 50 | omit [Y.IsSeparated] [∀ (q : ℕ), (K.X q).IsQuasicoherent] in |
| 51 | theorem survivor_isIso (q : ℕ) : IsIso (RelativeCech.Refinement.homology U V W r |
| 52 | (AdditiveCechConcentration.coefficients ((single Y.Modules (.up ℕ) c).obj (K.homology c))) q) := by |
| 53 | let : ∀ k, (((single X.Modules (.up ℕ) c).obj M).X k).IsQuasicoherent := |
| 54 | QuasicoherentTruncation.single M c |
| 55 | let := PushforwardRelativeAdditiveCech.homology_isIso f U V W r O hVO hWO haV haW |
| 56 | ((single X.Modules (.up ℕ) c).obj M) q |
| 57 | let z := survivorIso f K c M e |
| 58 | let α := homologyMap (RelativeCech.Total.sourceMap U V z.hom) q |
| 59 | let β := homologyMap (RelativeCech.Total.sourceMap U W z.hom) q |
| 60 | let : IsIso α := by |
| 61 | change IsIso (((RelativeCech.Total.localFunctor U V).mapHomologicalComplex (.up ℕ) ⋙ |
| 62 | HomologicalComplex₂.totalFunctor AddCommGrpCat.{u} (.up ℕ) (.up ℕ) (.up ℕ) ⋙ |
| 63 | homologyFunctor AddCommGrpCat.{u} (.up ℕ) q).map z.hom) |
| 64 | infer_instance |
| 65 | let : IsIso β := by |
| 66 | change IsIso (((RelativeCech.Total.localFunctor U W).mapHomologicalComplex (.up ℕ) ⋙ |
| 67 | HomologicalComplex₂.totalFunctor AddCommGrpCat.{u} (.up ℕ) (.up ℕ) (.up ℕ) ⋙ |
| 68 | homologyFunctor AddCommGrpCat.{u} (.up ℕ) q).map z.hom) |
| 69 | infer_instance |
| 70 | exact square_isIso _ _ α β (RelativeCech.Refinement.homology_naturality U V W r z.hom q) |
| 71 | |
| 72 | include hU hV hW hK O hVO hWO haV haW M hM e in |
| 73 | theorem isIso (q : ℕ) : |
| 74 | IsIso (RelativeCech.Refinement.homology U V W r (AdditiveCechConcentration.coefficients K) q) := by |
| 75 | let := survivor_isIso f U V W r O hVO hWO haV haW K c M e q |
| 76 | exact PureRefinement.isIso U hU V hV W hW r K c hK q |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Relative.PurePushforwardRefinement |