Skip to content

Commit 291974e

Browse files
committed
chore(Geometry/RingedSpace): remove use of erw in isUnit_of_isUnit_germ (#27660)
1 parent 3d1b261 commit 291974e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Mathlib/Geometry/RingedSpace/Basic.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ theorem isUnit_of_isUnit_germ (U : Opens X) (f : X.presheaf.obj (op U))
102102
choose V iVU m h_unit using fun x : U => X.isUnit_res_of_isUnit_germ U f x x.2 (h x.1 x.2)
103103
have hcover : U ≤ iSup V := by
104104
intro x hxU
105-
-- Porting note: in Lean3 `rw` is sufficient
106-
erw [Opens.mem_iSup]
107-
exact ⟨⟨x, hxU⟩, m ⟨x, hxU⟩⟩
105+
simp only [Opens.coe_iSup, Set.mem_iUnion, SetLike.mem_coe, Subtype.exists]
106+
tauto
108107
-- Let `g x` denote the inverse of `f` in `U x`.
109108
choose g hg using fun x : U => IsUnit.exists_right_inv (h_unit x)
110109
have ic : IsCompatible (sheaf X).val V g := by

0 commit comments

Comments
 (0)