Lean 4 (Meta)programming Cookbook
Lean 4 (Meta)programming Cookbook
Table of Contents
What is Metaprogramming?
Working with the Infoview
Syntax and Macros
Working with Expressions
Elaboration: Extending Syntax
Tactics
Maintaining State
I/O and Processes
File System
Data Structures
Index
How to build a Recipe
Cookbook Contributors
Tactics
Hello World Tactic
Tactics as shortcuts
Viewing and Closing Goals
Modifying Goals
Checking Tactics
Replacing with What Works
←
Adding syntax for commands
Hello World Tactic
→
Tactics
🔗
Recipes:
Hello World Tactic
Tactics as shortcuts
Viewing and Closing Goals
Modifying Goals
Checking Tactics
Replacing with What Works
←
Adding syntax for commands
Hello World Tactic
→