purity-check

Verify Lean 4 proof environments for forbidden axioms and external imports.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/jmg2027/Dynamic-Resolution-Lattice-Theory- --skill purity-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: purity-check
Source: https://github.com/jmg2027/Dynamic-Resolution-Lattice-Theory-/tree/main/.claude/skills/purity-check
Command: npx skills add https://github.com/jmg2027/Dynamic-Resolution-Lattice-Theory- --skill purity-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill verifies that the formal proof environment adheres strictly to Lean 4 core with no external axioms or imports, maintaining foundational purity.

Core Features & Use Cases

  • Axiom verification: Checks for forbidden external axioms, Mathlib imports, classical logic, and native decision procedures.
  • Falsifiability validation: Ensures the environment only uses a minimal set of axioms, enhancing proof reliability.
  • Use Case: Before formal proof development, use this Skill to confirm zero external dependencies and purity compliance, especially in sensitive or foundational projects.

Quick Start

Run the purity check to validate that your Lean environment includes only the allowed axioms and imports as specified in the proof code.

Frequently Asked Questions about purity-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Lean 4 proof environment for forbidden axioms and external imports?

To check your Lean 4 proof environment for forbidden axioms, run a purity validation to detect external Mathlib imports, classical logic usage, and native decision procedures, ensuring strict compliance with core standards.

What is axiom verification in formal proofs and why is it needed?

Axiom verification in formal proofs is the process of detecting unauthorized external axioms to maintain foundational purity. It is needed to ensure proof integrity and reliability by confirming the environment uses only a minimal, allowed set of axioms.

Can I use classical logic and Mathlib imports in Lean 4 for foundational proof projects?

You cannot use classical logic and Mathlib imports if your project requires foundational purity. This verification detects and flags such external dependencies to ensure your formal proofs rely strictly on Lean 4 core standards.

What's the best way to ensure proof integrity before starting formal proof development in Lean 4?

The best way to ensure proof integrity before formal proof development in Lean 4 is to execute a purity check. This validates that your environment has zero external dependencies and adheres strictly to core axioms.

Does Lean 4 core support detecting native decision procedures and external axioms automatically?

Detecting native decision procedures and external axioms automatically requires a dedicated verification check. This process scans your formal proof environment to identify forbidden elements and validate minimal axiom usage for foundational compliance.

Why does my formal proof fail purity compliance checks in Lean 4?

Your formal proof fails purity compliance checks in Lean 4 if the environment includes forbidden external axioms, Mathlib imports, classical logic, or native decision procedures, violating the strict standards required for foundational integrity.