We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe60957 commit 2c97fe4Copy full SHA for 2c97fe4
src/Lean/SimpLC/Whitelists/List.lean
@@ -91,6 +91,12 @@ simp_lc ignore List.foldl_subtype
91
simp_lc ignore List.foldr_subtype
92
simp_lc ignore List.mapFinIdx_eq_mapIdx
93
94
+-- TODO move to library.
95
+@[simp] theorem List.modifyHead_dropLast {l : List α} : l.dropLast.modifyHead f = (l.modifyHead f).dropLast:= by
96
+ rcases l with _|⟨a, l⟩
97
+ · simp
98
+ · rcases l with _|⟨b, l⟩ <;> simp
99
+
100
/-
101
The actual checks happen in `tests/lean/run/simplc.lean`.
102
This commented out command remains here for convenience while debugging.
0 commit comments