Add `last_cons_Some_ne` lemma for the `last` function
All threads resolved!
All threads resolved!
A useful lemma for the [last] function, to reduce last (x::l) = Some y
to last l = Some y
whenever x ≠ y
.
This is useful since using last_cons
leaves us with
match last l with
| Some y0 => Some y0
| None => Some x
end = Some y
which only reduces through a subgoal.
Edited by Robbert Krebbers
Merge request reports
Activity
- Resolved by Jonas Kastberg
enabled an automatic merge when the pipeline for 13ed6a8d succeeds
mentioned in commit e58dd720
Please register or sign in to reply