Unicode Input

In Lean files, type \ followed by an abbreviation and press Space or Tab to insert a Unicode symbol. In VS Code, you can also hover over any symbol to see its abbreviation, or use Ctrl+Shift+P → “Lean 4: Show All Abbreviations” to browse the full list.

The tables below list every symbol used in this course. The canonical source for all Lean 4 abbreviations is abbreviations.json in the vscode-lean4 repository.

P02_Logic

Symbol Input Alternatives Name
→ \to \r, \-> implication / function type
← \l \<-, \gets reverse arrow
↔ \iff \lr, \<-> biconditional
∧ \and \an conjunction
∨ \or \v disjunction
¬ \not \neg, \! negation
∀ \all \forall universal quantifier
∃ \ex \exists existential quantifier
⟨ \< \langle anonymous constructor (open)
⟩ \> \rangle anonymous constructor (close)
▸ \t \rw substitution / rewrite

P03_SetTheory

Symbol Input Alternatives Name
∈ \in \mem membership
∉ \notin \nin non-membership
⊆ \sub \ss, \subseteq subset
⊂ \ssub \ssubset strict subset
∩ \cap \i, \inter intersection
∪ \cup \un, \union union
⋂₀ \I0 \sInter family intersection
⋃₀ \U0 \sUnion family union
∅ \empty \emptyset empty set
ᶜ \^c \compl complement

P04_TypeTheory

Symbol Input Alternatives Name
λ \lam \la, \lambda, \fun lambda
× \x \times product type
↦ \mapsto \ma mapsto
∘ \circ \o, \comp function composition

P05_NaturalNumbers+

Symbol Input Alternatives Name
ℕ \N \nat natural numbers
ℤ \Z \int integers
≠ \ne \neq not equal
≤ \le \leq, \<= less or equal
≥ \ge \geq, \>= greater or equal
∣ \mid \|, \dvd divides
⁻¹ \inv \-1, \- inverse

General

Symbol Input Alternatives Name
α \a \alpha alpha
β \b \beta beta
γ \g \gamma gamma
· \. \cdot middle dot
₁ \_1 \1 subscript 1
₂ \_2 \2 subscript 2
₃ \_3 \3 subscript 3

This site uses Just the Docs, a documentation theme for Jekyll.