Zulip Chat Archive
Stream: general
Topic: what is advantage of simprocs
Asei Inoue (Apr 16 2024 at 20:14):
From v4.6.0 simproc was introduced.
https://github.com/leanprover/lean4/releases/tag/v4.6.0
But what is 'newly' possible with the introduction of simproc? The examples given in the release notes seem to be sufficient for conventional simp.
Asei Inoue (Apr 16 2024 at 20:14):
What is newly possible with simproc in libraries such as mathlib?
Alex J. Best (Apr 16 2024 at 20:18):
One standard example of a simproc
is that if the condition c
in if c then h else h'
simplifies to true then this can be replaced by just h
before simp
has a chance to simplify h'
which is what it would normally do as it works bottom up.
Asei Inoue (Apr 16 2024 at 20:22):
simp made faster?
Sebastian Ullrich (Apr 16 2024 at 21:02):
https://lean-lang.org/blog/2024-2-29-lean-460/ has more examples
Last updated: May 02 2025 at 03:31 UTC