formal-land / coq-of-python

Translate Python code to Coq code for formal verification. Applied to the reference implementation of Ethereum in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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