https://github.com/EasyCrypt/easycrypt
Revision aa6dc074f77deb2c8215b6281a0a0be9e358d461 authored by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC, committed by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC
Syntax is: `rewrite [pattern]rule`

In this form, `pattern` is first searched against the
current goal and rule LHS is then matched against the
instanciated pattern. E.g.

  `rewrite [y+_]addrC`

will instantiate `addrC` to `y` and `z` assuming that
the first match of `y+_` in the current goal is `y+z`.

This syntax is compatible with other variants:

  `rewrite -{2}[y+_]addrC`
1 parent 4afdfe9
History
Tip revision: aa6dc074f77deb2c8215b6281a0a0be9e358d461 authored by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC
Add a simple form of pattern selection in rewrite rules
Tip revision: aa6dc07
File Mode Size
.github
config
examples
lint
scripts
src
theories
.dir-locals.el -rw-r--r-- 285 bytes
.gitignore -rw-r--r-- 515 bytes
.merlin -rw-r--r-- 241 bytes
COPYRIGHT -rw-r--r-- 581 bytes
COPYRIGHT.yaml -rw-r--r-- 596 bytes
MANIFEST -rw-r--r-- 623 bytes
Makefile -rw-r--r-- 4.8 KB
Makefile.system -rw-r--r-- 555 bytes
README.md -rw-r--r-- 7.5 KB
_tags -rw-r--r-- 812 bytes
default.nix -rw-r--r-- 392 bytes
easycrypt.png -rw-r--r-- 182.6 KB
myocamlbuild.ml -rw-r--r-- 2.3 KB
opam -rw-r--r-- 1.0 KB

README.md

back to top