lean4 math symbols
Summary
Unicode characters
| Unicode Special Character | ASCII | Meaning | |
|---|---|---|---|
a ≤ b (U+2264, “Not Sign”) | a <= b, LE.le a b | Less-Than or Equal To | |
a ≥ b (U+2265, “Not Sign”) | a >= b, GE.ge a b | Greater-Than or Equal To | |
a ≠ b (U+2260, “Not Equal To”) | Ne a b, Not (a = b) | Not equal. This page metaphorically mentions ~= but it doesn’t actually work on Lean 4.23.0. | |
¬P (U+00AC, “Not Sign”) | Not P | Not | |
P ∧ Q (U+2227, “Logical And”) | P /\ Q, And P Q | And | |
P ∨ Q (U+2228, “Logical Or”) | P \/ Q, Or P Q | Or | |
→ (U+2192, “Rightwards Arrow”) | -> | Implies | |
← (U+2192, “Leftwards Arrow”) | <- | TODO | |
P ↔ Q (U+2194, “Left Right Arrow”) | P <-> Q, Iff P Q | If and only if | |
A × B (U+00D7, “Multiplication Sign”) | Prod A B | Cartesian product of two types. | |
∀ (U+2200, “For All”) | forall | For all | |
∃ (U+2203, “There Exists”) | exists | Exists | |
↦ (U+21A6, “Rightwards Arrow from Bar”) | => | Maps to | |
λ (U+03BB, “Greek Small Letter Lamda”) | fun | Function | |
· (U+00B7, “Middle Dot”, AKA “Interpunct”, “Bullet”) | . (dot) | A placeholder for an implicit lambda abstraction’s variable: https://lean-lang.org/theorem_proving_in_lean4/Tactics/#entering-tactic-mode | |
⦃ (U+2983, “Left White Curly Bracket”), ⦄ | {{, }} | Strict implicit binder: In Lean, what do double curly brackets mean?, What is the unicode braces {| |} (⦃ … ⦄) in lean 4?. TODO definition point. Source comment. | |
ℕ (U+2115, “Double-Struck Capital N”) | Nat | The natural numbers, Mathlib/Data/Nat/Notation.lean | |
ℤ (U+2124, “Double-Struck Capital Z”) | Int | The integers numbers,Mathlib/Data/Int/Notation.lean | |
∑ (U+2211, “N-Ary Summation”) | Finset.sum | Sum, Mathlib/Data/Nat/Notation.lean. TODO find exact definition point | |
Π (U+03A0, “Greek Capital Letter Pi”) | Finset.prod | Product, Mathlib/Data/Nat/Notation.lean. TODO find exact definition point |