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.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientResidue |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechLargeTop |
| 3 | |
| 4 | /-! # Coefficient Residue Class -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientResidueClass |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The supported mixed Koszul fraction maps to its literal coefficient |
| 11 | residue in the original augmented total cohomology. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 19 | |
| 20 | private theorem projection_inclusion |
| 21 | {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 22 | {ι : Type u} [LinearOrder ι] [Fintype ι] (U : ι → C) |
| 23 | {R : Type u} [CommRing R] (N : Cᵒᵖ ⥤ ModuleCat.{u} R) |
| 24 | (m : ℕ) (hm : Fintype.card ι = m) : |
| 25 | Pi.π (fun a : AugmentedOrdered.Cech.Index ι m => N.obj (op ((AugmentedOrdered.Cech.formal U m).obj a))) (AugmentedOrdered.CechCoordinates.topIndex m hm) ≫ |
| 26 | AugmentedOrdered.CechCoordinates.topInclusion U N m hm = 𝟙 _ := by |
| 27 | apply Pi.hom_ext |
| 28 | intro a |
| 29 | obtain rfl := AugmentedOrdered.CechCoordinates.topIndex_unique m hm a |
| 30 | change (_ ≫ AugmentedOrdered.CechCoordinates.topInclusion U N m hm) ≫ |
| 31 | Pi.π (fun a : AugmentedOrdered.Cech.Index ι m => N.obj (op ((AugmentedOrdered.Cech.formal U m).obj a))) (AugmentedOrdered.CechCoordinates.topIndex m hm) = _ |
| 32 | have h := AugmentedOrdered.CechCoordinates.topInclusion_comp_pi U N m hm (AugmentedOrdered.CechCoordinates.topIndex m hm) |
| 33 | have hi : N.map (AugmentedOrdered.CechCoordinates.topFactorIso U m hm (AugmentedOrdered.CechCoordinates.topIndex m hm)).inv.op = |
| 34 | 𝟙 (N.obj (op (AugmentedOrdered.CechCoordinates.topObject U m hm))) := by |
| 35 | change N.map (𝟙 (op (AugmentedOrdered.CechCoordinates.topObject U m hm))) = _ |
| 36 | exact N.map_id _ |
| 37 | exact (Category.assoc _ _ _).trans |
| 38 | ((congrArg (fun z => Pi.π (fun a : AugmentedOrdered.Cech.Index ι m => |
| 39 | N.obj (op ((AugmentedOrdered.Cech.formal U m).obj a))) (AugmentedOrdered.CechCoordinates.topIndex m hm) ≫ z) (h.trans hi)).trans |
| 40 | ((Category.comp_id _).trans (Category.id_comp _).symm)) |
| 41 | |
| 42 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 43 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 44 | {c m : ℕ} (U : ULift.{u} (Fin m) → C) (s : Fin c → R) (t : Fin m → R) |
| 45 | (ht : ∀ i, IsUnit (algebraMap R (P.obj (op (U i))) (t i.down))) |
| 46 | (N : Cᵒᵖ ⥤ ModuleCat.{u} R) (α : KoszulPartial.Fractions.modules R P ⟶ N) |
| 47 | (hN : ∀ (a : Cᵒᵖ) (i : Fin c) (x : N.obj a), s i • x = 0) |
| 48 | |
| 49 | private theorem cardinal : Fintype.card (ULift.{u} (Fin m)) = m := by simp |
| 50 | local notation "hm" => OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientResidueClass.cardinal (m := m) |
| 51 | local notation "a₀" => OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates.topIndex m hm |
| 52 | local notation "o₀" => op (OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates.topObject U m hm) |
| 53 | abbrev residueTarget : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u} R) ℕ := |
| 54 | (single (Cᵒᵖ ⥤ ModuleCat R) (.up ℕ) c).obj N |
| 55 | local notation "L" => OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientResidueClass.residueTarget R (c := c) N |
| 56 | |
| 57 | /-- Literal oriented residue coefficient, inserted in the sole coefficient degree. -/ |
| 58 | def residueValue |
| 59 | (φ : Module.Dual R (⋀[R]^(c + m) (KoszulPartial.Fractions.ambient R (c := c) (m := m)))) : |
| 60 | ((L).X c).obj o₀ := |
| 61 | (singleObjXSelf (.up ℕ) c N).inv.app o₀ |
| 62 | (α.app o₀ ((show P.obj o₀ from KoszulPartial.Fractions.reciprocal R P U t ht a₀) * algebraMap R (P.obj o₀) |
| 63 | (φ (TopExteriorCoordinates.generator |
| 64 | (KoszulPartial.TopResidue.basis R (c := c) (m := m)))))) |
| 65 | |
| 66 | theorem residueValue_closed |
| 67 | (φ : Module.Dual R (⋀[R]^(c + m) (KoszulPartial.Fractions.ambient R (c := c) (m := m)))) : |
| 68 | ((L).d c (c+1)).app o₀ (residueValue R P U t ht N α φ) = 0 := by |
| 69 | rw [single_obj_d] |
| 70 | rfl |
| 71 | |
| 72 | include hN in |
| 73 | theorem residue_top |
| 74 | (φ : Module.Dual R (⋀[R]^(c + m) (KoszulPartial.Fractions.ambient R (c := c) (m := m)))) : |
| 75 | ((CoefficientResidue.complexMap R P s N α hN).f c).app o₀ |
| 76 | (KoszulPartial.Components.coordinateAt R P U t ht (c+m) c m rfl a₀ φ) = |
| 77 | residueValue R P U t ht N α φ := by |
| 78 | have he : (CoefficientResidue.complexMap R P s N α hN).f c = |
| 79 | CoefficientResidue.evaluation R P s N α ≫ (singleObjXSelf (.up ℕ) c N).inv := by |
| 80 | apply (cancel_mono (singleObjXSelf (.up ℕ) c N).hom).mp |
| 81 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id, CoefficientResidue.complexMap_top] |
| 82 | change ((CoefficientResidue.complexMap R P s N α hN).f c).app o₀ _ = _ |
| 83 | rw [he] |
| 84 | change (singleObjXSelf (.up ℕ) c N).inv.app o₀ |
| 85 | ((CoefficientResidue.evaluation R P s N α).app o₀ _) = _ |
| 86 | exact congrArg ((singleObjXSelf (.up ℕ) c N).inv.app o₀) |
| 87 | (CoefficientResidue.fraction R P s N α U t ht a₀ φ) |
| 88 | |
| 89 | include hN in |
| 90 | theorem mapped_cycle |
| 91 | (φ : Module.Dual R (⋀[R]^(c + m) (KoszulPartial.Fractions.ambient R (c := c) (m := m)))) : |
| 92 | IntegralComparison.Module.CochainClassNaturality.cycleMap (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)) (c+m) |
| 93 | (KoszulPartial.PartialClass.supportedCycle R P U s t ht φ) = |
| 94 | AugmentedOrdered.CechLargeTop.topTotalCycle U L m hm c |
| 95 | (residueValue R P U t ht N α φ) (residueValue_closed R P U t ht N α φ) := by |
| 96 | apply Subtype.ext |
| 97 | change (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)).f (c+m) |
| 98 | (KoszulPartial.PartialClass.supportedCycle R P U s t ht φ).val = _ |
| 99 | rw [KoszulPartial.PartialClass.supportedCycle_val] |
| 100 | have hι := ConcreteCategory.congr_hom |
| 101 | (HomologicalComplex₂.ιTotal_map _ _ |
| 102 | (AugmentedOrdered.CechTopNaturality.bicomplexMap U (CoefficientResidue.complexMap R P s N α hN)) (.up ℕ) c m (c+m) rfl) |
| 103 | (KoszulPartial.Components.component R P U t ht (c+m) c m rfl φ) |
| 104 | change (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)).f (c+m) |
| 105 | ((KoszulPartial.Components.target R P U s).ιTotal (.up ℕ) c m (c+m) rfl _) = _ at hι |
| 106 | rw [hι] |
| 107 | change (AugmentedOrdered.CechFunctor.bicomplex U L).ιTotal (.up ℕ) c m (c+m) rfl |
| 108 | (AugmentedOrdered.CechFunctor.objectMap U ((CoefficientResidue.complexMap R P s N α hN).f c) m |
| 109 | (KoszulPartial.Components.component R P U t ht (c+m) c m rfl φ)) = |
| 110 | (AugmentedOrdered.CechFunctor.bicomplex U L).ιTotal (.up ℕ) c m (c+m) rfl |
| 111 | (AugmentedOrdered.CechCoordinates.topInclusion U ((L).X c) m hm (residueValue R P U t ht N α φ)) |
| 112 | congr 1 |
| 113 | let y := AugmentedOrdered.CechFunctor.objectMap U ((CoefficientResidue.complexMap R P s N α hN).f c) m |
| 114 | (KoszulPartial.Components.component R P U t ht (c+m) c m rfl φ) |
| 115 | have hy := ConcreteCategory.congr_hom (projection_inclusion U ((L).X c) m hm) y |
| 116 | change AugmentedOrdered.CechCoordinates.topInclusion U ((L).X c) m hm |
| 117 | (Pi.π (fun a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) m => |
| 118 | ((L).X c).obj (op ((AugmentedOrdered.Cech.formal U m).obj a))) a₀ y) = y at hy |
| 119 | change y = AugmentedOrdered.CechCoordinates.topInclusion U ((L).X c) m hm (residueValue R P U t ht N α φ) |
| 120 | apply hy.symm.trans |
| 121 | apply congrArg (AugmentedOrdered.CechCoordinates.topInclusion U ((L).X c) m hm) |
| 122 | have hx := ConcreteCategory.congr_hom |
| 123 | (AugmentedOrdered.CechCoordinates.objectMap_comp_pi U ((KoszulPartial.Components.coefficient R P s).X c) |
| 124 | ((CoefficientResidue.complexMap R P s N α hN).f c) m a₀) |
| 125 | (KoszulPartial.Components.component R P U t ht (c+m) c m rfl φ) |
| 126 | have hc := ConcreteCategory.congr_hom |
| 127 | (KoszulPartial.Components.component_projection R P U s t ht (c+m) c m rfl a₀) φ |
| 128 | exact hx.trans ((congrArg (((CoefficientResidue.complexMap R P s N α hN).f c).app o₀) hc).trans |
| 129 | (residue_top R P U s t ht N α hN φ)) |
| 130 | |
| 131 | include hN in |
| 132 | theorem supportedClass_residue |
| 133 | (φ : Module.Dual R (⋀[R]^(c + m) (KoszulPartial.Fractions.ambient R (c := c) (m := m)))) : |
| 134 | homologyMap (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)) (c+m) |
| 135 | (KoszulPartial.PartialClass.supportedClass R P U s t ht φ) = |
| 136 | AugmentedOrdered.CechLargeTop.topTotalClass U L m hm c |
| 137 | (residueValue R P U t ht N α φ) (residueValue_closed R P U t ht N α φ) := by |
| 138 | rw [KoszulPartial.PartialClass.supportedClass, ← IntegralComparison.Module.CochainClassNaturality.naturality_apply, |
| 139 | mapped_cycle] |
| 140 | rfl |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientResidueClass |