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.AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar |
| 2 | |
| 3 | /-! # Framed Hom -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedHom |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Coordinates of morphisms between trivialized line bundles and their |
| 10 | compatibility with arbitrary scheme pullback. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar |
| 17 | |
| 18 | variable {X Y : Scheme.{u}} {M N : X.Modules} |
| 19 | variable (eM : M ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X) (eN : N ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X) |
| 20 | |
| 21 | def framedHom (r : Γ(X, ⊤)) : M ⟶ N := |
| 22 | eM.hom ≫ ModuleScalar.scalarEnd (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X) r ≫ eN.inv |
| 23 | |
| 24 | def framedCoefficient (q : M ⟶ N) : Γ(X, ⊤) := |
| 25 | ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSections.Construction.structureSheafEndRingEquiv X (eM.inv ≫ q ≫ eN.hom) |
| 26 | |
| 27 | theorem framedHom_coefficient (q : M ⟶ N) : framedHom eM eN (framedCoefficient eM eN q) = q := by |
| 28 | unfold framedHom framedCoefficient |
| 29 | rw [ModuleScalar.scalarEnd_structure] |
| 30 | simp only [Category.assoc, Iso.hom_inv_id_assoc, Iso.hom_inv_id, Category.comp_id] |
| 31 | |
| 32 | theorem framedCoefficient_hom (r : Γ(X, ⊤)) : framedCoefficient eM eN (framedHom eM eN r) = r := by |
| 33 | unfold framedCoefficient framedHom |
| 34 | simp only [Category.assoc, Iso.inv_hom_id_assoc, Iso.inv_hom_id, Category.comp_id] |
| 35 | change X.presheaf.map (𝟙 (.op ⊤)) r * 1 = r |
| 36 | simp |
| 37 | |
| 38 | def framedHomEquiv : Γ(X, ⊤) ≃ (M ⟶ N) where |
| 39 | toFun := framedHom eM eN |
| 40 | invFun := framedCoefficient eM eN |
| 41 | left_inv := framedCoefficient_hom eM eN |
| 42 | right_inv := framedHom_coefficient eM eN |
| 43 | |
| 44 | theorem framedCoefficient_congr {M' N' : X.Modules} |
| 45 | (a : M' ≅ M) (b : N' ≅ N) (q : M' ⟶ N') : |
| 46 | framedCoefficient (a ≪≫ eM) (b ≪≫ eN) q = |
| 47 | framedCoefficient eM eN (a.inv ≫ q ≫ b.hom) := by |
| 48 | simp only [framedCoefficient, Iso.trans_inv, Iso.trans_hom, Category.assoc] |
| 49 | |
| 50 | def pullbackFrame (f : Y ⟶ X) (eM : M ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X) : |
| 51 | (Scheme.Modules.pullback f).obj M ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule Y := |
| 52 | (Scheme.Modules.pullback f).mapIso eM ≪≫ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.pullbackStructureSheafIso f |
| 53 | |
| 54 | theorem framedHom_pullback (f : Y ⟶ X) (r : Γ(X, ⊤)) : |
| 55 | (Scheme.Modules.pullback f).map (framedHom eM eN r) = |
| 56 | framedHom (pullbackFrame f eM) (pullbackFrame f eN) (f.appTop r) := by |
| 57 | let L := Scheme.Modules.pullback f |
| 58 | let v := ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.pullbackStructureSheafIso f |
| 59 | change L.map (eM.hom ≫ ModuleScalar.scalarEnd (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X) r ≫ eN.inv) = |
| 60 | (L.map eM.hom ≫ v.hom) ≫ ModuleScalar.scalarEnd (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule Y) (f.appTop r) ≫ |
| 61 | (v.inv ≫ L.map eN.inv) |
| 62 | rw [L.map_comp, L.map_comp, ModuleScalar.scalarEnd_pullback] |
| 63 | have hn := congrArg (fun q ↦ q ≫ v.inv) (ModuleScalar.scalarEnd_naturality v.hom (f.appTop r)) |
| 64 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id] at hn |
| 65 | simpa only [Category.assoc] using |
| 66 | congrArg (fun q ↦ L.map eM.hom ≫ q ≫ L.map eN.inv) hn |
| 67 | |
| 68 | /-- The coefficient of the actual pulled-back module map is the |
| 69 | pullback of its original regular-function coefficient. -/ |
| 70 | theorem framedCoefficient_pullback (f : Y ⟶ X) (q : M ⟶ N) : |
| 71 | framedCoefficient (pullbackFrame f eM) (pullbackFrame f eN) |
| 72 | ((Scheme.Modules.pullback f).map q) = f.appTop (framedCoefficient eM eN q) := by |
| 73 | apply (framedHomEquiv (pullbackFrame f eM) (pullbackFrame f eN)).injective |
| 74 | change framedHom (pullbackFrame f eM) (pullbackFrame f eN) |
| 75 | (framedCoefficient (pullbackFrame f eM) (pullbackFrame f eN) |
| 76 | ((Scheme.Modules.pullback f).map q)) = |
| 77 | framedHom (pullbackFrame f eM) (pullbackFrame f eN) (f.appTop (framedCoefficient eM eN q)) |
| 78 | rw [framedHom_coefficient, ← framedHom_pullback, framedHom_coefficient] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedHom |