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.AbelianModuli.HilbertConstruction.Module.InverseImageMates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Additive.SheafInverseImageComposition |
| 3 | |
| 4 | /-! # Inverse Image Identity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.InverseImageIdentity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility of the actual inverse-image comparison with the identity morphism. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | theorem moduleInverseImageSquare_id (X : Scheme.{u}) : |
| 15 | (InverseImageMates.moduleInverseImageSquare (𝟙 X)).whiskerLeft (Scheme.Modules.pullbackId X).hom = |
| 16 | (TwoSquare.vId (SheafOfModules.toSheaf X.ringCatSheaf)).whiskerRight |
| 17 | (Additive.SheafInverseImageComposition.additiveSheafInverseImageIdIso X.carrier).hom := by |
| 18 | let F : X.Modules ⥤ X.carrier.Sheaf AddCommGrpCat.{u} := SheafOfModules.toSheaf X.ringCatSheaf |
| 19 | let P := Scheme.Modules.pullback (𝟙 X) |
| 20 | let R := Scheme.Modules.pushforward (𝟙 X) |
| 21 | let L := TopCat.Sheaf.pullback AddCommGrpCat.{u} (𝟙 X.carrier) |
| 22 | let A := TopCat.Sheaf.pushforward AddCommGrpCat.{u} (𝟙 X.carrier) |
| 23 | let s : TwoSquare F P L F := InverseImageMates.moduleInverseImageSquare (𝟙 X) |
| 24 | let v : TwoSquare F (𝟭 X.Modules) (𝟭 (X.carrier.Sheaf AddCommGrpCat.{u})) F := TwoSquare.vId F |
| 25 | let u : TwoSquare R F F A := InverseImageMates.moduleUnderlyingPushforwardSquare (𝟙 X) |
| 26 | let pm : P ⟶ 𝟭 X.Modules := (Scheme.Modules.pullbackId X).hom |
| 27 | let pa : L ⟶ 𝟭 (X.carrier.Sheaf AddCommGrpCat.{u}) := (Additive.SheafInverseImageComposition.additiveSheafInverseImageIdIso X.carrier).hom |
| 28 | let rm : 𝟭 X.Modules ⟶ R := (Scheme.Modules.pushforwardId X).inv |
| 29 | let ra : 𝟭 (X.carrier.Sheaf AddCommGrpCat.{u}) ⟶ A := (Additive.SheafInverseImageComposition.additiveSheafPushforwardIdIso X.carrier).inv |
| 30 | let am := Scheme.Modules.pullbackPushforwardAdjunction (𝟙 X) |
| 31 | let aa := TopCat.Sheaf.pullbackPushforwardAdjunction AddCommGrpCat.{u} (𝟙 X.carrier) |
| 32 | have ha : conjugateEquiv Adjunction.id aa pa = ra := |
| 33 | Adjunction.conjugateEquiv_leftAdjointIdIso_hom aa (Additive.SheafInverseImageComposition.additiveSheafPushforwardIdIso X.carrier) |
| 34 | have hm : conjugateEquiv Adjunction.id am pm = rm := |
| 35 | Scheme.Modules.conjugateEquiv_pullbackId_hom X |
| 36 | have hs : mateEquiv am aa s = u := InverseImageMates.moduleInverseImageSquare_mate (𝟙 X) |
| 37 | have hl : mateEquiv Adjunction.id aa (s.whiskerLeft pm) = u.whiskerTop rm := |
| 38 | (conjugateEquiv_mateEquiv_vcomp Adjunction.id am aa pm s).trans |
| 39 | (congrArg₂ (fun (w : TwoSquare R F F A) (r : 𝟭 X.Modules ⟶ R) => |
| 40 | w.whiskerTop r) hs hm) |
| 41 | have hr : mateEquiv Adjunction.id aa (v.whiskerRight pa) = |
| 42 | (mateEquiv Adjunction.id Adjunction.id v).whiskerBottom ra := |
| 43 | (mateEquiv_conjugateEquiv_vcomp Adjunction.id Adjunction.id aa v pa).trans |
| 44 | (congrArg (fun r => (mateEquiv Adjunction.id Adjunction.id v).whiskerBottom r) ha) |
| 45 | have hp : u.whiskerTop rm = |
| 46 | (mateEquiv Adjunction.id Adjunction.id v).whiskerBottom ra := by |
| 47 | ext M |
| 48 | rfl |
| 49 | change s.whiskerLeft pm = v.whiskerRight pa |
| 50 | exact (mateEquiv Adjunction.id aa).injective (hl.trans (hp.trans hr.symm)) |
| 51 | |
| 52 | theorem moduleInverseImageComparison_id (X : Scheme.{u}) (M : X.Modules) : |
| 53 | InverseImageComparison.moduleInverseImageComparison (𝟙 X) M ≫ |
| 54 | (SheafOfModules.toSheaf X.ringCatSheaf).map ((Scheme.Modules.pullbackId X).hom.app M) = |
| 55 | (Additive.SheafInverseImageComposition.additiveSheafInverseImageIdIso X.carrier).hom.app |
| 56 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M) := by |
| 57 | let F : X.Modules ⥤ X.carrier.Sheaf AddCommGrpCat.{u} := SheafOfModules.toSheaf X.ringCatSheaf |
| 58 | let P := Scheme.Modules.pullback (𝟙 X) |
| 59 | let L := TopCat.Sheaf.pullback AddCommGrpCat.{u} (𝟙 X.carrier) |
| 60 | let s : TwoSquare F P L F := InverseImageMates.moduleInverseImageSquare (𝟙 X) |
| 61 | let v : TwoSquare F (𝟭 X.Modules) (𝟭 (X.carrier.Sheaf AddCommGrpCat.{u})) F := TwoSquare.vId F |
| 62 | let pm : P ⟶ 𝟭 X.Modules := (Scheme.Modules.pullbackId X).hom |
| 63 | let pa : L ⟶ 𝟭 (X.carrier.Sheaf AddCommGrpCat.{u}) := (Additive.SheafInverseImageComposition.additiveSheafInverseImageIdIso X.carrier).hom |
| 64 | have h : (s.whiskerLeft pm).app M = (v.whiskerRight pa).app M := |
| 65 | congr_app (moduleInverseImageSquare_id X) M |
| 66 | have hv : v.app M = 𝟙 (F.obj M) := Category.id_comp _ |
| 67 | have h' : s.app M ≫ F.map (pm.app M) = pa.app (F.obj M) := |
| 68 | h.trans ((congrArg (fun w => pa.app (F.obj M) ≫ w) hv).trans (Category.comp_id _)) |
| 69 | have hs : s.app M = InverseImageComparison.moduleInverseImageComparison (𝟙 X) M := InverseImageMates.moduleInverseImageSquare_app _ _ |
| 70 | exact (congrArg (fun w => w ≫ F.map (pm.app M)) hs).symm.trans h' |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.InverseImageIdentity |