Skip to content

Commit b106e92

Browse files
committed
chore: avoid unbracketed by within suffices (#32342)
This is a preparatory PR which will allow us to increase the precedence of the `by` notation. The issue is that the `suffices A by ...`/`suffices A from ...` notation can get confused, if `A` contains an unbracketed `by`.
1 parent 90f5d6d commit b106e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mathlib/SetTheory/Lists.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ theorem to_ofList (l : List (Lists α)) : toList (ofList l) = l := by induction
9999
theorem of_toList : ∀ l : Lists' α true, ofList (toList l) = l :=
100100
suffices
101101
∀ (b) (h : true = b) (l : Lists' α b),
102-
let l' : Lists' α true := by rw [h]; exact l
102+
let l' : Lists' α true := h ▸ l
103103
ofList (toList l') = l'
104104
from this _ rfl
105105
fun b h l => by

0 commit comments

Comments
 (0)