Simulations of bitwise operations
clarus opened this issue · comments
This task is similar to #7 The goal is to write a simulation (no proofs yet) of the following functions. An example of such a simulation is in the file https://github.com/formal-land/coq-of-python/blob/main/CoqOfPython/ethereum/paris/vm/instructions/simulations/arithmetic.v for the add
function.
- the Python source file: https://github.com/ethereum/execution-specs/blob/master/src/ethereum/paris/vm/instructions/bitwise.py
- the translated version in Coq: https://github.com/formal-land/coq-of-python/blob/main/CoqOfPython/ethereum/paris/vm/instructions/bitwise.v (generated)
- the file for the simulations (to create): https://github.com/formal-land/coq-of-python/blob/main/CoqOfPython/ethereum/paris/vm/instructions/simulations/bitwise.v
The functions to simulate (there might be auxiliary functions to simulate too):
-
bitwise_and
-
bitwise_or
-
bitwise_xor
-
bitwise_not
-
get_byte
-
bitwise_shl
-
bitwise_shr
-
bitwise_sar