lean-nested-learning

Formalize nested learning theory and LaSalle invariants in Lean 4 codebases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Formalizes and extends multi-level nested learning theory within Lean 4 codebases, enabling precise encoding of LaSalle invariance, hierarchical learning structures, and multi-scale Lyapunov arguments for repository-local systems.

Core Features & Use Cases

  • Supports formal specification of nested learning concepts (LaSalle conditions, hierarchical levels) in Lean 4.
  • Bridges theoretical NL paradigms to concrete Lean proofs and repository-local implementations within a Mathlib context.
  • Serves as a foundation for cross-module safety, governance, and verification workflows in large Lean projects.

Quick Start

Import the Nested Learning Formalization module into your Lean project and begin by encoding a simple two-level system to verify LaSalle-style invariants.

Frequently Asked Questions about lean-nested-learning

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

FAQPage Schema
How do I formalize LaSalle invariance conditions in Lean 4?

You can formalize LaSalle invariance conditions in Lean 4 by importing the nested learning formalization module to encode and verify LaSalle-style invariants within a Mathlib context.

Can I encode multi-scale Lyapunov arguments using Lean 4 and Mathlib?

Yes, you can encode multi-scale Lyapunov arguments using Lean 4 and Mathlib dynamics primitives to verify hierarchical learning structures and repository-local systems.

What is nested learning theory formalization for Lean codebases?

Nested learning theory formalization precisely encodes multi-level hierarchical learning paradigms and theoretical conditions into concrete Lean 4 proofs for large repository-local systems.

Does formalizing hierarchical learners in Lean require specific Mathlib dynamics primitives?

Yes, formalizing hierarchical learners requires Lean tooling support and Mathlib dynamics primitives to bridge theoretical nested learning concepts to concrete repository-local implementations.

How do I start encoding a two-level nested learning system in Lean 4?

To start encoding a two-level system in Lean 4, import the Nested Learning Formalization module into your project and begin verifying LaSalle-style invariants for the hierarchical levels.

What are the limitations of formalizing nested learning theory in Lean 4?

Limitations include the need for Lean tooling support and Mathlib dynamics primitives, requiring handoffs to lean-proof, lean-proof-review, and lean-zettelkasten for complex cross-module verification workflows.