Hi Viet,I did not work on the formalization of EVM a while ago due to other work(automatic resource bound analysis for probabilistic programs https://channgo2203.github.io/pdfs/cmutr02.pdf )The following is the implementation (not completed) on Github.However, we are working on the other aspect of EVM code analysis. We want to statically infer an upper-bound on the amount of gasconsumption for all inputs (input arguments and storage configurations). This analysis is based on our previous research on resource boundanalysis for both imperative and functional programs.We translate EVM byte-code into a kind of control flow graph (CFG). However, due to the unstructured and low level of EVM, I suppose it ismore convenient to infer upper-bound on gas consumption at Solidity source code provided that we have a good gas consumption model forSolidity language constructs.Best,-Van ChanOn Mon, Dec 25, 2017 at 8:28 AM, Viet Le <vietlq85@gmail.com> wrote:Hi all,Only one year after this message, I found interest in building a blockchain and smart contracts in OCaml. May I know how far is the EVM formalisation in Coq?There aren't many materials / blockchain implementations in OCaml but I found some interesting links:I would like to know more if anyone has more information.Thanks,
Viet--On 10 October 2016 at 15:00, Van Chan Ngo <chan.ngo2203@gmail.com> wrote:Hi Arthur,It is interesting to implement blockchains in functional language like OCaml. I am happy to hear more about this project.FYI, a related work, we are in progress to formalize the Ethereum Virtual Machine (EVM, the running environment of smart contracts) in Coq.Best,-ChanOn Oct 5, 2016, at 11:59 PM, Arthur Breitman <arthurb@tezos.com> wrote:If you find this intriguing and enjoy working in OCaml, please reach out: we're hiring! If you lean on the academic side and have experience with formal verification, reach out as well! We'd be interested in proving the correctness of some aspects of the protocol or sponsoring research in the field in general (within our modest means).Kind regards,Viet