KVerus 是一个基于技能的流程,用于将 Rust 代码迁移到 Verus,添加面向证明的规范、修复验证失败并审计结果。

Stars

10

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了一个可组合的端到端流水线,用于 Rust 代码的形式化验证,已在真实系统代码(VOSTD)上得到验证,并发表在 ASE 2026 上。

适合谁使用

  • 寻求形式化验证的 Rust 开发者
  • 程序验证领域的研究人员
  • 使用 Verus 的系统程序员
  • 开发已验证操作系统的工程师

典型使用场景

  • 将现有 Rust 代码迁移到 Verus 兼容基线
  • 添加面向证明的规范和不变式
  • 修复验证失败而不削弱规范
  • 去除冗余证明代码同时保持验证通过

项目优势

  • 可组合的技能支持分阶段或完整流水线使用
  • 包含语义审计以确保可执行行为与原始 Rust 一致
  • 已在 VOSTD(Asterinas 系统验证)的真实 PR 中验证
  • kverus-strip 在展示中移除了 1075 行冗余证明代码

使用前须知

  • 需要安装 Verus 工具链
  • 准确解析需要 Python 环境(提供基于 LLM 的回退)
  • 设计用于与需要外部 API 访问的代理工具(Codex 或 Claude Code)配合使用

README 快速开始

KVerus Skills

KVerus is a skill-based workflow for migrating Rust code to Verus, adding proof-oriented specifications, repairing verification failures, and auditing the result. It can be used stage by stage through individual skills or end to end with kverus-run, which combines migration, specification, fixing, evaluation, semantic audit, and postprocessing into one verification pipeline.

The workflow-based version presented in the ASE '26 paper KVerus: Scalable and Resilient Formal Verification Proof Generation for Rust Code is available on the ase-26 branch.

Setup Environment

0. Clone the Repo

$ git clone --recursive https://github.com/asterinas/KVerus.git

1. Prepare the python environment

If you don't have uv installed, please follow the official instructions.

# sync python environment
uv sync

[!NOTE] The Python environment is optional. kverus-strip uses treesitter-verus to parse Verus code more precisely, but it can also fall back to an LLM-based path without it. If you do not use an accurate kverus-strip, you can skip this step.

2. Install Verus

KVerus depends on the Verus command-line tool. See the official installation guide.

Setup Skills

KVerus ships a set of agent skills (under skills/) that can be installed into any target project for use with Codex or Claude Code.

# Install all skills into a target project (symlink mode, agent target by default)
$ ./scripts/install-skills.sh ~/my-project

Run ./scripts/install-skills.sh --help for the full set of options. Common ones:

OptionDescription
-m, --modesymlink (default) or copy
-t, --targetsagent, claude, or both (default: agent)
-s, --skillsComma-separated skill names (default: all)
-f, --forceOverwrite existing installations

Verification Workflow

KVerus is organized as a set of composable skills for turning Rust code into verified Verus code. The recommended entrypoint is kverus-run, whi

项目描述

KVerus: Scalable and Resilient Formal Verification for Rust Code

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
uzairansaruzi
精选
uzairansaruzi GitHub avatar

hermex

Hermex is a native SwiftUI iPhone app that lets you control a self-hosted Hermes AI agent directly from your phone, with no subscriptions, tracking, or third-party relay.

AI 与机器学习大语言模型
941
hahhforest
精选
hahhforest GitHub avatar

pi-textbook

A hands-on course that walks through building a Pi-style coding agent from scratch across 15 checkpoints, starting from an offline agent trajectory.

AI 与机器学习大语言模型
625