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 the arithmetic file

clarus opened this issue · comments

We focus on verifying the Paris version of the EVM. We will start with the arithmetic.py file that describes the primitive arithmetic operations. The relevant files are:

The goal of this task is to complete the simulation file to have a definition for rest of the functions:

  • add
  • sub
  • mul
  • div
  • sdiv
  • mod
  • smod
  • addmod
  • mulmod
  • exp
  • signextend

This might require adding some definitions for functions in other files as well, when they are called. For now, only the add function is defined.