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.RelativeCrystalline.FreeModule |
| 2 | |
| 3 | /-! # Free Presheaf -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FreePresheaf |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: a natural finite basis identifies the actual relative form presheaf |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FormData OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FreeModule |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable {C : Type v} [Category.{w} C] {p : ℕ} {B : Type u} [CommRing B] |
| 20 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 21 | {f : X ⟶ Spec (CommRingCat.of B)} |
| 22 | (H Q : C ⥤ BigCrystallineSite.Object p B J δ f) (π : H ⟶ Q) (ι : Type) [Fintype ι] |
| 23 | |
| 24 | def map {U V : C} (α : U ⟶ V) : FreeModule.freeModule H ι V ⟶ FreeModule.freeModule H ι U := |
| 25 | ModuleCat.ofHom (X := FreeModule.freeModule H ι V) (Y := FreeModule.freeModule H ι U) |
| 26 | { toFun := fun x i => (H.map α).ringMap (x i) |
| 27 | map_add' := fun x y => funext (fun i => (H.map α).ringMap.toRingHom.map_add (x i) (y i)) |
| 28 | map_smul' := by |
| 29 | intro a x |
| 30 | funext i |
| 31 | change (H.map α).ringMap ((H.obj V).base a * x i) = |
| 32 | (H.obj U).base a * (H.map α).ringMap (x i) |
| 33 | exact ((H.map α).ringMap.toRingHom.map_mul _ _).trans |
| 34 | (congrArg (fun b : (H.obj U).ring => b * (H.map α).ringMap (x i)) |
| 35 | (DFunLike.congr_fun (H.map α).overBase a)) } |
| 36 | |
| 37 | def presheaf : Cᵒᵖ ⥤ ModuleCat.{u} B where |
| 38 | obj U := FreeModule.freeModule H ι U.unop |
| 39 | map α := FreePresheaf.map H ι α.unop |
| 40 | map_id U := by |
| 41 | apply ModuleCat.hom_ext |
| 42 | apply LinearMap.ext |
| 43 | intro x |
| 44 | funext i |
| 45 | change (H.map (𝟙 U.unop)).ringMap (x i) = x i |
| 46 | rw [H.map_id] |
| 47 | rfl |
| 48 | map_comp α β := by |
| 49 | apply ModuleCat.hom_ext |
| 50 | apply LinearMap.ext |
| 51 | intro x |
| 52 | funext i |
| 53 | change (H.map (β.unop ≫ α.unop)).ringMap (x i) = |
| 54 | (H.map β.unop).ringMap ((H.map α.unop).ringMap (x i)) |
| 55 | rw [H.map_comp] |
| 56 | rfl |
| 57 | |
| 58 | def iso (n : ℕ) (b : ∀ U, Module.Basis ι (H.obj U).ring (FormData.Forms H Q π U n)) |
| 59 | (hb : ∀ {U V} (α : U ⟶ V) i, FormData.formsMap H Q π α n (b V i) = b U i) : |
| 60 | presheaf H ι ≅ ModuleMaps.formsPresheaf H Q π n := |
| 61 | NatIso.ofComponents (fun U => (FreeModule.linearEquiv H Q π ι U.unop n (b U.unop)).toModuleIso) (by |
| 62 | intro U V α |
| 63 | apply ModuleCat.hom_ext |
| 64 | apply LinearMap.ext |
| 65 | intro x |
| 66 | exact (FreeModule.basis_map H Q π ι α.unop n (b V.unop) (b U.unop) (hb α.unop) x).symm) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FreePresheaf |