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.SheafCohomology.Projective.BaseCechProducts |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.Cochains |
| 3 | import Mathlib.Logic.Equiv.Fin.Basic |
| 4 | |
| 5 | /-! # Cech Tuple Pi -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CechTuplePi |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Coordinate changes from tuples to the first three ordinary Cech terms. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 16 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.CechTupleCoordinates |
| 21 | |
| 22 | def indexZero (ι : Type u) : (Fin 1 → ι) ≃ ι where |
| 23 | toFun a := a 0 |
| 24 | invFun i := fun _ => i |
| 25 | left_inv a := by funext k; exact congrArg a (Subsingleton.elim _ _) |
| 26 | right_inv _ := rfl |
| 27 | |
| 28 | def indexTwo (ι : Type u) : (Fin 3 → ι) ≃ ι × (ι × ι) where |
| 29 | toFun a := (a 0, a 1, a 2) |
| 30 | invFun p := ![p.1, p.2.1, p.2.2] |
| 31 | left_inv a := by funext k; fin_cases k <;> rfl |
| 32 | right_inv _ := rfl |
| 33 | |
| 34 | def reindex {R : Type u} [CommRing R] {X : Scheme.{u}} |
| 35 | (F : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) {I J : Type u} |
| 36 | (V : I → X.Opens) (W : J → X.Opens) (e : I ≃ J) |
| 37 | (he : ∀ j, V (e.symm j) = W j) : |
| 38 | (∀ i, F.obj (op (V i))) ≃ₗ[R] (∀ j, F.obj (op (W j))) := |
| 39 | (LinearEquiv.piCongrLeft' R (fun i => F.obj (op (V i))) e).trans |
| 40 | (LinearEquiv.piCongrRight fun j => (F.mapIso (eqToIso (he j).symm).op).toLinearEquiv) |
| 41 | |
| 42 | def curry {R : Type u} [CommRing R] {I J : Type u} |
| 43 | (A : I → J → ModuleCat.{u} R) : |
| 44 | (∀ p : I × J, A p.1 p.2) ≃ₗ[R] (∀ i j, A i j) where |
| 45 | toFun z i j := z (i, j) |
| 46 | invFun z p := z p.1 p.2 |
| 47 | left_inv _ := rfl |
| 48 | right_inv _ := rfl |
| 49 | map_add' _ _ := rfl |
| 50 | map_smul' _ _ := rfl |
| 51 | |
| 52 | variable {X S : Scheme.{u}} (π : X ⟶ S) (M : X.Modules) |
| 53 | variable {ι : Type u} (U : ι → X.Opens) |
| 54 | |
| 55 | theorem intersection_zero (i : ι) : |
| 56 | (∏ᶜ fun k : Fin 1 => U ((indexZero ι).symm i k)) = U i := by |
| 57 | rw [SheafCohomology.Cech.Cochains.TopologicalSpace.Opens.piObj_eq_iInf] |
| 58 | simp only [indexZero, Equiv.coe_fn_symm_mk, iInf_const] |
| 59 | |
| 60 | theorem intersection_one (p : ι × ι) : |
| 61 | (∏ᶜ fun k : Fin 2 => U ((finTwoArrowEquiv ι).symm p k)) = U p.1 ⊓ U p.2 := by |
| 62 | apply le_antisymm |
| 63 | · exact le_inf (leOfHom (Pi.π _ 0)) (leOfHom (Pi.π _ 1)) |
| 64 | · apply leOfHom |
| 65 | refine Pi.lift (fun k : Fin 2 => homOfLE ?_) |
| 66 | fin_cases k |
| 67 | · exact inf_le_left |
| 68 | · exact inf_le_right |
| 69 | |
| 70 | theorem intersection_two (p : ι × (ι × ι)) : |
| 71 | (∏ᶜ fun k : Fin 3 => U ((indexTwo ι).symm p k)) = (U p.1 ⊓ U p.2.1) ⊓ U p.2.2 := by |
| 72 | apply le_antisymm |
| 73 | · exact le_inf (le_inf (leOfHom (Pi.π _ 0)) (leOfHom (Pi.π _ 1))) (leOfHom (Pi.π _ 2)) |
| 74 | · apply leOfHom |
| 75 | refine Pi.lift (fun k : Fin 3 => homOfLE ?_) |
| 76 | fin_cases k |
| 77 | · exact inf_le_left.trans inf_le_left |
| 78 | · exact inf_le_left.trans inf_le_right |
| 79 | · exact inf_le_right |
| 80 | |
| 81 | variable {R : Type u} [CommRing R] (F : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) |
| 82 | |
| 83 | def zeroPi : |
| 84 | (∀ i : Fin 1 → ι, F.obj (op (∏ᶜ fun k => U (i k)))) ≃ₗ[R] |
| 85 | (∀ i, F.obj (op (U i))) := |
| 86 | reindex F (fun i => ∏ᶜ fun k : Fin 1 => U (i k)) U (indexZero ι) (intersection_zero U) |
| 87 | |
| 88 | def onePi : |
| 89 | (∀ i : Fin 2 → ι, F.obj (op (∏ᶜ fun k => U (i k)))) ≃ₗ[R] |
| 90 | (∀ i j, F.obj (op (U i ⊓ U j))) := |
| 91 | (reindex F (fun i => ∏ᶜ fun k : Fin 2 => U (i k)) |
| 92 | (fun p : ι × ι => U p.1 ⊓ U p.2) (finTwoArrowEquiv ι) (intersection_one U)).trans |
| 93 | (curry (fun i j => F.obj (op (U i ⊓ U j)))) |
| 94 | |
| 95 | def twoPi : |
| 96 | (∀ i : Fin 3 → ι, F.obj (op (∏ᶜ fun k => U (i k)))) ≃ₗ[R] |
| 97 | (∀ i j k, F.obj (op ((U i ⊓ U j) ⊓ U k))) := |
| 98 | (reindex F (fun i => ∏ᶜ fun k : Fin 3 => U (i k)) |
| 99 | (fun p : ι × (ι × ι) => (U p.1 ⊓ U p.2.1) ⊓ U p.2.2) |
| 100 | (indexTwo ι) (intersection_two U)).trans |
| 101 | ((curry (fun i (p : ι × ι) => F.obj (op ((U i ⊓ U p.1) ⊓ U p.2)))).trans |
| 102 | (LinearEquiv.piCongrRight fun i => curry (fun j k => F.obj (op ((U i ⊓ U j) ⊓ U k))))) |
| 103 | |
| 104 | def zero : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex π M U).X 0 ≃ₗ[Γ(S, ⊤)] |
| 105 | (∀ i, (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op (U i))) := |
| 106 | (SheafCohomology.Projective.BaseCechProducts.Scheme.Modules.baseCechXIsoPi π M U 0).toLinearEquiv.trans |
| 107 | (zeroPi U (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M)) |
| 108 | |
| 109 | def one : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex π M U).X 1 ≃ₗ[Γ(S, ⊤)] |
| 110 | (∀ i j, (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op (U i ⊓ U j))) := |
| 111 | (SheafCohomology.Projective.BaseCechProducts.Scheme.Modules.baseCechXIsoPi π M U 1).toLinearEquiv.trans |
| 112 | (onePi U (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M)) |
| 113 | |
| 114 | def two : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplex π M U).X 2 ≃ₗ[Γ(S, ⊤)] |
| 115 | (∀ i j k, (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op ((U i ⊓ U j) ⊓ U k))) := |
| 116 | (SheafCohomology.Projective.BaseCechProducts.Scheme.Modules.baseCechXIsoPi π M U 2).toLinearEquiv.trans |
| 117 | (twoPi U (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M)) |
| 118 | |
| 119 | end Construction.CechTupleCoordinates |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CechTuplePi |