GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - h5i-dev/e5r: Assembly-Level Formal Verification with Lean 4

BranchesTags
Open more actions menu

Latest commit

 

History

738 Commits
738 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
crates
crates
 
 
docs
docs
 
 
fixtures
fixtures
 
 
scripts
scripts
 
 
skills/e5r
skills/e5r
 
 
verification
verification
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
deny.toml
deny.toml
 
 
install.sh
install.sh
 
 
mutants.toml
mutants.toml
 
 

Repository files navigation

e5r: Assembly-Level Formal Verification with Lean 4

e5r proves properties of the code a compiler actually emitted, such as NVIDIA PTX kernels and RISC-V firmware binaries. Every proof is checked by the Lean 4 kernel, so neither the compiler nor whoever wrote the code has to be trusted.

e5r ptx check saxpy.ptx --spec saxpy.json    # proved, refuted, unsupported or unknown
e5r ptx check k.ptx --spec k.json --proof Proof.lean   # check your own proof
e5r check verification/rv32/jobs/hifive1-duty.json     # a firmware proof job

For a PTX kernel, check proves memory safety, race freedom, termination and functional correctness for every launch, input and thread interleaving the spec allows. If the proof fails, it looks for a counterexample and has Lean replay it.

Supported assembly

Assembly What is proved Not yet Docs
NVIDIA PTX Maps, reductions, scans, atomics and .f32 maps, automatically; anything else via --proof exch/cas atomics, float error bounds, float reductions, .f64 maps, approximate instructions PTX
RISC-V (RV32IMAC, HiFive1 Rev B) Hand-written machine-code proofs of functions and regions A whole-firmware safety theorem firmware, RMK

Install

cargo build --release -p e5r-verify
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
./scripts/recheck-ptx.sh      # rebuild and recheck every PTX result

The e5rx toolkit

e5r also ships e5rx, the binary analysis toolkit it grew out of: disassembler, decompiler, binary differ. It is development infrastructure here and is not an input to any proof. See MANUAL.md.

ROADMAP · CONTRIBUTING · Apache-2.0

About

Assembly-Level Formal Verification with Lean 4

Topics

assemblydisassemblerdisassemblyx86-64

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

41 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.