Skip to content

Commit d30739f

Browse files
CoolRmalEtienneC30
andauthored
Update Mathlib/Data/Setoid/Partition.lean
Co-authored-by: Etienne Marion <66847262+EtienneC30@users.noreply.github.com>
1 parent f3a3255 commit d30739f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/Data/Setoid/Partition.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ theorem piecewise_preimage (t : Set β) : hs.piecewise f ⁻¹' t = ⋃ i, s i
514514
simp_all [piecewise_apply]
515515

516516
theorem range_piecewise : range (hs.piecewise f) = ⋃ i, f i '' s i := by
517-
ext x; constructor
517+
refine ext fun x => ⟨?_, fun ⟨t, ⟨i, hi⟩, ht⟩ ↦ ?_⟩
518518
· rintro ⟨x, rfl⟩
519519
exact mem_iUnion_of_mem (hs.index x) ⟨x, hs.mem_index x, rfl⟩
520520
· rintro ⟨t, ⟨i, hi⟩, ht⟩

0 commit comments

Comments
 (0)