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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/Picard/DualPullback/RestrictComp.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.RestrictionCompositionAdjunction |
| 8 | |
| 9 | /-! # Restriction Pullback Composition -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.RestrictionPullbackComposition |
| 12 | |
| 13 | /-! Compatibility of the restriction/pullback comparison with composition. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | open Scheme.Modules |
| 18 | |
| 19 | theorem restrictionComp_eq_adjoint {X Y Z : Scheme.{u}} |
| 20 | (f : X ⟶ Y) (g : Y ⟶ Z) [IsOpenImmersion f] [IsOpenImmersion g] : |
| 21 | restrictFunctorComp f g = |
| 22 | (Adjunction.leftAdjointCompIso (restrictAdjunction g) (restrictAdjunction f) |
| 23 | (restrictAdjunction (f ≫ g)) (pushforwardComp f g)).symm := by |
| 24 | apply Iso.ext |
| 25 | apply NatTrans.ext |
| 26 | funext M |
| 27 | apply ((restrictAdjunction (f ≫ g)).homEquiv _ _).injective |
| 28 | rw [Adjunction.homEquiv_apply, Adjunction.homEquiv_apply] |
| 29 | have h := unit_conjugateEquiv |
| 30 | ((restrictAdjunction g).comp (restrictAdjunction f)) |
| 31 | (restrictAdjunction (f ≫ g)) |
| 32 | (Adjunction.leftAdjointCompIso (restrictAdjunction g) (restrictAdjunction f) |
| 33 | (restrictAdjunction (f ≫ g)) (pushforwardComp f g)).inv M |
| 34 | rw [Adjunction.conjugateEquiv_leftAdjointCompIso_inv] at h |
| 35 | exact (RestrictionCompositionAdjunction.restrictionComp_unit f g M).trans h |
| 36 | |
| 37 | theorem restrictionComp_mate {X Y Z : Scheme.{u}} |
| 38 | (f : X ⟶ Y) (g : Y ⟶ Z) [IsOpenImmersion f] [IsOpenImmersion g] : |
| 39 | conjugateEquiv ((restrictAdjunction g).comp (restrictAdjunction f)) |
| 40 | (restrictAdjunction (f ≫ g)) (restrictFunctorComp f g).hom = |
| 41 | (pushforwardComp f g).hom := by |
| 42 | rw [restrictionComp_eq_adjoint] |
| 43 | exact Adjunction.conjugateEquiv_leftAdjointCompIso_inv _ _ _ _ |
| 44 | |
| 45 | theorem restrictionPullbackMiddle_mate {X Y Z : Scheme.{u}} |
| 46 | (f : X ⟶ Y) (g : Y ⟶ Z) [IsOpenImmersion f] [IsOpenImmersion g] : |
| 47 | conjugateEquiv |
| 48 | ((pullbackPushforwardAdjunction g).comp (pullbackPushforwardAdjunction f)) |
| 49 | ((restrictAdjunction g).comp (restrictAdjunction f)) |
| 50 | (Functor.whiskerRight (restrictFunctorIsoPullback g).hom (restrictFunctor f) ≫ |
| 51 | Functor.whiskerLeft (pullback g) (restrictFunctorIsoPullback f).hom) = |
| 52 | 𝟙 (pushforward f ⋙ pushforward g) := by |
| 53 | rw [← conjugateEquiv_comp |
| 54 | ((pullbackPushforwardAdjunction g).comp (pullbackPushforwardAdjunction f)) |
| 55 | ((pullbackPushforwardAdjunction g).comp (restrictAdjunction f))] |
| 56 | rw [conjugateEquiv_whiskerLeft, conjugateEquiv_whiskerRight] |
| 57 | simp [restrictFunctorIsoPullback, Adjunction.leftAdjointUniq] |
| 58 | |
| 59 | theorem restrictionPullback_composition {X Y Z : Scheme.{u}} |
| 60 | (f : X ⟶ Y) (g : Y ⟶ Z) [IsOpenImmersion f] [IsOpenImmersion g] : |
| 61 | (restrictFunctorComp f g).hom ≫ |
| 62 | Functor.whiskerRight (restrictFunctorIsoPullback g).hom (restrictFunctor f) ≫ |
| 63 | Functor.whiskerLeft (pullback g) (restrictFunctorIsoPullback f).hom ≫ |
| 64 | (pullbackComp f g).hom = (restrictFunctorIsoPullback (f ≫ g)).hom := by |
| 65 | let a := (restrictAdjunction (f ≫ g)) |
| 66 | let b := ((restrictAdjunction g).comp (restrictAdjunction f)) |
| 67 | let c := ((pullbackPushforwardAdjunction g).comp (pullbackPushforwardAdjunction f)) |
| 68 | let d := (pullbackPushforwardAdjunction (f ≫ g)) |
| 69 | let t := Functor.whiskerRight (restrictFunctorIsoPullback g).hom (restrictFunctor f) ≫ |
| 70 | Functor.whiskerLeft (pullback g) (restrictFunctorIsoPullback f).hom |
| 71 | change (restrictFunctorComp f g).hom ≫ t ≫ (pullbackComp f g).hom = _ |
| 72 | apply (conjugateEquiv d a).injective |
| 73 | rw [← Category.assoc, ← conjugateEquiv_comp d c a] |
| 74 | rw [← conjugateEquiv_comp c b a] |
| 75 | rw [PullbackCompositionMate.Scheme.Modules.conjugateEquiv_pullbackComp_hom, |
| 76 | restrictionPullbackMiddle_mate, restrictionComp_mate] |
| 77 | simp [a, d, restrictFunctorIsoPullback, Adjunction.leftAdjointUniq] |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.RestrictionPullbackComposition |