abstract
In computer science—particularly logic, formal methods, programming languages and set‐theory—many symbols appear that can confuse readers: turnstiles, arrows, maps, leads, etc. This article gathers a comparative table of such symbols, gives their common pronunciation (in English and Chinese), explains their meaning in various literature contexts, and provides illustrative examples. The goal is to demystify these symbols and help the reader read and write formal texts more confidently.
Comparative Table of Symbols
Formal notation in logic, set theory and programming language theory often uses special symbols that carry different subtle meanings. For example, the symbols
| Symbol | Pronunciation (En / 中文) | Context / Usage | Illustrative Example |
|---|---|---|---|
$\vdash$ | “turnstile”, “yields” / “得出”, “推出” | Logic (proof theory, syntactic consequence — provability) | $\Gamma \vdash \varphi$ means “ |
$\models$ | “models”, “entails” / “语义蕴涵”, “满足” | Logic (model theory, semantic consequence — truth in all models) | $\Gamma \models \varphi$ means “in every model where all formulas in $\mathcal{M} \models \varphi$ means “model |
$\to$ | “arrow”, “maps to” / “映射到”, “到” | Set theory / PL type theory (total function) | $f : A \to B$ means “ |
$\mapsto$ | “maps to”, “映射为” | Element-wise function mapping notation | $x \mapsto x^2$ describes how each |
$\leadsto$ | “leads to”, “转化到”, “执行转移” | Operational semantics / transition systems | $s \leadsto s'$ means “state |
$\Rightarrow$ | “implies”, “蕴含” | Logic (meta-level implication), type systems (big-step semantics) | $\Gamma \Rightarrow \varphi$ means “$\langle c, s \rangle \Rightarrow s'$. |
$\circlearrowright$ / $\circlearrowleft$ | “loop arrow”, “回路箭头”, “自环” | CFG, automata, state transition diagrams, control flow loops | A loop edge: $q \circlearrowright$ indicates state $q$ transitions back to itself (e.g., a loop in a CFG). |
$\rightharpoonup$ (\rightharpoonup) | “partial mapping”, “偏函数” | Set theory / semantics (function not defined on every input) | $f : A \rightharpoonup B$ means “ |
$\hookrightarrow$ | “hook‐right arrow”, “钩向右箭头” / “右挂箭头” | Category theory / Algebra / Set theory (injective embedding or inclusion) | $f : A \hookrightarrow B$ means “ |
$\hookleftarrow$ | “hook‐left arrow”, “钩向左箭头” / “左挂箭头” | Algebra / Module theory (dual embedding or restriction) | $g : B \hookleftarrow A$ sometimes used to denote “ |
Detailed Notes and Remarks
Logic: vs
The single turnstile symbol
Set Theory and PL/FM: vs
In set theory and programming‐language theory, the arrow
The arrow with tail
means “
Operational / Semantic Arrows:
In programming‐language semantics, a symbol like
For instance, in an operational semantics of an imperative language we might write:
meaning “starting in state