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
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
Add a simple form of pattern selection in rewrite rules
Tip revision: aa6dc07
File | Mode | Size |
---|---|---|
ChaChaPoly | ||
MEE-CBC | ||
cramer-shoup | ||
incomplete | ||
old | ||
plug-and-pray | ||
prg-tutorial | ||
to-port | ||
Dice4_6.ec | -rw-r--r-- | 2.8 KB |
FundamentalLemma.ec | -rw-r--r-- | 2.1 KB |
PIR.ec | -rw-r--r-- | 12.8 KB |
PRG.ec | -rw-r--r-- | 16.9 KB |
Pedersen.ec | -rw-r--r-- | 5.3 KB |
SchnorrPK.ec | -rw-r--r-- | 5.0 KB |
Upto.ec | -rw-r--r-- | 5.1 KB |
WhileSampling.ec | -rw-r--r-- | 702 bytes |
async-while.ec | -rw-r--r-- | 1.8 KB |
br93.ec | -rw-r--r-- | 21.0 KB |
elgamal.ec | -rw-r--r-- | 3.1 KB |
hashed_elgamal_generic.ec | -rw-r--r-- | 9.9 KB |
hashed_elgamal_std.ec | -rw-r--r-- | 4.5 KB |
vonNeumann.eca | -rw-r--r-- | 3.3 KB |
Computing file changes ...