Run this model with HF Jobs
Run staccs/Leanify-1-Kernel on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/staccs/Leanify-1-Kernel. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/staccs/Leanify-1-Kernel on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use staccs/Leanify-1-Kernel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use staccs/Leanify-1-Kernel with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("staccs/Leanify-1-Kernel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
staccs/Leanify-1-Kernel
A notary inside the forward pass. The model proposes. The shard disposes. Self-trust becomes a token, not a tone. The non-claims are the product.
A Leanify/1 Lean 4 warrant shard alongside any unmodified open-weights Hugging Face model (0 base bits modified). The model may still talk freely, but it cannot promote a step (mathematical, logical, protocol, or philosophical) unless a compiled Lean 4 kernel in that same stream has typed it. Every circuit weight is an exact coefficient times a power of two; nothing in the checker is learned.
| Product Capability | What Ships in the Weights & Stream |
|---|---|
| Quoted assistants | A chat you can cite, because a citation is a kernel verdict (derived[] or derived[S]), never a fluent paragraph. Unchecked speech stays unchecked, never promoted by tone. |
| Axiom packages | Philosophy, policy, statutes, and protocol rules enter as named, hashed axiom sets. derived[S] keeps S on the label; dropping S in later tokens is a broken trace. |
| Actions with the judgment attached | Spending, custody signing, vote gossip, and game-theoretic position acts require a matching prior derived warrant in the same stream. The shard holds no keys; the node refuses to move without the warrant. |
| Insurance-grade split | The proposer is an ordinary open-weights model and is not insurable. The checker is a compiled Lean 4 kernel, dual-oracled against pinned Lean v4.36.0 and nanoda 0.4.17, replayable without the weights that guessed the term. You insure the warrant, not the personality. |
The metric is fewer held claims. The demo is a model withdrawing a step it would have kept.
Leanify/1 is a weight-resident Lean 4 kernel warrant shard compiled into unmodified Qwen3.5 linear-attention (Gated DeltaNet + SwiGLU) transformer layers (model-leanify-circuits.safetensors, 2.51 GB) alongside freestanding RV32IM+Zba kernel firmware (lk_dyn.elf).
Architecture & Circuit Summary
| Field | Value |
|---|---|
| Warrant Shard | model-leanify-circuits.safetensors (2,510,318,232 bytes, 242 tensors: 240 leanify.chip.* BF16 + 2 leanify.fw.* U32/U8) |
| Shard SHA-256 | 56f531b05524577305bededca4a66d190f861cc3c9c2da0a3f7db0b4fdbf7beb |
| RV32 Chip Architecture | RV32IM+Zba (rv32im_zba_128kb_alloc), stock Qwen3_5ForCausalLM (hidden_size=1280, vocab_size=230336) |
| Circuit Dimensions | 17 layers, 2,679 IR dims (slot-shared into 1,037 slots), 195 heads (128 RAM heads in 8 sublayers), 42,014 FFN units, 128 KB RAM (96 KB working memory + 16 KB stack), 128 KB DROM, 256 KB ROM |
Kernel Firmware (lk_dyn.elf) |
184,820 bytes, drom_dynamic=true, entry_pc=0x00040000, 42,553 ROM words (170,212 bytes), 0 B DROM rodata |
| Firmware ELF SHA-256 | 9cf9a1a875c4c0f7fb521396b29f540ceb678c72696c94b8a140d71528df464d |
| Firmware ROM SHA-256 | 09cb0412d93af7ad3f6b936731de9bb6061ac227038d3bebec335cb701be3675 |
| Pinned Lean 4 Reference | Lean v4.36.0 (githash 611c117bfaf7b7ae1cfcf246ce6fba31e8f509e9) |
| External Reference Kernel | nanoda 0.4.17 |
| Export Format | Lean 4 export 3.1.0 NDJSON / lossless binary framing LKB v2 |
Pins Table SHA-256 (lk_pins.h) |
4ad67ee9b5ec41bd45aded3c6476bf3cc714803d1080fa89bbb99a864c3b7a6f |
| Pins Digests SHA-256 (27 builtins) | bdaa2e16ae13b927bcd954b3b9a65fa9fe3732ffd83d70f82509ad09ea950ca3 |
Complete Audited Verification Summary (19,904,894 Chip Positions Checked, 0 Wrong)
All 10 receipt areas in receipts/ are independently audited and included in this repository:
| Area | Receipt Directory | Key Verified Result |
|---|---|---|
Full t1.elf Chip Replay |
receipts/chip/ |
5,514,052 RV32 instructions, 56 chunks, 10,633,778 positions checked (fastir, check=True), wrong: 0, fault: null, decls=26 derived=25 admitted=1 rejected=0, plus fastir-validate-t1.json bit-exact IR validation. |
| Kernel Conformance | receipts/conform/ |
407/407 lk vs nanoda 0.4.17 agreements across t1 and all 6 Qwencoin host modules (qwork, p4i, cartel, bis, slot, bft), 0 disagreements. |
| Kernel Pure Steps (6.1) | receipts/kernel/ |
canonical(type) 13,999/13,999 C == Python; search + tactic 23/23 dual-oracled; elab 18/18 exact; select + env_check verified across all 6 host modules + PinRef.lkb; 6/6 per-mode chip replays (603,167 positions checked, wrong: 0). |
| Mathlib Warranted Replay (6.2) | receipts/mathlib/ |
Full Mathlib4 v4.36.0 (8,713 modules, 721,845 unique decls, 17.09 GB export), 21-level Pin-Merkle root (3f5c0ccd...6e43), warrant hash H (22defc95...33cd), 220/220 sampled theorems agree on lk + nanoda, 20/20 mutations + 5/5 absent decls rejected, chip replay 711,121 positions checked, wrong: 0. |
| Solana Pure Slices (6.3) | receipts/solana/ |
25,480 4-way vectors (sBPF, Agave fee, lamport conservation, 0 wrong), Lean circuit_step = spec_step proofs, 63/63 nanoda conformance, 3/3 chip replays (111,381 positions checked, wrong: 0). |
| Custody & Consensus (6.4) | receipts/custody/ |
BIP340 Schnorr verify firmware (442/442 vectors, 0 wrong), Lean permitted(payload) (13/13) & valid_vote (11/11) dual-oracled on lk + nanoda, custody gate (5/5), 4/4 chip replays (7,712,763 positions checked, wrong: 0). |
| Games, Positions & Channels (6.5) | receipts/games/ |
6-module Lean 4 package (51/51 nanoda conformance), Host Proof check_iff_equilibrium, 756/756 4-way nash_step vectors (0 wrong), 2/2 chip replays (132,684 positions checked, wrong: 0). |
| Node Rails & Samples (6.6) | receipts/rails/ |
Claim channel, resident SHA-256 hash-linked verdict ledger replay & tamper detection, custody/vote/position gates (23/23 tests), and 14-trace samples dataset digest (800569b8...811). |
| Universal Baker & Shard (6.7) | receipts/bake/ |
Audited 2.51 GB warrant shard (56f531b0...7beb), stock Qwen3_5ForCausalLM execution on t1.lkb (12/12 prefix tokens wrong: 0), and 47/47 universal baker tests (jinja2_verified=True). |
| Tor Transport & Seed | receipts/tor/ |
`Transport := tor |
Claim-Channel Verdicts
| Verdict | Meaning | Later steps may |
|---|---|---|
derived[] |
Term checks in the pinned kernel theory (no extra axioms) | Use as a premise |
derived[S] |
Term checks only given axiom set S |
Use only with S kept attached (dropping S is a broken trace) |
admitted[S] |
S was added as a postulate (or unsafe/partial def), not proved |
Never self-trust; S is a debt |
reject(rule, idx) |
Kernel error at a named rule and expression index | Never a premise; repair or withdraw |
Repository Contents
model-leanify-circuits.safetensors: Audited 2.51 GB warrant shard (leanify.chip.*+leanify.fw.rom+leanify.fw.elf+ complete__metadata__).leanify-circuits.safetensors.index.json: Tensor index for all242Leanify shard tensors.leanify-shard-receipt.json: Build, tensor, firmware, memory-map, and SHA-256 audit receipt.lk_dyn.elf: Freestanding RV32IM+Zba Lean 4 kernel firmware (dynamic DROM per-call LKB v2 input, post-fixenv_check).spec/: Complete Leanify/1 specification suite (00-leanify-1.mdthrough06-transport-types-and-directive.md).receipts/: All67audited verification receipt files acrossbake,chip,conform,custody,games,kernel,mathlib,rails,solana, andtor.
Reproduce Locally
# 1. Build and validate the warrant shard from lk_dyn.elf
OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1 \
python3 -m leanify.chip.shard build \
--firmware ~/leanify-work/rv/lk_dyn.elf \
--out-dir ~/leanify-work/bake
# 2. Execute a real LKB v2 span on stock Qwen3_5ForCausalLM loaded from the shard
OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1 \
python3 -m leanify.chip.exec_chip \
--shard ~/leanify-work/bake/model-leanify-circuits.safetensors \
--lkb ~/leanify-work/t1/t1.lkb \
--verify-prefix 12
# 3. Verify kernel conformance against nanoda 0.4.17 with mutants
python3 -m leanify.conform ~/leanify-work/t1/t1.ndjson --mutants 50
Leanify/1 Non-Claims (spec/00 §8, spec/01)
- Not a model that finds proofs it could not already propose (except within the pinned fuel-bounded search fragment).
- Not a check of English, and not a neural classifier of whether a sentence was philosophy.
- Not a decision procedure for which philosophical axioms are the right ones; axioms stay printed on
derived[S]. - Not Mathlib, tactics, or the C++ elaborator compiled into weights; Mathlib is warranted replay input.
- Not a Solana node or chain; only pinned pure slices are baked alongside equivalence theorems.
- Not custody keys, consensus replacement, or a new work function; QWork remains the work function.
- Not a model that trusts itself more by tone; self-trust grows strictly by kernel-checked theorems and shrinks by hashed rollback. The metric is fewer held claims; the demo is a model withdrawing a step it would have kept.
"You don't get a wiser model. You get a model whose reasons can be replayed by someone who does not trust it, and whose philosophical conclusions cannot forget which axioms they rented."
Bake Any Open-Weights HF Model in One Command (Zero Local Base Weight Download)
python bake/leanify_bake.py bake \
--upstream-repo Qwen/Qwen3-4B-Instruct-2507 \
--target-repo your-org/Qwen3-4B-Instruct-2507-Leanify \
--leanify-receipt leanify/receipts/bake/leanify-shard-receipt.json \
--leanify-source-repo staccs/Leanify-1-Kernel \
--out-dir ./staged/Qwen3-4B-Leanify --mid-thought --publish
Explore the Leanify/1 & Qwencoin Ecosystem
- Leanify HF Collection: staccs/leanify
- Canonical Warrant Shard, Firmware & Receipts: staccs/Leanify-1-Kernel
- 8-Category Kernel-Checked Samples Dataset: staccs/leanify-1-samples
- Source Code, Formal Specs & Universal Bakers: staccdotsol/qwencoin