Command Palette

Search for a command to run...

Назад к скиллам
скилл № 98173

omega-architect-formal-proof

Formal theorem proving with omega-architect: install the CLI, configure a Lean 4 toolchain and an LLM backend, and drive the generate -> compile -> verify…

БесплатноЗапускает вложенные скрипты
diamond2nvот diamond2nv538 установок в других каталогах

Установить omega-architect-formal-proof в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

omega-architect — Formal Proof Workflow

Part of the Exo suite — literature (hfpclawer) → experiments (expflow-pde) → proofs (omega-architect). Three independent CLIs that meet through files and CLI calls, never imports. Entry skill: exo-suite-linkage (wiring, cost tiers low → medium → high, degradation ladder). Install: uv tool install hfpclawer · uv tool install expflow-pde · uv tool install "omega-architect @ git+https://github.com/diamond2nv/[email protected]"

Drive Ω-Architect (omega) to turn a Lean 4 theorem header into a machine-checked proof: generate candidates with an LLM, compile them with a real Lean toolchain (CompileGate), and keep only what the compiler accepts.

Cost is real. Generation spends LLM tokens and every candidate is compiled by Lean. This is the most expensive stage of the AI-for-Science toolchain — bound each run with --samples, --rounds, --timeout and the budget section of omega.toml. A local GPU backend (Ollama / vLLM) is the lever that moves spend from API tokens to local compute; how much it saves depends on model strength and workload and must be measured, not assumed.

When to use

  • A statement must be proved, not argued: invariants, conservation laws, bounds, type-level facts.
  • A formula-registry entry needs machine-checked backing (see exo-suite-linkage).
  • You want proof search (DFS / beam / hybrid) over candidate tactics with real compile checks.

Prerequisites

  • Python ≥ 3.11
  • Lean 4 toolchain — lean (and ideally lake) on PATH: install elan plus a Lean 4 release. Without Lean, T2/CompileGate is unavailable and nothing is compiler-verified.
  • An LLM backend — a remote API key (default model deepseek/deepseek-v4-flash) or a local Ollama / vLLM model passed via --model. The local backend is what reduces API token spend; its effectiveness is workload-dependent and should be tuned by measurement.

Install

# 1) Recommended — uv tool, pinned to a tag (isolated environment, `omega` on PATH)
uv tool install "omega-architect @ git+https://github.com/diamond2nv/[email protected]"

# 2) From the wheel attached to the GitHub release
uv tool install "https://github.com/diamond2nv/omega-architect/releases/download/v0.2.3/omega_architect-0.2.3-py3-none-any.whl"

# 3) Development checkout
git clone https://github.com/diamond2nv/omega-architect && cd omega-architect
uv pip install -e ".[all]"     # or: pip install -e .

# 4) Run it without installing (package name and entry point differ: --from)
# pin the version — `uvx`/`uv tool run` reuse an installed tool env (may run an older
# release), and an unpinned launch is a supply-chain (rug-pull) risk
uvx --from "git+https://github.com/diamond2nv/[email protected]" omega --help

# 5) pipx — classic CLI installer (needs a recent pipx; 1.0.0 cannot parse git specs)
pipx install "git+https://github.com/diamond2nv/[email protected]"

Quick start

omega init                     # write omega.toml (--skip-lean = configure without Lean discovery)
omega status                   # which models are reachable + routing history
omega prove 'theorem add_zero (n : ℕ) : n + 0 = n := by'    # generate -> compile -> verified

prove takes a Lean theorem header (statement ending in := by), not prose:

omega prove 'theorem my_bound (x : ℝ) (h : 0 ≤ x) : 0 ≤ x^2 := by' \
  --mode auto --samples 4 --rounds 2 --timeout 120 --imports 'import Mathlib'

Command reference

Command Purpose Key flags
omega init Generate omega.toml --skip-lean, --output, --force
omega status Model-router health + routing history —
omega route Preview the ModeRouter decision for a theorem theorem header
omega prove Prove one theorem: generate → compile → verified --mode auto|dfs|beam|hybrid, --model, --samples, --rounds, --timeout, --imports
omega prove-batch Batch proving (allocate → prove → aggregate) dataset
omega run Autonomous proof search for a research goal —
omega bench / omega benchmark Theorem benchmark (T2 pass rate) / hardware tok/s dataset

What the loop actually does

  1. Generate — the LLM (or a local model) proposes a proof body for the theorem header.
  2. Compile — CompileGate runs the real Lean toolchain on the candidate (--imports, default import Mathlib); candidates that do not compile are discarded.
  3. Verify — only compiler-accepted proofs count as verified; error memory and the error classifier feed the next round (--rounds).
  4. Route — ModeRouter picks the strategy (auto), or you pin one (dfs / beam / hybrid).

Sampling and rounds multiply cost: --samples × --rounds candidates, each compiled. Start at --samples 1 --rounds 1 to validate the plumbing, then raise.

Working without an

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл omega-architect-formal-proof?

Formal theorem proving with omega-architect: install the CLI, configure a Lean 4 toolchain and an LLM backend, and drive the generate -> compile -> verify loop (`omega prove`), including strategy modes, budgets and no-LLM smoke tests.

Как установить скилл omega-architect-formal-proof?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл omega-architect-formal-proof запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить omega-architect-formal-proof с