lean-knowledge-formalization

Formalize knowledge representation and reasoning patterns in Lean 4.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-knowledge-formalization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-knowledge-formalization
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/lean-knowledge-formalization
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-knowledge-formalization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Lean-4 based formalization of knowledge representation and reasoning patterns to support ontology engineering, symbolic AI, and deontic/logical systems within Lean 4, enabling verifiable knowledge lifecycles.

Core Features & Use Cases

  • Structure knowledge objects as ontologies, taxonomies, and rules.
  • Encode reasoning pipelines and normative frameworks using Lean primitives and Mathlib.
  • Use cases include formalizing legal norms, defeasible reasoning, and provenance tracking.

Quick Start

Open the handbook at references/lean-knowledge-formalization-handbook.md and start a Lean 4 encoding session applying the core patterns.

Frequently Asked Questions about lean-knowledge-formalization

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

FAQPage Schema
How do I formalize knowledge representation and reasoning patterns in Lean 4?

You formalize knowledge representation in Lean 4 by structuring knowledge objects as ontologies, taxonomies, and rules. This approach encodes reasoning pipelines and normative frameworks using Lean primitives and Mathlib to support verifiable knowledge lifecycles.

What is Lean 4 used for in symbolic AI and ontology engineering?

In symbolic AI and ontology engineering, Lean 4 is used to structure knowledge objects and encode reasoning pipelines. It enables the formalization of argumentation frameworks, legal norms, and defeasible reasoning within verifiable logical systems.

Can I use Lean 4 to formalize legal norms and deontic logic?

Yes, you can formalize legal norms and deontic logic in Lean 4. The Skill provides encoding patterns to map normative frameworks and legal reasoning structures using Lean primitives, supporting verifiable legal knowledge representation.

Do I need Mathlib to encode ontologies and defeasible reasoning in Lean 4?

Yes, encoding ontologies and defeasible reasoning in Lean 4 requires Mathlib. The formalization process uses Lean primitives alongside Mathlib to structure knowledge objects and implement reasoning pipelines for verifiable knowledge lifecycles.

What's the best way to start a Lean 4 encoding session for knowledge formalization?

The best way to start a Lean 4 encoding session for knowledge formalization is to open the handbook at references/lean-knowledge-formalization-handbook.md. You apply the core patterns provided there to begin structuring ontologies and reasoning pipelines.