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.LinearHomOrientedPurity |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Linear |
| 3 | |
| 4 | /-! # Oriented Purity Target Frame -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrientedPurityTargetFrame |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Changing the target-line trivialization scales the normalized purity |
| 11 | by the actual scalar change of frame. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | section Homology |
| 22 | variable {ι : Type*} {c : ComplexShape ι} {K L : HomologicalComplex (ModuleCat.{u} R) c} |
| 23 | |
| 24 | theorem homologyMap_smul (r : R) (f : K ⟶ L) (i : ι) : |
| 25 | homologyMap (r • f) i = r • homologyMap f i := by |
| 26 | change ShortComplex.homologyMap (r • (shortComplexFunctor (ModuleCat R) c i).map f) = _ |
| 27 | exact ShortComplex.homologyMap_smul _ _ |
| 28 | |
| 29 | end Homology |
| 30 | |
| 31 | variable (P : ChainComplex (ModuleCat.{u} R) ℕ) (N : ModuleCat.{u} R) |
| 32 | (e e' : N ≅ ModuleCat.of R R) |
| 33 | |
| 34 | def toDual : |
| 35 | ((((linearYoneda R (ModuleCat R)).obj N).mapHomologicalComplex |
| 36 | (ComplexShape.down ℕ).symm).obj P.op) ⟶ DualComplexHomology.complex R P := |
| 37 | ((NatIso.mapHomologicalComplex ((linearYoneda R (ModuleCat R)).mapIso e) |
| 38 | (ComplexShape.down ℕ).symm).app P.op).hom ≫ (LinearHomDualPurity.complexIso R P).hom |
| 39 | |
| 40 | theorem toDual_apply (m : ℕ) (a : P.X m ⟶ N) : |
| 41 | ((toDual R P N e).f m).hom a = e.hom.hom.comp a.hom := rfl |
| 42 | |
| 43 | theorem toDual_scale (r : R) (h : e'.hom = r • e.hom) : |
| 44 | toDual R P N e' = r • toDual R P N e := by |
| 45 | apply HomologicalComplex.Hom.ext |
| 46 | funext m |
| 47 | apply ModuleCat.hom_ext |
| 48 | apply LinearMap.ext |
| 49 | intro a |
| 50 | change P.X m ⟶ N at a |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | change e'.hom (a x) = r • e.hom (a x) |
| 54 | exact congrArg (fun f : N ⟶ ModuleCat.of R R => f (a x)) h |
| 55 | |
| 56 | theorem targetHomologyIso_hom (m : ℕ) : |
| 57 | (LinearHomDualPurity.targetHomologyIso R P N e m).hom = |
| 58 | homologyMap (toDual R P N e) m := by |
| 59 | rw [toDual, homologyMap_comp] |
| 60 | rfl |
| 61 | |
| 62 | theorem targetHomologyIso_scale (r : R) (h : e'.hom = r • e.hom) (m : ℕ) : |
| 63 | (LinearHomDualPurity.targetHomologyIso R P N e' m).hom = |
| 64 | r • (LinearHomDualPurity.targetHomologyIso R P N e m).hom := by |
| 65 | rw [targetHomologyIso_hom, targetHomologyIso_hom, toDual_scale R P N e e' r h, |
| 66 | OrientedPurityTargetFrame.homologyMap_smul] |
| 67 | |
| 68 | theorem frame_scalar : e'.hom = e'.hom (e.inv 1) • e.hom := by |
| 69 | apply ModuleCat.hom_ext |
| 70 | apply LinearMap.ext |
| 71 | intro x |
| 72 | have hx : e.inv (e.hom x) = x := by |
| 73 | exact congrArg (fun f : N ⟶ N => f x) e.hom_inv_id |
| 74 | calc |
| 75 | e'.hom x = e'.hom (e.inv (e.hom x)) := congrArg e'.hom hx.symm |
| 76 | _ = e'.hom ((e.hom x) • e.inv 1) := by rw [← e.inv.hom.map_smul]; simp |
| 77 | _ = (e.hom x) * e'.hom (e.inv 1) := e'.hom.hom.map_smul _ _ |
| 78 | _ = e'.hom (e.inv 1) • e.hom x := mul_comm _ _ |
| 79 | |
| 80 | variable {n : ℕ} (I : Ideal R) (s : Fin n → R) |
| 81 | (hs : Koszul.OrientedTopCohomology.ideal R s = I) |
| 82 | (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 83 | (Q : ProjectiveResolution (ModuleCat.of R (R ⧸ I))) |
| 84 | |
| 85 | theorem purity_scale (r : R) (h : e'.hom = r • e.hom) : |
| 86 | (LinearHomOrientedPurity.iso R I s hs hreg Q N e').hom = |
| 87 | (LinearHomOrientedPurity.iso R I s hs hreg Q N e).hom ≫ |
| 88 | ModuleCat.ofHom (r • (LinearMap.id : (R ⧸ I) →ₗ[R] (R ⧸ I))) := by |
| 89 | dsimp only [LinearHomOrientedPurity.iso, Iso.trans_hom] |
| 90 | rw [targetHomologyIso_scale R Q.complex N e e' r h, Linear.smul_comp] |
| 91 | rw [show ModuleCat.ofHom (r • (LinearMap.id : (R ⧸ I) →ₗ[R] (R ⧸ I))) = |
| 92 | r • 𝟙 (ModuleCat.of R (R ⧸ I)) from rfl, Linear.comp_smul, Category.comp_id] |
| 93 | |
| 94 | theorem purity_frame : |
| 95 | (LinearHomOrientedPurity.iso R I s hs hreg Q N e').hom = |
| 96 | (LinearHomOrientedPurity.iso R I s hs hreg Q N e).hom ≫ |
| 97 | ModuleCat.ofHom (e'.hom (e.inv 1) • |
| 98 | (LinearMap.id : (R ⧸ I) →ₗ[R] (R ⧸ I))) := |
| 99 | purity_scale R N e e' I s hs hreg Q _ (frame_scalar R N e e') |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrientedPurityTargetFrame |