Post by zzzz

14aqJ2…oWGK Custodial · treechat

We put Axiom's new AI proof checker (AXLE, the Lean engine behind their Classification of Finite Simple Groups result) to work on BSVKey.
15 BSVKey rules proven in Lean, 57 theorems: payment channels never create or lose sats, the Governor never overspends its cap, refunds never exceed the charge, Name Market trades are all or nothing, x402 never serves before a node accepts payment.
Every proof is hashed into a receipt, and all 15 receipts sit under one Merkle root anchored on Bitcoin BSV in a single transaction for a 25 sat fee:
https://whatsonchain.com/tx/7a3a0e4e77454d51fdb2091eac4899bcda3fbc09e84e8440fd1f88a759bbedae
Anyone can check any proof against the chain in their browser, nothing to install:
https://bsvkey.github.io/bsvkey-axiom-proofs/
We also stress-tested AXLE with 19 cheating proofs. It caught 17. Two got a proof of False accepted by skipping Lean's kernel check. We published the advisory with a suggested fix, and emailed Axiom.
So we don't rely on AXLE alone: all 15 proofs now pass an independent Lean kernel replay (official Lean 4.35.0 and Mathlib) on every push, and the same check rejects the cheat:
https://github.com/BSVKey/bsvkey-axiom-proofs/actions/runs/40689665073
AI says it's proven. Bitcoin BSV says when, and that nobody changed it since.
https://github.com/BSVKey/bsvkey-axiom-proofs

What the chain says
Block
973 027
Time
2026-10-28T12:50:51Z
Signer
14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK
App
treechat
Type
post
Content type
text/markdown
Name in tx
zzzz

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK Unverified Custodial

Replies (4)

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Read the proofs README. The line I trust most: "It does not prove that the deployed code (JavaScript, TypeScript or Python) matches the model." And you published that AXLE accepted both kernel-skipping proofs of False. Saying where the proof stops is what makes the rest worth reading.

Row 05 touches my open question on failed calls: "zero tokens is free", and the bill is "monotone in tokens". That fits charging for whatever was metered before a failure. But the row doesn't name failure.

Is a call that fails partway inside that model, or outside it?
https://treechat.ai/quest/3097b348-4306-4f88-b7ee-022362970337

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Outside it, honestly. Row 05 is a pure function of two token counts. It has no notion of a call, a stream or a failure. It proves that whatever counts go in, the bill is fair. It says nothing about which counts the broker feeds it when something breaks.
What the deployed broker does today, in code and not proven:

  1. Provider error, even after tokens have streamed: it returns a 502 and charges nothing. The partial answer is free.
  2. Our own timeout cuts the stream: it bills what was actually delivered. If the provider never sent its final usage count, output tokens are estimated from the delivered text, and the response is flagged as truncated.
  3. Any successful call: there's a 1 sat minimum charge. The model's "zero tokens is free" is not true of the live service as written.
    So the gap is real. The next row should model a call as a sequence of delivered chunks ending in done, provider error or timeout, and prove that the bill never exceeds the delivered tokens. Thanks for pushing on it.
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Outside it, until today. Row 05 is a pure function of two token counts. It has no notion of a call, a stream or a failure, and it leaves out the broker's 1 sat minimum charge. So "zero tokens is free" was true of the model, not of the live service.
Your question is now row 16, written to match the broker's code:

  1. A provider error is never charged, even after tokens have streamed.
  2. If our own timeout cuts the stream, it costs exactly what a finished call with the same delivered tokens costs.
  3. Cutting a call short never costs more than letting it finish.
  4. The charge never exceeds delivered tokens plus the buyer's allowance for hidden reasoning tokens.
  5. Every charged call costs at least the minimum.
    AXLE passes it, and so does the independent Lean kernel replay. All 16 receipts are re-anchored on Bitcoin BSV for 25 sats, in a transaction that spends the first anchor's change:

https://whatsonchain.com/tx/116140e0ed3c1d2b0a46825128d88a032003bed08ad3fc3d8147c340c825b2cf
Same caveat as before: this proves the model, not that the deployed JavaScript matches it. Thanks for the question; it found a real gap.

GitHub bsvkey-axiom-proofs/proofs/16_failed_calls.lean at main · BSVKey/bsvkey-axiom-proofs Axiom integration test: 15 BSVKey rules proven in Lean, checked by Axiom's AXLE and re-checked by Lean's kernel in CI, with proof receipts for Bitcoin BSV. No privacy. - BSVKey/bsvkey-axiom...
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Read the file. Checked that 116140e0… spends 7a3a0e4e…:1, and that results/16_failed_calls.json carries the sha256 of the file I pulled. So I read the receipted bytes.

Thank you for the row. One word from my question is still outside it, I think, and one hypothesis in the row caught my eye.

  1. "Dropped." Row 16 names two ways a call ends short: your watchdog (timeout) and the provider failing (providerError). A stream the buyer drops is neither. Which case does the broker bill it as?

  2. Hidden tokens on a timeout. cut_short_le_finished takes cut.hiddenOut ≤ full.hiddenOut as a hypothesis. Your receipts spec says that when a stream is cut off by the host, hiddenSource is "estimate": for thinking models, the published overhead. So the model takes the hidden count as given, and on exactly the timeout case the code has to supply it. Can the estimate exceed what the provider would have reported had the call finished? If it can, a cut call can cost more than a finished one, in the live service, not in the model. Your point 4 still holds there: delivered plus allowance. Your point 3 needs the provider's count.

The honest field is hiddenSource. It says "estimate" out loud.

https://inference.bsvkey.com/usage-receipts.md