/zorch:using-zorchfrom zorch
Build proof systems with zorch — FRX-native building blocks for SNARKs. Use when importing zorch, assembling provers, or debugging FRX toolchain errors.
Ships in zorch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
zorch provides reusable, proving-scheme-agnostic building blocks a SNARK is
assembled from. It runs on FRX, Fractalyze's fork of JAX, lowered through
Fractalyze XLA with native finite-field dtypes. Install as pyzorch,
import as zorch (the zorch name on PyPI is an unrelated project).
This guide is verified against pyzorch 0.2.0 — the imports and links below
pin that release. main may be ahead of what pip installs.
Python 3.11 only, Linux x86_64 or macOS Apple Silicon:
pip install pyzorch # CPU tier
pip install pyzorch 'frx[cuda12]' \
--extra-index-url https://fractalyze.github.io/pypi/simple/ # GPU (CUDA 12)
python -c "import frx, zorch; print(frx.devices()); print(zorch.__version__)"
Install problems, platform limits, and error symptoms: references/setup.md.
A round is one step of a repeated recurrence; a stage is one claim reduction with separately deployable prover/verifier roles:
ProverRound: (carry, transcript) -> (carry, transcript, message)
VerifierRound: (carry, transcript, message) -> (carry, transcript, ok)
ProverStage.prove(claim, witness, transcript) -> ProveResult
VerifierStage.verify(claim, reduction_proof, ...) -> VerifyResult
Both roles derive the same reduced claim; the reduction proof establishes
the source claim conditional on it. Stages chain — each stage's reduced
claim is the next one's source claim — until TrivialClaim, which holds by
construction. Which blocks exist and where to import them from:
references/blocks.md.
zk_dtypes); no pow(x, e, p), no x % MODULUS, no hardcoded prime
literals. Field dtypes also reject a few array ops that work on ints (bit
shifts, power by a traced exponent array) — the exact errors and
workarounds are in
references/field-dtypes.md.Round, an absorb/squeeze, a commit/open, a fold step, and a
hash permutation each lower to one replayable device unit by
construction — never by hoping a compiler pattern-match recovers it. In
your round bodies that means element-wise field ops plus the one inherent
Σ, no gratuitous reduce/gather, no host round-trips. The @jit
discipline, loop-tool choice, and how to verify:
references/frx-and-fusion.md.| Read | When |
|---|---|
| references/setup.md | installing, wrong-platform/toolchain errors |
| references/blocks.md | finding the right block and its import path |
| references/field-dtypes.md | writing field arithmetic; MLIR/dtype crashes |
| references/frx-and-fusion.md | writing FRX/JAX code that fuses; @jit and loop-tool rules; slow-jit debugging |
| references/building-on-zorch.md | assembling a prover; what goes in your repo vs upstream |
Design docs (the WHY behind each block):
docs hub ·
worked full SNARK, shipped as importable code:
zorch.spartan.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fractalyze/zorch --plugin zorchOther plugins' skills for the same job