Project ideas from Hacker News discussions.

Developing provably correct Rust code with Verus

📝 Discussion Summary (Click to expand)

Generating summary…


🚀 Project Ideas

Generating project ideas…

TLA2Verus: TLA+ to Rust/Verus Transpiler

Summary

  • Enables developers to write TLA+ specifications and automatically generate Rust code annotated with Verus contracts, bridging the gap between high-level model checking and low-level implementation.
  • Core value: provably correct Rust implementations derived from formally verified TLA+ models, reducing trust gap and manual proof effort.

Details

Key Value
Target Audience Systems engineers, protocol designers, and Rust developers seeking formal verification
Core Feature Transpiles TLA+ specs into Rust functions with Verus pre-/post-conditions and invariants
Tech Stack TLA+ parser (TLAPS), Rust procedural macros, Verus compiler, Z3 SMT solver
Difficulty High
Monetization Hobby

Notes

  • HN commenters expressed desire to “port AllConcur to Go” and wished they could “trust the implementation unless you can compile TLA+ to C”; this tool directly addresses that need.
  • Could spark discussion on bridging model checking with Rust verification and lower the barrier for adopting formal methods in production.

VerusLab: Interactive Verus Playground for Distributed Consensus

Summary

  • Provides a web-based IDE where users can write Verus-annotated Rust code for classic consensus algorithms (Raft, Paxos) and see real-time proof obligations and SMT solver feedback.
  • Core value: lowers the learning curve for program verification by offering guided tutorials, visual proof steps, and instant verification results.

Details

Key Value
Target Audience Students, researchers, and engineers learning formal verification or distributed systems
Core Feature Interactive editor with compile‑time Verus verification, proof‑step visualization, and built‑in tutorial library
Tech Stack Rust/Wasm frontend (e.g., Yew or Vercel), Verus compiler compiled to Wasm, Z3 via WebAssembly, Monaco editor
Difficulty Medium
Monetization Hobby

Notes

  • Commenters asked “Does it mean it verifies mathematical proofs directly within the Rust code?” and wanted clearer documentation; VerusLab offers an hands‑on way to answer that.
  • Potential for classroom use, blog posts, and community‑driven example contributions, fostering deeper engagement with Verus.

VerusCrate: Curated Registry of Verus-Verified Rust Crates

Summary

  • A package index similar to crates.io that hosts only Rust crates whose safety and correctness properties have been machine‑checked with Verus, each accompanied by a verification badge.
  • Core value: gives developers confidence to depend on verified building blocks (e.g., locks, queues, consensus modules) without re‑proving them.

Details

Key Value
Target Audience Rust library authors and users who need high-assurance components for safety‑critical or distributed systems
Core Feature Automated verification CI that runs Verus on submitted crates and publishes verification status badges
Tech Stack GitHub Actions (or GitLab CI) invoking Verus, a simple web UI (e.g., React + Node.js) displaying crates and badges, optional IPFS storage for artifacts
Difficulty Medium
Monetization Hobby

Notes

  • Users complained about “confusing how you can trust the implementation unless you can compile TLA+ to C”; a registry of Verus‑verified crates offers a concrete trust artifact.
  • Could become a hub for discussion on verified dependencies and encourage more projects to adopt formal verification in the Rust ecosystem.

Read Later