lean4-htt/tests
Paul Reichert a12f89aefa
feat: introduce take iterator combinator (#8418)
This PR provides the `take` iterator combinator that transforms any
iterator into an iterator that stops after a given number of steps. The
change contains the implementation and lemmas.

`take` has a special implementation of `IteratorLoop` that relies on a
potentially more efficient `forIn` implementation of the inner iterator.

The mysterious `@[specialize]` on a test has been removed because it is
not necessary anymore according to a manual inspection of the IR. Either
I erroneously concluded from experiments that it was necessary of
something has changed in the meantime that makes it unnecessary.
2025-05-30 10:34:12 +00:00
..
bench chore: try refining some benchmark settings (#8377) 2025-05-16 11:24:11 +00:00
compiler
elabissues
ir
lean feat: introduce take iterator combinator (#8418) 2025-05-30 10:34:12 +00:00
pkg feat: do not export def bodies by default (#8221) 2025-05-15 12:16:54 +00:00
playground
plugin
simpperf
.gitignore
common.sh
lean-toolchain