formal-verification-epistemic

formal-verification-epistemic is a skill for Claude Code, Codex from Sounio-lang/sounio. It costs 55 tokens per session (1,074 once invoked), scanned A, original, Apache-2.0.

Guidance for using SMT solvers and proof assistants to mathematically verify scientific programs written in Sounio. SMT solvers check whether formal constraints can hold, while proof assistants help build machine-checked proofs.

In plain words
What is it for?
Use it to prove uncertainty bounds, check Bayesian confidence updates, verify complete and tamper-resistant provenance chains, and connect tools such as Z3, cvc5, Lean, or Coq to the Sounio compiler.
Why use it?
It helps detect whether uncertainty calculations, confidence updates, and data-origin records satisfy specified guarantees instead of trusting only runtime checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prove uncertainty bounds, check Bayesian confidence updates, verify complete and tamper-resistant provenance chains, and connect tools such as Z3, cvc5, Lean, or Coq to the Sounio compiler.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sounio-lang/sounio/formal-verification-epistemic
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Sounio-lang/sounio --skill formal-verification-epistemic
Clone the repo
git clone --depth 1 https://github.com/Sounio-lang/sounio

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for formal-verification-epistemic

README.md
[![agentmods](https://agentmods.dev/badge/skills/sounio-lang/sounio/formal-verification-epistemic/github.svg)](https://agentmods.dev/skills/sounio-lang/sounio/formal-verification-epistemic)
Your own site
<a href="https://agentmods.dev/skills/sounio-lang/sounio/formal-verification-epistemic"><img src="https://agentmods.dev/badge/skills/sounio-lang/sounio/formal-verification-epistemic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for formal-verification-epistemic

Your own site · 80×15
<a href="https://agentmods.dev/skills/sounio-lang/sounio/formal-verification-epistemic"><img src="https://agentmods.dev/badge/skills/sounio-lang/sounio/formal-verification-epistemic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01074
Opus 5 $0.00028 $0.00537
Sonnet 5 $0.00011 $0.00215
Haiku 4.5 $0.00006 $0.00107

Measured 12d ago against content hash ff113b0a870a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

formal-verification-epistemic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.roo/skills/formal-verification-epistemic/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Formal Verification of Epistemic Programs

When to use this skill

Use this skill when you need to:

  • Prove that a Sounio program’s uncertainty propagation obeys specified bounds
  • Verify that confidence updates follow Bayesian coherence
  • Ensure provenance chains are tamper‑proof and complete
  • Integrate SMT solvers (Z3, cvc5) or proof assistants (Lean, Coq) with the Sounio compiler
  • Add refinement‑type constraints that involve epistemic quantities

When NOT to use this skill

  • For ordinary type checking (use the existing checker)
  • For runtime validation of epistemic values (use the standard library’s runtime checks)
  • For performance optimizations unrelated to verification

Inputs required

  • Specification of the property to be verified (e.g., “output variance ≤ 0.1”)
  • References to formal definitions (probability theory, measure theory, GUM)
  • Choice of verification backend (SMT, Lean, custom)
  • Expected interaction model (compile‑time proof, runtime proof certificate)

Workflow

  1. Understand the existing verification infrastructure

    • Read docs/compiler/REFINEMENT_TYPES.md and self‑hosted/check/refinement.sio
    • Examine the SMT‑solver integration (if any) in self‑hosted/smt/
    • Review the epistemic semantics (docs/epistemic/SEMANTICS.md)
  2. Design the verification extension

    • Decide which properties are verifiable (variance bounds, confidence thresholds, provenance acyclicity)
    • Choose a verification backend and define the interface
    • Determine whether proofs are constructed at compile time or verified at runtime
  3. Extend the refinement‑type system

    • Add new refinement predicates that refer to epistemic attributes (variance, confidence, provenance)
    • Modify the refinement checker to interact with the chosen verification backend
  4. Implement the verification backend integration

    • Write a bridge that translates Sounio epistemic constraints into SMT‑LIB or Lean terms
    • Handle proof reconstruction and error reporting

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 123 lines · 55 tokens per session scan A ff113b0a870a

Subscribe to this mod's changes

formal-verification-epistemic is a skill published in the GitHub repository Sounio-lang/sounio (6 stars, last pushed today), licensed Apache-2.0. It adds 55 tokens to every session and 1,074 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vera-language

Write programs in the Vera programming language. Use when asked to write, edit, debug, or review Vera code (.vera files). Vera is a statically typed, purely functional language with algebraic effects, mandatory contracts, and typed slot references (@T.n) instead of variable names.

aallan/vera · 61 tokens

vera-language

Write programs in the Vera programming language. Use when asked to write, edit, debug, or review Vera code (.vera files). Vera is a statically typed, purely functional language with algebraic effects, mandatory contracts, and typed slot references (@T.n) instead of variable names.

aallan/vera · 61 tokens

lean-axiom-provenance

Find out what a Lean 4 project actually rests on, and why. Reports every theorem reaching a sorry anywhere upstream, everything settled by nativedecide rather than the kernel, and the shortest path from any declaration to any axiom with each hop labelled a statement dependency or a proof dependency. Use when the user…

vince-gonzalez/gonzalgo · 203 tokens

lean-generated-proof-audit

Check whether a machine-generated Lean 4 proof actually proves its theorem. A proof can appear in the environment, pass lake build, and still not have been proved: when elaboration fails Lean admits the declaration carrying sorryAx, which an axiom report cannot tell apart from a sorry somebody typed. Use when auditing…

vince-gonzalez/gonzalgo · 143 tokens

tla-check

Write and iteratively refine executable TLA+ specs (.tla) and TLC model configs (.cfg) from natural-language system designs; run TLC model checking; summarize pass/fail and counterexamples with explicit assumptions and bounds. Use when asked to design or validate a protocol/state machine, create or edit .tla/.cfg…

younes-io/agent-skills · 79 tokens

tla-proof

Write and iteratively refine TLA+ theorem proofs in .tla modules with TLAPS (tlapm); run proof checks and summarize proved vs failed/omitted obligations with explicit assumptions and trust boundaries. Use when asked to create or fix THEOREM or PROOF blocks, diagnose TLAPS failures, strengthen inductive invariants…

younes-io/agent-skills · 87 tokens