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 | Copyright (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.OpenRestrictionComposition |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.RestrictionPullbackComposition |
| 9 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.RestrictionUnit |
| 10 | |
| 11 | /-! # Open Pullback Frame -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.OpenPullbackFrame |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.AlgebraicGeometry |
| 18 | open _root_.AlgebraicGeometry.Scheme |
| 19 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 20 | |
| 21 | /-! Pullback presentation of the actual restricted local frames. -/ |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | open _root_.CategoryTheory Opposite |
| 25 | universe u |
| 26 | section |
| 27 | open Scheme.Modules |
| 28 | |
| 29 | theorem restrictionPullback_congr {X Y : Scheme.{u}} {f g : X ⟶ Y} |
| 30 | [IsOpenImmersion f] [IsOpenImmersion g] (h : f = g) (M : Y.Modules) : |
| 31 | (restrictFunctorCongr h).hom.app M ≫ (restrictFunctorIsoPullback g).hom.app M = |
| 32 | (restrictFunctorIsoPullback f).hom.app M ≫ (pullbackCongr h).hom.app M := by |
| 33 | subst g |
| 34 | have he : (restrictFunctorCongr (rfl : f = f)).hom.app M = 𝟙 _ := by |
| 35 | apply _root_.SheafOfModules.hom_ext |
| 36 | ext U x |
| 37 | change M.presheaf.map (𝟙 (.op (f ''ᵁ U.unop))) x = x |
| 38 | rw [M.presheaf.map_id] |
| 39 | rfl |
| 40 | rw [he] |
| 41 | change 𝟙 _ ≫ (restrictFunctorIsoPullback f).hom.app M = |
| 42 | (restrictFunctorIsoPullback f).hom.app M ≫ 𝟙 _ |
| 43 | simp |
| 44 | |
| 45 | theorem restrictionPullback_comp_cancel {X Y Z : Scheme.{u}} |
| 46 | (f : X ⟶ Y) (g : Y ⟶ Z) [IsOpenImmersion f] [IsOpenImmersion g] |
| 47 | (M : Z.Modules) : |
| 48 | (restrictFunctorIsoPullback (f ≫ g)).hom.app M ≫ |
| 49 | (pullbackComp f g).inv.app M ≫ |
| 50 | (pullback f).map ((restrictFunctorIsoPullback g).inv.app M) = |
| 51 | (restrictFunctorComp f g).hom.app M ≫ |
| 52 | (restrictFunctorIsoPullback f).hom.app ((restrictFunctor g).obj M) := by |
| 53 | have h := NatTrans.congr_app (RestrictionPullbackComposition.restrictionPullback_composition f g) M |
| 54 | simp only [NatTrans.comp_app, Functor.whiskerRight_app, Functor.whiskerLeft_app] at h |
| 55 | apply (cancel_mono ((pullback f).map ((restrictFunctorIsoPullback g).hom.app M))).1 |
| 56 | simp only [Category.assoc, ← Functor.map_comp, Iso.inv_hom_id_app] |
| 57 | erw [CategoryTheory.Functor.map_id] |
| 58 | erw [Category.comp_id] |
| 59 | have hn := (restrictFunctorIsoPullback f).hom.naturality |
| 60 | ((restrictFunctorIsoPullback g).hom.app M) |
| 61 | erw [← hn] |
| 62 | apply (cancel_mono ((pullbackComp f g).hom.app M)).1 |
| 63 | simp only [Category.assoc] |
| 64 | erw [Iso.inv_hom_id_app, Category.comp_id] |
| 65 | exact h.symm |
| 66 | |
| 67 | theorem restrictionPullback_unit {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 68 | [IsOpenImmersion f] : |
| 69 | (restrictFunctorIsoPullback f).hom.app (Invertible.Scheme.Modules.unitObj Y) ≫ (Invertible.Scheme.Modules.pullbackUnitIso f).hom = |
| 70 | (restrictUnitIso f).hom := by |
| 71 | rw [← RestrictionUnit.restrictFunctorIsoPullback_inv_comp_restrictUnitIso] |
| 72 | exact Iso.hom_inv_id_assoc ((restrictFunctorIsoPullback f).app (Invertible.Scheme.Modules.unitObj Y)) _ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | namespace Scheme.Modules |
| 77 | |
| 78 | def restrictOpenTrivializationPullback {X : Scheme.{u}} {M : X.Modules} |
| 79 | {U V : X.Opens} (h : V ≤ U) |
| 80 | (e : M.restrict U.ι ≅ Invertible.Scheme.Modules.unitObj U.toScheme) : |
| 81 | M.restrict V.ι ≅ Invertible.Scheme.Modules.unitObj V.toScheme := |
| 82 | (restrictFunctorIsoPullback V.ι).app M ≪≫ |
| 83 | Invertible.Scheme.Modules.restrictTrivialization h ((restrictFunctorIsoPullback U.ι).symm.app M ≪≫ e) |
| 84 | |
| 85 | theorem restrictOpenTrivialization_eq_pullback {X : Scheme.{u}} {M : X.Modules} |
| 86 | {U V : X.Opens} (h : V ≤ U) |
| 87 | (e : M.restrict U.ι ≅ Invertible.Scheme.Modules.unitObj U.toScheme) : |
| 88 | OpenFrames.Scheme.Modules.restrictOpenTrivialization h e = restrictOpenTrivializationPullback h e := by |
| 89 | rw [← OpenRestrictionComposition.nativeOpenFrame_eq_over] |
| 90 | apply Iso.ext |
| 91 | have hc := restrictionPullback_congr |
| 92 | (X.homOfLE_ι h).symm M |
| 93 | have hp := restrictionPullback_comp_cancel |
| 94 | (X.homOfLE h) U.ι M |
| 95 | have hn := (restrictFunctorIsoPullback (X.homOfLE h)).hom.naturality e.hom |
| 96 | have hu := restrictionPullback_unit (X.homOfLE h) |
| 97 | simp only [OpenRestrictionComposition.nativeOpenFrame, |
| 98 | OpenRestrictionComposition.nestedRestrictionIso, restrictOpenTrivializationPullback, |
| 99 | Invertible.Scheme.Modules.restrictTrivialization, Iso.trans_hom, Iso.symm_hom, |
| 100 | Functor.mapIso_hom, Functor.map_comp, Category.assoc] |
| 101 | slice_rhs 1 2 => erw [← hc] |
| 102 | simp only [Category.assoc] |
| 103 | slice_rhs 2 4 => erw [hp] |
| 104 | simp only [Category.assoc] |
| 105 | slice_rhs 3 4 => erw [← hn] |
| 106 | simp only [Category.assoc] |
| 107 | erw [hu] |
| 108 | rfl |
| 109 | |
| 110 | end Scheme.Modules |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.OpenPullbackFrame |