Skip to content

Commit 84da266

Browse files
committed
fix?
1 parent 6303947 commit 84da266

4 files changed

Lines changed: 6 additions & 42 deletions

File tree

Mathlib/Algebra/Category/ModuleCat/Sheaf/Quasicoherent.lean

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -363,27 +363,6 @@ lemma _root_.CategoryTheory.PreOneHypercover.sieve₀_map
363363
PreOneHypercover.map_toPreZeroHypercover, PreZeroHypercover.presieve₀_map,
364364
Sieve.generate_map_eq_functorPushforward]
365365

366-
instance {C : Type*} [Category* C] (X : C) (J : GrothendieckTopology C) :
367-
Functor.PreservesOneHypercovers.{w} (Over.forget X) (J.over X) J := by
368-
intro U E
369-
refine ⟨?_, ?_⟩
370-
· simpa [CategoryTheory.PreZeroHypercover.sieve₀_map] using E.mem₀
371-
· intro i₁ i₂ W p₁ p₂ h
372-
let W' : Over X := Over.mk (p₁ ≫ (E.X i₁).hom)
373-
let p₁' : W' ⟶ E.X i₁ := Over.homMk p₁ rfl
374-
let p₂' : W' ⟶ E.X i₂ := Over.homMk p₂ <| by
375-
dsimp at h
376-
simp only [Over.forget_obj, Over.mk_left, Over.mk_hom, W']
377-
rw [← Over.w (E.f i₂), ← reassoc_of% h]
378-
simp
379-
have := E.mem₁ _ _ p₁' p₂' (by ext; exact h)
380-
rw [J.mem_over_iff] at this
381-
refine J.superset_covering ?_ this
382-
intro U g hg
383-
rw [Sieve.overEquiv_iff] at hg
384-
obtain ⟨j, u, h₁, h₂⟩ := hg
385-
exact ⟨j, u.left, congr($(h₁).left), congr($(h₂).left)⟩
386-
387366
lemma coverPreserving_of_coverPreserving_comp {C D E : Type*} [Category* C] [Category* D]
388367
[Category* E] (F : C ⥤ D) (G : D ⥤ E) (J : GrothendieckTopology C) (K : GrothendieckTopology D)
389368
(T : GrothendieckTopology E) (h : CoverPreserving J T (F ⋙ G)) [G.IsCocontinuous K T]
@@ -408,6 +387,7 @@ instance {C : Type*} [Category* C] {A : Type*} [Category* A]
408387
· simp [IsIso.hom_inv_id]
409388
· simp [IsIso.inv_hom_id]
410389

390+
set_option backward.defeqAttrib.useBackward true in
411391
omit
412392
[HasSheafify J AddCommGrpCat]
413393
[J.WEqualsLocallyBijective AddCommGrpCat]

Mathlib/AlgebraicGeometry/Modules/Tilde.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ module
88

99
public import Mathlib.Algebra.Category.ModuleCat.Localization
1010
public import Mathlib.Algebra.Category.ModuleCat.Sheaf.Quasicoherent
11+
public import Mathlib.Algebra.Category.ModuleCat.FilteredColimits
1112
public import Mathlib.AlgebraicGeometry.AffineScheme
1213
public import Mathlib.AlgebraicGeometry.Modules.Sheaf
13-
public import Mathlib.Algebra.Category.ModuleCat.Sheaf.Quasicoherent
14-
public import Mathlib.Algebra.Category.ModuleCat.FilteredColimits
1514
public import Mathlib.CategoryTheory.Limits.ConcreteCategory.WithAlgebraicStructures
1615
public import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Over
1716
public import Mathlib.CategoryTheory.Limits.Preorder
@@ -561,6 +560,7 @@ open CategoryTheory TopologicalSpace
561560
variable {X : Scheme.{u}} (M : X.Modules) [M.IsQuasicoherent]
562561

563562
open Limits
563+
set_option backward.defeqAttrib.useBackward true in
564564
lemma _root_.CategoryTheory.Limits.preservesLimit_walkingParallelPair_of_eq
565565
{C D : Type*} [Category* C] [Category* D] {K : WalkingParallelPair ⥤ C}
566566
(heq : K.map .left = K.map .right) (F : C ⥤ D) :
@@ -570,7 +570,7 @@ lemma _root_.CategoryTheory.Limits.preservesLimit_walkingParallelPair_of_eq
570570
exact preservesLimit_of_iso_diagram _ (diagramIsoParallelPair _).symm
571571
rintro X Y f g rfl
572572
refine preservesLimit_of_preserves_limit_cone (isLimitIdFork rfl) ?_
573-
exact (isLimitMapConeForkEquiv F _).symm (by simpa using isLimitIdFork rfl)
573+
exact (isLimitMapConeForkEquiv F _).symm (by simpa using! isLimitIdFork rfl)
574574

575575
instance {C D : Type*} [Category* C] [Category* D] (F : C ⥤ D) {X Y : C} (f : X ⟶ Y) :
576576
PreservesLimit (parallelPair f f) F :=
@@ -585,7 +585,7 @@ instance (priority := low) {C D : Type*} [Category* C] [Category* D] [Quiver.IsT
585585
def _root_.CategoryTheory.Limits.isLimitEquivFanOfIsThin {C : Type*} [Category* C]
586586
[Quiver.IsThin C] {J : Type*} [Category* J] {K : J ⥤ C} (c : Cone K) :
587587
IsLimit c ≃ IsLimit (Fan.mk c.pt c.π.app) where
588-
toFun hc := Limits.mkFanLimit _ (fun s ↦ hc.lift { pt := s.pt, π.app j := s.proj j })
588+
toFun hc := Fan.IsLimit.mk _ (fun s ↦ hc.lift { pt := s.pt, π.app j := s.proj j })
589589
(by subsingleton) (by subsingleton)
590590
invFun h := { lift s := Fan.IsLimit.lift h s.π.app }
591591

Mathlib/AlgebraicGeometry/OpenImmersion.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ theorem appIso_hom' (U) :
225225
(f.appIso U).hom = f.appLE (f ''ᵁ U) U (preimage_image_eq f U).ge :=
226226
f.appIso_hom U
227227

228+
set_option backward.defeqAttrib.useBackward true in
228229
@[reassoc (attr := simp)]
229230
lemma appIso_hom_naturality {U V : X.Opens} (i : op U ⟶ op V) :
230231
Y.presheaf.map (f.opensFunctor.op.map i) ≫ (f.appIso V).hom =

Mathlib/CategoryTheory/Sites/CoverPreserving.lean

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,4 @@ lemma Functor.PreservesOneHypercovers.of_coverPreserving [HasPullbacks C]
210210
(K.pullback_stable (IsPullback.lift (.map _ (.of_hasPullback _ _)) p₁ p₂ h) this)
211211
simp [PreOneHypercover.pullback_sieve₁]
212212

213-
/-- If `C` has pullbacks and `F : C ⥤ D` preserves pullbacks, any cover preserving
214-
functor preserves all `1`-hypercovers. -/
215-
lemma Functor.PreservesOneHypercovers.of_coverPreserving [HasPullbacks C]
216-
[PreservesLimitsOfShape WalkingCospan F] (H : CoverPreserving J K F) :
217-
Functor.PreservesOneHypercovers.{w} F J K := by
218-
refine fun {U} E ↦ ⟨?_, fun i₁ i₂ W p₁ p₂ h ↦ ?_⟩
219-
· simp [PreZeroHypercover.sieve₀_map, H.cover_preserve E.mem₀]
220-
· let P : C := pullback (E.f i₁) (E.f i₂)
221-
have : HasPullback ((E.toPreOneHypercover.map F).f i₁) ((E.toPreOneHypercover.map F).f i₂) :=
222-
hasPullback_of_preservesPullback F (E.f i₁) (E.f i₂)
223-
have := H.cover_preserve (E.mem₁ i₁ i₂ (pullback.fst (E.f i₁) (E.f i₂)) _ pullback.condition)
224-
rw [PreOneHypercover.functorPushforward_sieve₁_of_preservesLimitsOfShape] at this
225-
· refine K.superset_covering ?_
226-
(K.pullback_stable (IsPullback.lift (.map _ (.of_hasPullback _ _)) p₁ p₂ h) this)
227-
simp [PreOneHypercover.pullback_sieve₁]
228-
· exact pullback.condition
229-
230213
end CategoryTheory

0 commit comments

Comments
 (0)