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.HomCoefficientFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.DualFrame |
| 3 | |
| 4 | /-! # Hom Presheaf Dual Frame -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.HomPresheafDualFrame |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite dual frame detects maps out of coefficient Hom after any |
| 11 | additive construction, in particular supported Čech total cohomology. -/ |
| 12 | open _root_.CategoryTheory |
| 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 v w |
| 17 | variable {C : Type v} [Category C] (R : Type u) [CommRing R] |
| 18 | (P : C ⥤ ModuleCat.{u} R) (M : ModuleCat.{u} R) |
| 19 | |
| 20 | def evaluation (x : M) : HomCoefficientFunctor.homPresheaf R P M ⟶ P where |
| 21 | app a := ModuleCat.ofHom (LinearMap.applyₗ (R := R) x) |
| 22 | naturality a b f := by |
| 23 | apply ModuleCat.hom_ext |
| 24 | apply LinearMap.ext |
| 25 | intro φ |
| 26 | rfl |
| 27 | |
| 28 | def coefficient (l : M →ₗ[R] R) : P ⟶ HomCoefficientFunctor.homPresheaf R P M where |
| 29 | app a := ModuleCat.ofHom |
| 30 | { toFun x := l.smulRight x |
| 31 | map_add' x y := by ext m; exact smul_add _ _ _ |
| 32 | map_smul' r x := by ext m; exact smul_comm _ _ _ } |
| 33 | naturality a b f := by |
| 34 | apply ModuleCat.hom_ext |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | apply LinearMap.ext |
| 38 | intro m |
| 39 | exact ((P.map f).hom.map_smul (l m) x).symm |
| 40 | |
| 41 | variable {ι : Type u} [Fintype ι] (b : Finite.DualFrame.Frame R M ι) |
| 42 | |
| 43 | theorem reconstruct : (∑ i, evaluation R P M (b.vector i) ≫ coefficient R P M (b.coord i)) = |
| 44 | 𝟙 (HomCoefficientFunctor.homPresheaf R P M) := by |
| 45 | apply NatTrans.ext |
| 46 | funext a |
| 47 | apply ModuleCat.hom_ext |
| 48 | apply LinearMap.ext |
| 49 | intro φ |
| 50 | apply LinearMap.ext |
| 51 | intro x |
| 52 | change M →ₗ[R] P.obj a at φ |
| 53 | have h := congrArg (fun y : M => φ y) (b.reconstruct x) |
| 54 | simp only [NatTrans.app_sum, ModuleCat.hom_sum, LinearMap.sum_apply, |
| 55 | NatTrans.comp_app, ModuleCat.hom_comp, LinearMap.comp_apply, |
| 56 | NatTrans.id_app, ModuleCat.hom_id, LinearMap.id_apply] |
| 57 | change (∑ i, (b.coord i).smulRight (φ (b.vector i))) x = φ x |
| 58 | simpa only [LinearMap.sum_apply, LinearMap.smulRight_apply, |
| 59 | map_sum, LinearMap.map_smul] using h |
| 60 | |
| 61 | variable {D : Type*} [Category* D] [Preadditive D] |
| 62 | (F : (C ⥤ ModuleCat.{u} R) ⥤ D) [F.Additive] |
| 63 | |
| 64 | theorem mapped_reconstruct : (∑ i, F.map (evaluation R P M (b.vector i)) ≫ |
| 65 | F.map (coefficient R P M (b.coord i))) = 𝟙 (F.obj (HomCoefficientFunctor.homPresheaf R P M)) := by |
| 66 | simp only [← F.map_comp] |
| 67 | rw [← F.map_sum, HomPresheafDualFrame.reconstruct, F.map_id] |
| 68 | |
| 69 | theorem jointly_monic {T : D} (a a' : T ⟶ F.obj (HomCoefficientFunctor.homPresheaf R P M)) |
| 70 | (h : ∀ i, a ≫ F.map (evaluation R P M (b.vector i)) = |
| 71 | a' ≫ F.map (evaluation R P M (b.vector i))) : a = a' := by |
| 72 | calc |
| 73 | a = a ≫ (∑ i, F.map (evaluation R P M (b.vector i)) ≫ |
| 74 | F.map (coefficient R P M (b.coord i))) := by rw [mapped_reconstruct, Category.comp_id] |
| 75 | _ = a' ≫ (∑ i, F.map (evaluation R P M (b.vector i)) ≫ |
| 76 | F.map (coefficient R P M (b.coord i))) := by |
| 77 | simp only [Preadditive.comp_sum, ← Category.assoc] |
| 78 | exact Finset.sum_congr rfl (fun i _ => congrArg (· ≫ F.map (coefficient R P M (b.coord i))) (h i)) |
| 79 | _ = a' := by rw [mapped_reconstruct, Category.comp_id] |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.HomPresheafDualFrame |