Lurch was used successfully in my undergraduate bridge course for math majors, Math 299 at the University of Scranton, Spring 2024. These definitions and notes are very specific to my course, but are included here for instructors who want to use or modify them. Thus, these are not any sort of ‘official’ contexts or math content built into Lurch itself, but rather are just one example of specific content made by a specific instructor for a specific course.
These context are the ones used in the example Assignments from 2024 and so are provided here for reference. Many have been revised since then. The latest versions are available on the Getting Started page and in the appendix of the Intro to Proof notes.
Cumulative Topics – each link opens a blank Lurch document whose context consists of the rules for that topic, and those from the topics above it. The Theorem numbers refer to exercises in the draft of the course lecture notes.
and, or, not,
implies, iff, and
contradiction (view rules)forall $\left(\forall\right)$,
exists $\left(\exists\right)$,
equality $\left(=\right)$,
unique existence $\left(\exists!\right)$ (view rules)less than $\left(\lt\right)$,
divides $\left(\mid\right)$, prime,
even, odd (view rules)summation $\left(\sum\right)$,
Fibonacci numbers $\left(F_n\right)$,
factorial $\left(!\right)$,
multinomial coefficients $\left(m,n\right)$,
binomial coefficients $\binom{n}{k}$,
exponentiation $\left(z^n\right)$ (view rules)in $\left(\in\right)$,
subset $\left(\subseteq\right)$,
intersection $\left(\cap\right)$,
union $\left(\cup\right)$,
complement $\left('\right)$,
set difference $\left(\setminus\right)$,
powerset $\left(\mathscr{P}\right)$,
Cartesian product $\left(\times\right)$,
finite set $\left\{ \ldots \right\}$,
tuple $\langle\ldots\rangle$,
Indexed Union $\left(\bigcup\right)$,
Indexed Intersection $\left(\bigcap\right)$,
Set Builder notation $\left\{ z :\ldots \right\}$ (view rules)maps $\left(f\colon A \to B\right)$,
function application $\left(f(x)\right)$,
maps to $\left(\mapsto\right)$,
image $\left(f(U)\right)$,
identity map $\left(\text{id}_A\right)$
inverse image $\left(f^\text{inv}(U)\right)$,
composition $\left(\circ\right)$,
inverse function $\left(f^{-1}\right)$,
injective, surjective,
bijective (view rules)reflexive, symmetric,
transitive, irreflexive,
antisymmetric, total,
partial order, strict partial order,
total order, equivalence relation,
partition, equivalence class $[a]$ (view rules)Additional Rules. The following rules can be optionally added by the instructor to any context above in a particular document. Currently, only one of the three Arithmetic rules can be used in a single document.
'by
arithmetic' after an expression to try to justify it
using a CAS. The expression can only contain natural number
constants (e.g. $0$, $1$, $2$, etc) the operators $+$, $\cdot$,
and $\text{^}$, and the relations $=$, $\neq$, $\leq$, and $\lt$.
(view rules)'by
arithmetic' after an expression to try to justify it
using a CAS. The expression can only contain natural number
constants (e.g. $0$, $1$, $2$, etc) the operators $+$, $\cdot$,
$\text{^}$, and $-$ and the relations $=$, $\neq$, $\leq$, and
$\lt$. Exponents cannot be negative. (view rules)'by
arithmetic' after an expression to try to justify it
using a CAS. The expression can only contain natural number
constants (e.g. $0$, $1$, $2$, etc) the operators $+$, $\cdot$,
$\text{^}$, $-$, and $/$, and the relations $=$, $\neq$, $\leq$,
and $\lt$. Exponents must be integers and you cannot divide by
zero. (view rules)'by
algebra' after an equation to try to justify it using
a CAS. There are no restrictions on what the equation can contain,
so use at your own discretion. The identity is evaluated using
Algebrite. This
rule also validates inequalities that can be validated by the
previous rule (Arithmetic in the Rationals). (view rules) (examples).Useful Cumulative Contexts. These contexts combine some proper subsets of the cumulative Math 299 contexts listed above.
topological space, open,
closed, and continuous (in a toplogical
space). Includes the Functions library above. (view rules)linear, subspace,
closed under addition,
closed under multiplication, nonempty,
vectors, vector addition, and scalar multiplication (in
$\mathbb{R}^2$ and $\mathbb{R}^3$). Includes the Functions, Sets,
Equations, and Logic library above. (view rules) (examples).