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.HodgeConjecture.DegreeTwo.ClosedSupportIs |
| 2 | |
| 3 | /-! # Intersect Support Sheaf -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.IntersectSupportSheaf.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Two genuine closed-support conditions are exactly support in their intersection. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | variable {R : Type} [Ring R] {X : TopCat.{0}} |
| 16 | variable (C O : Opens X) {G F : TopCat.Sheaf (ModuleCat.{0} R) X} |
| 17 | |
| 18 | theorem sheafMorphism_restrict_sup_zero (f : G ⟶ F) |
| 19 | (hC : f ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen C F = 0) |
| 20 | (hO : f ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O F = 0) : |
| 21 | f ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen (C ⊔ O) F = 0 := by |
| 22 | apply CategoryTheory.Sheaf.hom_ext |
| 23 | ext U x |
| 24 | let V := U.unop |
| 25 | change F.obj.map (homOfLE (inf_le_left : V ⊓ (C ⊔ O) ≤ V)).op (f.hom.app U x) = 0 |
| 26 | apply F.eq_of_locally_eq₂ |
| 27 | (homOfLE (inf_le_inf_left V le_sup_left : V ⊓ C ≤ V ⊓ (C ⊔ O))) |
| 28 | (homOfLE (inf_le_inf_left V le_sup_right : V ⊓ O ≤ V ⊓ (C ⊔ O))) |
| 29 | (le_of_eq (inf_sup_left V C O)) |
| 30 | · rw [map_zero, ← ConcreteCategory.comp_apply, ← F.obj.map_comp] |
| 31 | exact ConcreteCategory.congr_hom (congrArg (fun q => q.hom.app U) hC) x |
| 32 | · rw [map_zero, ← ConcreteCategory.comp_apply, ← F.obj.map_comp] |
| 33 | exact ConcreteCategory.congr_hom (congrArg (fun q => q.hom.app U) hO) x |
| 34 | |
| 35 | theorem sheafMorphism_restrict_zero_of_le {C D : Opens X} (h : C ≤ D) (f : G ⟶ F) |
| 36 | (hf : f ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen D F = 0) : f ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen C F = 0 := by |
| 37 | apply CategoryTheory.Sheaf.hom_ext |
| 38 | ext U x |
| 39 | have he := ConcreteCategory.congr_hom (congrArg (fun q => q.hom.app U) hf) x |
| 40 | change F.obj.map (homOfLE (inf_le_left : U.unop ⊓ D ≤ U.unop)).op (f.hom.app U x) = 0 at he |
| 41 | have he' := congrArg (F.obj.map (homOfLE (inf_le_inf_left U.unop h)).op) he |
| 42 | rw [map_zero, ← ConcreteCategory.comp_apply, ← F.obj.map_comp] at he' |
| 43 | exact he' |
| 44 | |
| 45 | variable (F) |
| 46 | |
| 47 | def intersectSupportInclusion : CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ⟶ F := |
| 48 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F |
| 49 | |
| 50 | instance intersectSupportInclusion_mono : Mono (intersectSupportInclusion C O F) := |
| 51 | inferInstanceAs (Mono (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ≫ |
| 52 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F)) |
| 53 | |
| 54 | theorem intersectSupportInclusion_restrict_left : |
| 55 | intersectSupportInclusion C O F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen C F = 0 := by |
| 56 | change (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ≫ |
| 57 | kernel.ι (CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen C F)) ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen C F = 0 |
| 58 | rw [Category.assoc, kernel.condition, comp_zero] |
| 59 | |
| 60 | theorem intersectSupportInclusion_restrict_right : |
| 61 | intersectSupportInclusion C O F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O F = 0 := by |
| 62 | have hn : CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O F = |
| 63 | CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ≫ |
| 64 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.openRestrictionPushforwardFunctor O).map (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F) := |
| 65 | (CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpenNatTrans O).naturality (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F) |
| 66 | unfold intersectSupportInclusion |
| 67 | rw [Category.assoc, hn, ← Category.assoc] |
| 68 | change (kernel.ι (CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F)) ≫ |
| 69 | CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F)) ≫ _ = 0 |
| 70 | rw [kernel.condition, zero_comp] |
| 71 | |
| 72 | def intersectSupportToUnion : |
| 73 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ⟶ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf (C ⊔ O) F := |
| 74 | kernel.lift _ (intersectSupportInclusion C O F) |
| 75 | (sheafMorphism_restrict_sup_zero C O _ (intersectSupportInclusion_restrict_left C O F) |
| 76 | (intersectSupportInclusion_restrict_right C O F)) |
| 77 | |
| 78 | @[reassoc] |
| 79 | theorem intersectSupportToUnion_inclusion : |
| 80 | intersectSupportToUnion C O F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F = |
| 81 | intersectSupportInclusion C O F := kernel.lift_ι _ _ _ |
| 82 | |
| 83 | def unionSupportToLeft : CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf (C ⊔ O) F ⟶ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F := |
| 84 | kernel.lift _ (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F) |
| 85 | (sheafMorphism_restrict_zero_of_le le_sup_left _ (kernel.condition _)) |
| 86 | |
| 87 | @[reassoc] |
| 88 | theorem unionSupportToLeft_inclusion : |
| 89 | unionSupportToLeft C O F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F = |
| 90 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F := kernel.lift_ι _ _ _ |
| 91 | |
| 92 | theorem unionSupportToLeft_restrict_zero : |
| 93 | unionSupportToLeft C O F ≫ CycleClass.Geometric.SheafClosedSupport.Cohomology.sheafRestrictionToOpen O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) = 0 := by |
| 94 | apply CategoryTheory.Sheaf.hom_ext |
| 95 | ext U x |
| 96 | change (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F).obj.map |
| 97 | (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op |
| 98 | ((unionSupportToLeft C O F).hom.app U x) = 0 |
| 99 | apply CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion_injective C (U.unop ⊓ O) F |
| 100 | rw [map_zero] |
| 101 | have hn := ConcreteCategory.congr_hom |
| 102 | ((CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F).hom.naturality |
| 103 | (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op) |
| 104 | ((unionSupportToLeft C O F).hom.app U x) |
| 105 | change ((CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F).hom.app (op (U.unop ⊓ O))) |
| 106 | ((CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F).obj.map (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op |
| 107 | ((unionSupportToLeft C O F).hom.app U x)) = _ at hn |
| 108 | rw [hn] |
| 109 | have hi := ConcreteCategory.congr_hom |
| 110 | (congrArg (fun q => q.hom.app U) (unionSupportToLeft_inclusion C O F)) x |
| 111 | change (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F).hom.app U ((unionSupportToLeft C O F).hom.app U x) = _ at hi |
| 112 | change F.obj.map (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op |
| 113 | ((CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion C F).hom.app U ((unionSupportToLeft C O F).hom.app U x)) = 0 |
| 114 | rw [hi] |
| 115 | exact ConcreteCategory.congr_hom (congrArg (fun q => q.hom.app U) |
| 116 | (sheafMorphism_restrict_zero_of_le le_sup_right (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F) |
| 117 | (kernel.condition _))) x |
| 118 | |
| 119 | def unionSupportToIntersect : |
| 120 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf (C ⊔ O) F ⟶ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) := |
| 121 | kernel.lift _ (unionSupportToLeft C O F) (unionSupportToLeft_restrict_zero C O F) |
| 122 | |
| 123 | @[reassoc] |
| 124 | theorem unionSupportToIntersect_inclusion : |
| 125 | unionSupportToIntersect C O F ≫ intersectSupportInclusion C O F = |
| 126 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F := by |
| 127 | unfold intersectSupportInclusion |
| 128 | rw [← Category.assoc] |
| 129 | change (kernel.lift _ _ _ ≫ kernel.ι _) ≫ _ = _ |
| 130 | rw [kernel.lift_ι, unionSupportToLeft_inclusion] |
| 131 | |
| 132 | def intersectSupportSheafIso : |
| 133 | CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf O (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf C F) ≅ CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheaf (C ⊔ O) F where |
| 134 | hom := intersectSupportToUnion C O F |
| 135 | inv := unionSupportToIntersect C O F |
| 136 | hom_inv_id := by |
| 137 | apply (cancel_mono (intersectSupportInclusion C O F)).mp |
| 138 | rw [Category.assoc, unionSupportToIntersect_inclusion, intersectSupportToUnion_inclusion, |
| 139 | Category.id_comp] |
| 140 | inv_hom_id := by |
| 141 | apply (cancel_mono (CycleClass.Geometric.SheafClosedSupport.Cohomology.closedSupportSheafInclusion (C ⊔ O) F)).mp |
| 142 | rw [Category.assoc, intersectSupportToUnion_inclusion, unionSupportToIntersect_inclusion, |
| 143 | Category.id_comp] |
| 144 | |
| 145 | end |
| 146 | |
| 147 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.IntersectSupportSheaf.Constructions |