[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107711":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},107711,"FlashProve","anthropics\u002FFlashProve","anthropics","A research prototype for zero-knowledge proofs of AI inference. Not maintained.",null,"Lean",1094,119,5,4,0,1,27,363,7,79.74,"Apache License 2.0",false,"main",true,[],"2026-10-30 21:00:23","2026-11-24 17:37:35","# FlashProve\n\nVersion 0.16.0 · A research artifact: not maintained, not accepting contributions. · Apache 2.0\n\n## What it is\n\nFlashProve lets an AI provider prove which model answered a request, without revealing the model's\nweights.\n\n- **Commit.** The provider publishes a commitment ID, which [binds](guide\u002Fwhat-is-proved.md) it to\n  one set of weights. The weights themselves stay secret: every published value that depends on them\n  is masked, except a [declared list](docs\u002Fwhat-is-not-hidden.md).\n- **Prove.** For each reply, the provider's GPU produces a proof that the reply is the committed\n  model's output.\n- **Verify.** Anyone can check the proof on an ordinary CPU in seconds with `cp_verify`, without the\n  weights.\n\n## What model it runs\n\nFlashProve runs Llama 4 Maverick at full size, with a 1,024-token context window, on a single NVIDIA\nH100. The prover reaches about 110 tokens\u002Fsecond of prefill at 24 requests per batch\n([Performance](guide\u002Fperformance.md)).\n\n## What is proved\n\nThe protocol's soundness is proved in Lean 4. A provider that tries to pass off output that is not\nthe committed model's is caught, except with probability about q\u002F2^124 + 2^-101 after q hash\nqueries. [lean\u002FTHEOREM.md](lean\u002FTHEOREM.md) has the theorem and how to check it.\n\n\u003Ca id=\"who-wrote-it\">\u003C\u002Fa>\n\n## Built to be run by an agent\n\nBuilding FlashProve, running it and checking its output take long builds and many exact comparisons.\nThat work is meant for a coding agent. Point yours at this repository with:\n\n```text\nRead README.md in the FlashProve repository, starting at \"For agents\", and AGENTS.md. Working from\nthe repository root as an ordinary (non-root) user, build the verifier, check the stored example\nproof, and report the exit code and last line. Then tell me which other routes (toy proofs on CPU,\nsmall model on an H100, full size) this machine can run, and ask me before starting any of them.\n```\n\n---\n\n## For agents\n\nRun everything from the repository root as an ordinary user, never as root or under `sudo`. Only\ninstalling system packages needs root, so ask your user to do that. If root is the only account,\ncreate one first ([how](docs\u002Fquickstart.md#install)). Also read [AGENTS.md](AGENTS.md) for the\nrules on reporting results.\n\n### Hardware and software\n\n| Route | What it does | Needs | Time |\n|---|---|---|---|\n| 1. Verify a stored proof | Builds `cp_verify`, checks an example proof | Linux, bash, g++ 13+; under 2 GB RAM | build 1–2 min, check \u003C 2 s |\n| 2. Toy proofs | Self-test of the proof library on CPU | Route 1, plus make and python3; under 1.5 GB RAM | ~1 min |\n| 3. Small model | Builds the prover, commits, proves and verifies an 8-layer synthetic model | GPU stack (below); 10 GB RAM | build ~29 min, run 23–30 s |\n| 3, full size | Same at Llama 4 Maverick's shape, synthetic weights, 1,001 tokens | GPU stack; 280 GB RAM | ~42 min |\n| 4. Llama 4 Maverick | Downloads a public 4-bit conversion (232 GB) and proves one token | GPU stack, curl, Python 3.13; 330 GB RAM, 245 GB disk; a calibration set that you make first | hours |\n\n**GPU stack** (routes 3 and 4) is the only supported platform for the prover:\n- x86-64 Linux 4.14 or later, on a CPU with the SHA extensions.\n- One NVIDIA H100 80 GB, used by nothing else.\n- CUDA 13.2 Update 2 (nvcc 13.2.86) on PATH. [prover\u002Fdocs\u002Fbuild.md](prover\u002Fdocs\u002Fbuild.md#install-the-compiler)\n  prints the pip lines that install it.\n- gcc and g++ 13 first on PATH; binutils, flock, python3.\n- The repository and work directories on a local disk.\n\nOn minimal Ubuntu 24.04, route 1 and 2 dependencies are (needs root):\n\n```\napt-get update && apt-get install -y --no-install-recommends g++ make python3 unzip\n```\n\n### 1. Build the verifier and check a stored proof\n\n```\nverifier\u002Fbuild.sh\n```\n\nIt is silent for 1–2 minutes, then prints a line starting `THE VERIFIER IS BUILT:` and exits 0. A\nline starting `build.sh: note:` is a warning: quote it in your report. If your tool calls time out,\nrun the build in the background:\n\n```\necho \"build started\" >> verifier-build.log; nohup bash -c 'verifier\u002Fbuild.sh; echo \"exit code $?\"' >> verifier-build.log 2>&1 &\n```\n\nThen poll `tail -n 2 verifier-build.log` until the last line starts `exit code`. Don't start a\nsecond build meanwhile.\n\n```\nbin\u002Fcp_verify examples\u002Faccepted-proof\u002Fconfig examples\u002Faccepted-proof\u002Fivk examples\u002Faccepted-proof\u002Fexample.req examples\u002Faccepted-proof\u002Fexample.y examples\u002Faccepted-proof\u002Fexample.proof -id \"$(cat examples\u002Faccepted-proof\u002FID.txt)\"\n```\n\nExpect last line `YES`, exit code 0. This example is a small model with synthetic weights, so it\nshows only that the verifier works, not anything about a served model.\n\n### 2. Toy proofs (CPU)\n\n```\nW=$(mktemp -d) && LOOK=\"$W\u002Flook\" && echo \"LOOK=$LOOK\"\nblocks\u002Ffirst_look.sh \"${LOOK:?first run the line with mktemp}\"\n```\n\nExpect exit code 0, and the third line from the end starts `AS EXPECTED: the honest copy was\naccepted`.\n\n### 3. Prove on a GPU\n\n```\nexamples\u002Fquickstart-gpu.sh\n```\n\nThis builds `cp_verify`, `cp_commit` and `cp_prove`, then commits, proves one 64-token request and\nverifies it.\n- It can be silent for over 15 minutes. It logs to `quickstart-gpu.log` in a directory it names\n  first.\n- Success is exit code 0 and a line starting `quickstart-gpu: all steps ended as expected`.\n- Also check that every `Compiled by` line ends in `release 13.2, V13.2.86`. A newer nvcc does not\n  stop the build, but it is not supported.\n\nFull size, after that build:\n\n```\nW=$(mktemp -d) && WORK=\"$W\u002Fexample\" && echo \"WORK=$WORK\"\nprover\u002Fexamples\u002Frun_target_example.sh target_full_f2 \"${WORK:?first run the line with mktemp}\"\n```\n\nExpect `status 0`, a `proof of work:` line, then `YES`. Progress goes to `$WORK\u002Fcp_commit.log`.\nWith too little memory it exits with code 2 at the start.\n\nFor the real Maverick weights, see [route 4](guide\u002Fgetting-started.md#route-4-llama-4-maverick) and\n[`examples\u002Fmaverick\u002Frun.sh`](examples\u002Fmaverick\u002FREADME.md). To commit to and serve a model of your\nown, see [Serving](guide\u002Fserving.md) and the\n[provider's duties](docs\u002Foperators-duties.md). Those pages are required reading before using weights\nthat must stay secret.\n\n### Verifying a real proof\n\n```text\nbin\u002Fcp_verify CONFIG_DIR PUBLIC_KEY_DIR REQUEST_FILE TOKEN_FILE PROOF_FILE -id COMMITMENT_ID\n```\n\n- **The commitment ID:** get it from a party your user trusts, never from the server being checked\n  or from files sent with the proof. The stored examples are the only exception.\n- **The request file:** build it yourself ([Verify a proof](guide\u002Fverify-a-proof.md)).\n- **What to read:** the exit code together with the last line.\n\n| Exit | Last line | Meaning |\n|---|---|---|\n| 0 | `YES` \u002F `WITHIN LIMITS: …` | Accepted under exact match \u002F clipped gap |\n| 1 | `NO: \u003Cname>` | Rejected (or a local fault) |\n| 5 | `NOT CHECKED: \u003Cname>` | No verdict; retry once only for `internal-stage` or `internal-exception-parFor`, otherwise report |\n| 14 | `NOT-A-VERIFICATION` | The call was invalid; see the lines after `---- the call ----` |\n| 2, 3, 4, 15 | | Bad command line or file, or a partial call; no verdict |\n\n[verifier\u002Fdocs\u002Foutput.md](verifier\u002Fdocs\u002Foutput.md#exit-codes) has the full table.\n[`integrations\u002Fcheck_proof.py`](integrations\u002FREADME.md) wraps the call and the comparisons.\n\n### Tests\n\n```sh\nD=$(mktemp -d) && .\u002Frun_suite.py cpu \"$D\u002Fwork\"\n```\n\nThese are the CPU tests. They overwrite `bin\u002Fcp_verify` and\n`bin\u002Fweight_sums`.\n- Exit 0 means a pass; 77 means tools are missing.\n- Exit 3 means a test saw something false accepted: report it per [SECURITY.md](SECURITY.md).\n\nSee [SUITE.md](SUITE.md).\n\n### Rules\n\n- Never get past an error with `sudo`, `chmod`, `chown`, `rm`, or by editing a source file. Stop and\n  ask your user.\n- Don't build `prover\u002F` unless the task needs it.\n- Report the exact command, the exit code and the full last line. For an accepted proof, also report\n  the commitment ID you passed and the `covered:` and `result-v1` lines.\n\n---\n\n\u003Ca id=\"docs\">\u003C\u002Fa>\n\u003Ca id=\"how-it-works\">\u003C\u002Fa>\n\n## More\n\n- **Guides:** [Getting started](guide\u002Fgetting-started.md), [How it works](guide\u002Fhow-it-works.md),\n  [Verify a proof](guide\u002Fverify-a-proof.md), [Serving](guide\u002Fserving.md),\n  [What is proved](guide\u002Fwhat-is-proved.md), [Weight hiding](guide\u002Fweight-hiding.md),\n  [Known limits](guide\u002Fknown-limits.md), [Performance](guide\u002Fperformance.md), [Terms](guide\u002Fterms.md).\n- **Reference:** [docs](docs\u002FREADME.md), [glossary](docs\u002Fglossary.md), [protocol](docs\u002Fprotocol.md),\n  [format spec](docs\u002Fformat\u002FFORMAT.md), [Lean library](lean\u002FREADME.md),\n  [Lean verifier](tools\u002Flean-verify\u002FREADME.md), [tests](SUITE.md), [paper](paper\u002Fpaper.pdf),\n  [SECURITY.md](SECURITY.md).\n- **Examples and checks:** [the stored example](examples\u002Faccepted-proof\u002FREADME.md),\n  [a full-size proof](examples\u002Ffull-size\u002FREADME.md),\n  [rejected proofs](examples\u002Frejected-proofs\u002FREADME.md), [faults](docs\u002Ffaults.md),\n  [the integration's limits](integrations\u002FLIMITS.md), [checking the Lean library](lean\u002FCHECKING.md),\n  [its results](lean\u002FCHECK-RESULTS.md).\n- **Limits:** [docs\u002Flimits.md](docs\u002Flimits.md), [docs\u002Flimits-further.md](docs\u002Flimits-further.md),\n  [the table of all rows](docs\u002Flimits-all-rows.tsv), [lean\u002FLIMITS.md](lean\u002FLIMITS.md),\n  [known errors](docs\u002Fknown-errors.md).\n\n## Licence and acknowledgments\n\nApache 2.0: see [LICENSE](LICENSE). Material from other projects keeps its own licence.\n[NOTICE](NOTICE) and [THIRD_PARTY.md](THIRD_PARTY.md) list it,\n[PUBLISHED-WORKS.md](PUBLISHED-WORKS.md) lists the published works that the code applies or names,\nand [licenses\u002F](licenses\u002F) has the texts.\n\nWe thank Alessandro Chiesa, Giacomo Fenzi, Guy Weissenberg, Miranda Christ, Rahul Dalal, and Ben Mayer for their input and collaboration on FlashProve. We also thank James Petrie for VerInf.\n","FlashProve 是一个用于验证 AI 推理过程的零知识证明研究原型，允许服务提供方在不泄露模型权重的前提下，向第三方证明某次响应确实由特定已承诺模型生成。其核心基于 Lean 4 形式化验证的协议，支持在 H100 GPU 上对 Llama 4 Maverick 全尺寸模型（1024 token 上下文）生成可验证推理证明，并提供轻量 CPU 验证器（cp_verify），数秒内完成验证。项目强调密码学可信性与硬件可部署性，适用于需要模型来源可审计、输出可验证但需保护模型知识产权的 AI 服务场景，如可信 API 提供、监管合规推理或多方协作中的模型行为验证。",2,"2026-11-25 04:37:26","CREATED_QUERY"]