The Lean Language Reference
The Lean Language Reference
Table of Contents
1.
Introduction
2.
Elaboration and Compilation
3.
Interacting with Lean
4.
The Type System
5.
Source Files and Modules
6.
Namespaces and Sections
7.
Definitions
8.
Axioms
9.
Attributes
10.
Terms
11.
Type Classes
12.
Coercions
13.
Tactic Proofs
14.
Functors, Monads and
do
-Notation
15.
IO
16.
The Simplifier
17.
Basic Propositions
18.
Basic Types
19.
Notations and Macros
20.
Run-Time Code
21.
Build Tools and Distribution
Release Notes
Index
10.
Terms
10.1.
Identifiers
10.2.
Function Types
10.3.
Functions
10.4.
Function Application
10.5.
Literals
10.6.
Structures and Constructors
10.7.
Conditionals
10.8.
Pattern Matching
10.9.
Holes
10.10.
Type Ascription
10.11.
Quotation and Antiquotation
10.12.
do
-Notation
10.13.
Proofs
10.6.
Structures and Constructors
Source Code
Report Issues
←
10.5. Literals
10.7. Conditionals
→
10.6. Structures and Constructors
Anonymous constructors
and
structure instance syntax
are described in their respective sections.
←
10.5. Literals
10.7. Conditionals
→