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.Module.SheafLinear |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 4 | |
| 5 | /-! # Constant Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.ConstantSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: elements of constant coefficient modules give actual degree-zero Ext sections |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | open Abelian |
| 18 | |
| 19 | universe u v w z |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] (R : Type w) [CommRing R] |
| 22 | (J : GrothendieckTopology C) [HasSheafify J (ModuleCat.{w} R)] |
| 23 | |
| 24 | def elementHom (M : ModuleCat.{w} R) : M ≃ₗ[R] (ModuleCat.of R R ⟶ M) := |
| 25 | (LinearMap.ringLmapEquivSelf R R M).symm.trans |
| 26 | (ModuleCat.homLinearEquiv (R := R) (S := R) (M := ModuleCat.of R R) (N := M)).symm |
| 27 | |
| 28 | theorem elementHom_natural {M N : ModuleCat.{w} R} (g : M ⟶ N) (m : M) : |
| 29 | elementHom R M m ≫ g = elementHom R N (g m) := by |
| 30 | apply ModuleCat.hom_ext |
| 31 | apply LinearMap.ext |
| 32 | intro r |
| 33 | change g (r • m) = r • g m |
| 34 | exact g.hom.map_smul r m |
| 35 | |
| 36 | abbrev constantUnit : Sheaf J (ModuleCat.{w} R) := |
| 37 | (constantSheaf J (ModuleCat.{w} R)).obj (ModuleCat.of R R) |
| 38 | |
| 39 | variable [HasExt.{z} (Sheaf J (ModuleCat.{w} R))] |
| 40 | |
| 41 | def globalElement (M : ModuleCat.{w} R) : M →ₗ[R] |
| 42 | Ext.{z} (constantUnit R J) ((constantSheaf J (ModuleCat.{w} R)).obj M) 0 := |
| 43 | (Ext.linearEquiv₀ (R := R) (X := constantUnit R J) |
| 44 | (Y := (constantSheaf J (ModuleCat.{w} R)).obj M)).symm.toLinearMap.comp |
| 45 | (((constantSheaf J (ModuleCat.{w} R)).mapLinearMap R).comp (elementHom R M).toLinearMap) |
| 46 | |
| 47 | theorem globalElement_apply (M : ModuleCat.{w} R) (m : M) : |
| 48 | globalElement R J M m = Ext.mk₀ ((constantSheaf J (ModuleCat.{w} R)).map (elementHom R M m)) := rfl |
| 49 | |
| 50 | theorem globalElement_natural {M N : ModuleCat.{w} R} (g : M ⟶ N) (m : M) : |
| 51 | (IntegralComparison.Ext.ModuleFunctor.functor R (constantUnit R J) 0).map |
| 52 | ((constantSheaf J (ModuleCat.{w} R)).map g) (globalElement R J M m) = |
| 53 | globalElement R J N (g m) := by |
| 54 | change (Ext.mk₀ ((constantSheaf J (ModuleCat.{w} R)).map (elementHom R M m))).comp |
| 55 | (Ext.mk₀ ((constantSheaf J (ModuleCat.{w} R)).map g)) (add_zero 0) = |
| 56 | Ext.mk₀ ((constantSheaf J (ModuleCat.{w} R)).map (elementHom R N (g m))) |
| 57 | rw [Ext.mk₀_comp_mk₀, ← Functor.map_comp, elementHom_natural] |
| 58 | |
| 59 | def sectionMap (M : ModuleCat.{w} R) (N : Sheaf J (ModuleCat.{w} R)) |
| 60 | (α : (constantSheaf J (ModuleCat.{w} R)).obj M ⟶ N) : M →ₗ[R] Ext.{z} (constantUnit R J) N 0 := |
| 61 | ((IntegralComparison.Ext.ModuleFunctor.functor R (constantUnit R J) 0).map α).hom.comp (globalElement R J M) |
| 62 | |
| 63 | theorem section_apply (M : ModuleCat.{w} R) (N : Sheaf J (ModuleCat.{w} R)) |
| 64 | (α : (constantSheaf J (ModuleCat.{w} R)).obj M ⟶ N) (m : M) : |
| 65 | sectionMap R J M N α m = Ext.mk₀ ((constantSheaf J (ModuleCat.{w} R)).map (elementHom R M m) ≫ α) := |
| 66 | Ext.mk₀_comp_mk₀ _ _ |
| 67 | |
| 68 | theorem section_natural {M M' : ModuleCat.{w} R} {N N' : Sheaf J (ModuleCat.{w} R)} |
| 69 | (g : M ⟶ M') (h : N ⟶ N') |
| 70 | (α : (constantSheaf J (ModuleCat.{w} R)).obj M ⟶ N) |
| 71 | (α' : (constantSheaf J (ModuleCat.{w} R)).obj M' ⟶ N') |
| 72 | (hc : (constantSheaf J (ModuleCat.{w} R)).map g ≫ α' = α ≫ h) (m : M) : |
| 73 | (IntegralComparison.Ext.ModuleFunctor.functor R (constantUnit R J) 0).map h (sectionMap R J M N α m) = |
| 74 | sectionMap R J M' N' α' (g m) := by |
| 75 | change (sectionMap R J M N α m).comp (Ext.mk₀ h) (add_zero 0) = _ |
| 76 | rw [section_apply, Ext.mk₀_comp_mk₀, section_apply] |
| 77 | apply congrArg (fun a : constantUnit R J ⟶ N' => (Ext.mk₀ a : Ext.{z} (constantUnit R J) N' 0)) |
| 78 | rw [Category.assoc, ← hc, ← Category.assoc, ← Functor.map_comp, elementHom_natural] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.ConstantSections |