fstarverifier
Use fstar.exe to verify F* code and interpret the errors reported
Install
mkdir -p .claude/skills/fstarverifier && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4609" && unzip -o skill.zip -d .claude/skills/fstarverifier && rm skill.zipInstalls to .claude/skills/fstarverifier
About this skill
Invocation
This skill is used when:
- Verifying F* (.fst) or interface (.fsti) files
- Debugging verification failures
- Checking proof completeness
Core Operations
Basic Verification
# Verify a single file
fstar.exe Module.fst
# With Pulse extension
fstar.exe --include <PULSE_HOME>/out/lib/pulse Module.fst
# With include paths
fstar.exe --include <PULSE_HOME>/out/lib/pulse --include path/to/lib Module.fst
Diagnostic Options
# Show query statistics (find slow/cancelled proofs)
fstar.exe --query_stats Module.fst
# Split queries for isolation
fstar.exe --split_queries always Module.fst
# Log SMT queries for analysis
fstar.exe --log_queries Module.fst
# Refresh Z3 between queries
fstar.exe --z3refresh Module.fst
# Combined debugging
fstar.exe --include <PULSE_HOME>/out/lib/pulse --query_stats --split_queries always --z3refresh Module.fst
Resource Limits
# Set rlimit (default varies, target ≤10 for robustness)
# In file: #push-options "--z3rlimit 10"
# Set fuel for recursive functions
# In file: #push-options "--fuel 1 --ifuel 1"
Error Interpretation
"Could not prove post-condition"
Cause: SMT cannot establish the postcondition from available facts Solutions:
- Add intermediate
assertstatements - Call relevant lemmas explicitly
- Use
Seq.equal/Set.equalfor collection equality - Call
FS.all_finite_set_facts_lemma()for FiniteSet reasoning
"Identifier not found"
Cause: Symbol not in scope Solutions:
- Check module imports (
open,module X = ...) - Verify definition order (F* is order-sensitive)
- Check for typos in names
"rlimit exhausted" / Query cancelled
Cause: Proof too complex for SMT within time limit Solutions:
- Factor proof into smaller lemmas
- Reduce fuel:
#push-options "--fuel 0 --ifuel 0" - Add explicit type annotations
- Use patterns on quantifiers
- Make definitions
opaque_to_smtand instantiate manually
"Expected type X, got type Y" (Unification failure)
Cause: Type mismatch, often with refinements Solutions:
- Add explicit type annotations
- Cast values to base types
- Check refinement predicates
"Application of stateful computation cannot have ghost effect"
Cause: Calling stateful function in ghost context (Pulse-specific) Solutions:
- Ensure condition variables are concrete, not from
withbindings - Read from actual data structures, not ghost sequences
- Restructure to avoid ghost conditionals
Verification Strategy
For New Code
- Start with admitted proofs to check structure
- Remove admits one at a time
- Add helper lemmas as needed
- Verify interface (.fsti) before implementation (.fst)
For Failing Proofs
- Use
--query_statsto identify slow queries - Add
assertstatements to locate failure point - Factor out failing assertion into separate lemma
- Reduce proof to minimal failing case
- Add explicit lemma calls or type annotations
For Robustness
- Keep rlimits low (≤10)
- Split large proofs into lemmas
- Use explicit types over inference
- Prefer
Seq.equalover==for sequences
Additional resources
Find the directory PoP-in-FStar on the local machine, or locate it here: https://github.com/FStarLang/PoP-in-FStar
This contains the sources to the Proof-oriented Programming in F* book. You can search through the book for various explanations, tips and common patterns.
Also look at FStar/ulib, FStar/doc, FStar/examples for sample code.
More by FStarLang
View all skills by FStarLang →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversShadow-CLJS Build Monitor tracks ClojureScript builds in real time, showing statuses, warnings, errors, and file-specifi
Supercharge your NextJS projects with AI-powered tools for diagnostics, upgrades, and docs. Accelerate development and b
Run Python code online or compile Java programs easily with Code Runner. Test code in 30+ languages instantly in your br
Claude Historian: AI-powered search for Claude Code conversations—find files, errors, context, and sessions via JSONL pa
Logfire is a data observability platform for querying, analyzing, and monitoring OpenTelemetry traces, errors, and metri
Ask Human adds human-in-the-loop responses to AI, preventing errors on sensitive tasks like passwords and API endpoints.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.