←
Prev
↑
Up
Next
→
The Lean Language Reference
1.
Introduction
2.
Elaboration and Compilation
3.
The Type System
4.
Source Files
5.
Terms
6.
Type Classes
7.
Functors, Monads and
do
-Notation
8.
IO
9.
Tactic Proofs
10.
The Simplifier
11.
Basic Types
12.
Standard Library
13.
Notations and Macros
14.
Output from Lean
15.
Elan
16.
Lake and Reservoir
Index
4.
Source Files
4.1.
Files
4.2.
Module Contents
4.3.
Axioms
4.4.
Recursive Definitions
4.5.
Attributes
4.6.
Dynamic Typing
4.7.
Coercions
Source Code
Report Issues
4. Source Files
4.1.
Files
4.1.1.
Modules
4.1.1.1.
Encoding and Representation
4.1.1.2.
Concrete Syntax
4.1.1.2.1.
Whitespace
4.1.1.2.2.
Comments
4.1.1.2.3.
Keywords and Identifiers
4.1.1.3.
Structure
4.1.1.3.1.
Module Headers
4.1.1.3.2.
Commands
4.1.1.4.
Contents
4.1.2.
Packages, Libraries, and Targets
4.2.
Module Contents
4.2.1.
Commands and Declarations
4.2.1.1.
Definition-Like Commands
4.2.1.2.
Modifiers
4.2.1.3.
Signatures
4.2.1.4.
Headers
4.2.2.
Namespaces
4.2.3.
Section Scopes
4.2.3.1.
Controlling Section Scopes
4.2.3.2.
Section Variables
4.2.3.3.
Scoped Attributes
4.3.
Axioms
4.4.
Recursive Definitions
4.4.1.
Structural Recursion
4.4.1.1.
Matching Pairs vs Simultaneous Matching
4.4.1.2.
Mutual Structural Recursion
4.4.2.
Well-Founded Recursion
4.4.3.
Controlling Reduction
4.4.4.
Partial and Unsafe Recursive Definitions
4.5.
Attributes
4.6.
Dynamic Typing
4.7.
Coercions