This PR makes `take`/`drop`/`extract` available for each of `List`/`Array`/`Vector`. The simp normal forms differ, however: in `List`, we simplify `extract` to `take+drop`, while in `Array` and `Vector` we simplify `take` and `drop` to `extract`. We also provide `Array/Vector.shrink`, which simplifies to `take`, but is implemented by repeatedly popping. Verification lemmas for `Array/Vector.extract` to follow in a subsequent PR. |
||
|---|---|---|
| .. | ||
| Tactic | ||
| Attr.lean | ||
| Basic.lean | ||
| Command.lean | ||
| Do.lean | ||
| Extension.lean | ||
| Extra.lean | ||
| Level.lean | ||
| Module.lean | ||
| StrInterpolation.lean | ||
| Syntax.lean | ||
| Tactic.lean | ||
| Term.lean | ||
| Types.lean | ||