{"id":50509788,"url":"https://github.com/eth-act/zisk-fv","last_synced_at":"2026-06-02T19:02:13.340Z","repository":{"id":355022215,"uuid":"1216426391","full_name":"eth-act/zisk-fv","owner":"eth-act","description":"Lean 4 formal verification of the ZisK zkVM against the Sail RISC-V specification (ZisK fork baseline + FV work in ai_plans/, docs/fv/, ZiskFv/, tools/zisk-pil-extract/).","archived":false,"fork":false,"pushed_at":"2026-06-02T06:10:48.000Z","size":8580,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T08:12:28.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lean","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eth-act.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T22:29:47.000Z","updated_at":"2026-06-02T05:42:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eth-act/zisk-fv","commit_stats":null,"previous_names":["eth-act/zisk-fv"],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/eth-act/zisk-fv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-act%2Fzisk-fv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-act%2Fzisk-fv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-act%2Fzisk-fv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-act%2Fzisk-fv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eth-act","download_url":"https://codeload.github.com/eth-act/zisk-fv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-act%2Fzisk-fv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33833277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T19:02:09.805Z","updated_at":"2026-06-02T19:02:13.328Z","avatar_url":"https://github.com/eth-act.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zisk-fv\n\nThis repository is still undergoing quality control. Do not treat it as a\nproduction claim that any released ZisK circuit correctly implements RV64IM.\n\n`zisk-fv` is a Lean 4 formal-verification project for\n[ZisK](https://github.com/0xPolygonHermez/zisk)'s zkVM circuit against the\n[Sail RISC-V specification](https://github.com/riscv/sail-riscv), restricted\nto RV64IM.\n\nThe current verification claim is:\n\n```lean\nZiskFv.Compliance.zisk_riscv_compliant_program_bus\n```\n\nThat theorem dispatches all 63 covered RV64IM opcode surfaces through\n`ZiskFv/Compliance/Wrappers/\u003cOp\u003e.lean` to the canonical `equiv_\u003cOP\u003e` theorem\nfor each instruction. `lake build` typechecking is the formal check.\n\n## Trust Boundary\n\nAll trust-boundary documentation and all machine-checked trust ledgers live in\n[`trust/`](trust/README.md). The current source trust ledger contains 12\nLean axiom declarations. The global compliance theorem's transitive project\naxiom closure contains 9 of those declarations, recorded in\n[`trust/baseline-zisk-riscv-compliant.txt`](trust/baseline-zisk-riscv-compliant.txt).\n\nThe narrative trust ledger is\n[`trust/trusted-base.md`](trust/trusted-base.md). The generated flat index is\n[`trust/axiom-index.md`](trust/axiom-index.md).\n## Build And Verify\n\nAfter a fresh clone, populate the generated inputs:\n\n```bash\nnix run .#populate\n```\n\nDay to day:\n\n```bash\nlake build\ntrust/scripts/check-all.sh\ntrust/scripts/check-all-semantic.sh\n```\n\nThe full repository test path is:\n\n```bash\nnix run .#test\n```\n\n## Layout\n\n| Path                              | Purpose                                                                                                 |\n| ---                               | ---                                                                                                     |\n| `ZiskFv/`                         | Lean proofs, per-opcode equivalence theorems, compliance wrappers, and the global theorem.              |\n| `trust/`                          | The trust ledger, generated axiom indices, caller-burden baselines, and trust-gate scripts.             |\n| `build/`                          | Generated Sail-Lean, PIL extraction, and pilout artifacts. Gitignored; created by `nix run .#populate`. |\n| `tools/pil-extract/`              | Rust extractor from `.pilout` protobuf to Lean constraint files.                                        |\n| `tools/`                          | Auxiliary repository tooling, including trust-ledger index generation.                                  |\n| `docs/extraction/`                | Non-trust notes for `pil-extract`, pilout structure, and AIR inventory.                                 |\n| `nix/`, `flake.nix`, `flake.lock` | Reproducible build definitions and pinned upstream inputs.                                              |\n| `zisk/`                           | ZisK source submodule used as a citation surface. The pilout is built from the flake-pinned input.      |\n\n## Pipeline\n\n```text\nflake.lock\n  |\n  v\nnix run .#populate\n  |-- build/sail-lean/                  Sail RV64 spec compiled to Lean\n  |-- build/zisk.pilout                 ZisK PIL2 constraints\n  `-- build/extraction/Extraction/*.lean\n       ^\n       |\n       tools/pil-extract\n\nlake build\n  |\n  v\nZiskFv.Compliance.zisk_riscv_compliant_program_bus\n```\n\nThe Sail side comes from the flake-pinned Sail and sail-riscv sources. The ZisK\nside comes from the flake-pinned pilout and generated Lean extraction, wrapped\nby the human-readable AIR and circuit semantics under `ZiskFv/`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feth-act%2Fzisk-fv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feth-act%2Fzisk-fv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feth-act%2Fzisk-fv/lists"}