lean-session-restorer

Reads memory and session logs to reconstruct the last Lean 4 proof state and diff previous set of outstanding goals.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/my04337/shapez2-in-lean --skill lean-session-restorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-session-restorer
Source: https://github.com/my04337/shapez2-in-lean/tree/main/.github/skills/lean-session-restorer
Command: npx skills add https://github.com/my04337/shapez2-in-lean --skill lean-session-restorer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Restoring a Lean 4 proof session can be tedious and error-prone. This skill automatically restores the previous session state, diffs the sorrys, and surfaces the next actionable tasks to continue work smoothly.

Core Features & Use Cases

  • Read memory and session logs to reconstruct the last proof state.
  • Diff the previous sorry set and generate a concise list of outstanding goals.
  • Propose concrete next steps and coordinate with lean-sorry-snapshot and lean-error-fixer agents for seamless continuation.

Quick Start

Restore the previous Lean session and receive a recommended next sorry to work on.

Frequently Asked Questions about lean-session-restorer

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

FAQPage Schema
How do I resume a Lean 4 proof session after closing the file?

To resume a Lean 4 proof session, you need an automated tool that reads prior memory and session logs to reconstruct the last state. This skill automatically restores your previous context by diffing the sorry set and surfacing actionable next steps.

What is the best way to track outstanding sorry goals in Lean 4?

Tracking outstanding sorry goals in Lean 4 is best handled by diffing the previous sorry set against the current file. This skill automates that diffing process to generate a concise list of outstanding goals and propose concrete next steps for continuation.

How do I find the next recommended sorry to work on in Lean 4?

Finding the next recommended sorry in Lean 4 involves analyzing session logs and comparing previous sorry states. This skill reads stored memories to present actionable next steps, coordinating with lean-sorry-snapshot and lean-error-fixer agents to recommend goals.

Can I automatically restore my previous Lean 4 proof state and plans?

Yes, you can automatically restore previous Lean 4 proof state and plans at session start. This skill applies continuity logic to read memories, reconstruct the last proof state, and surface agent activations for seamless continuation of prior work.

Does automating Lean 4 sorry tracking work with lean-error-fixer agents?

Automating Lean 4 sorry tracking works directly with lean-error-fixer and lean-sorry-snapshot agents. This skill coordinates with these agents after diffing the sorry set, providing them the reconstructed session state to seamlessly continue fixing errors.

Why does my Lean 4 session lose continuity with previous proof plans?

Lean 4 sessions lose continuity with previous proof plans when session state is not automatically restored at startup. This skill prevents that loss by reading memory and session logs to reconstruct the last proof state and surface outstanding goals.