lean4 math symbols

Work in Progress

Summary

Unicode characters

Unicode Special CharacterASCIIMeaning
a ≤ b (U+2264, “Not Sign”)a <= b, LE.le a bLess-Than or Equal To
a ≥ b (U+2265, “Not Sign”)a >= b, GE.ge a bGreater-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 PNot
P ∧ Q (U+2227, “Logical And”)P /\ Q, And P QAnd
P ∨ Q (U+2228, “Logical Or”)P \/ Q, Or P QOr
→ (U+2192, “Rightwards Arrow”)->Implies
← (U+2192, “Leftwards Arrow”)<-TODO
P ↔ Q (U+2194, “Left Right Arrow”)P <-> Q, Iff P QIf and only if
A × B (U+00D7, “Multiplication Sign”)Prod A BCartesian product of two types.
∀ (U+2200, “For All”)forallFor all
∃ (U+2203, “There Exists”)existsExists
↦ (U+21A6, “Rightwards Arrow from Bar”)=>Maps to
λ (U+03BB, “Greek Small Letter Lamda”)funFunction
· (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”)NatThe natural numbers, Mathlib/Data/Nat/Notation.lean
ℤ (U+2124, “Double-Struck Capital Z”)IntThe integers numbers,Mathlib/Data/Int/Notation.lean
∑ (U+2211, “N-Ary Summation”)Finset.sumSum, Mathlib/Data/Nat/Notation.lean. TODO find exact definition point
Π (U+03A0, “Greek Capital Letter Pi”)Finset.prodProduct, Mathlib/Data/Nat/Notation.lean. TODO find exact definition point