This page does not represent the most current semester of this course; it is present merely as an archive.
Propositions
Concept Java/C Python This class Bitwise Name Other
true true True \top or 11 -1 tautology T
false false False \bot or 00 0 contradiction F
not PP !p not p ¬P\lnot P or P\overline{P} ~p negation
PP and QQ p && q p and q PQP \land Q p & q conjunction PQP Q, PQP \cdot Q
PP or QQ p || q p or q PQP \lor Q p | q disjunction P+QP + Q
PP xor QQ p != q p != q PQP \oplus Q p ^ q parity PQP ⊻ Q,
PP implies QQ PQP \rightarrow Q implication PQP \supset Q, PQP \Rightarrow Q
PP iff QQ p == q p == q PQP \leftrightarrow Q bi-implication PQP \Leftrightarrow Q, PP xnor QQ
Proofs
Concept Symbol Meaning
equivalent \equiv ABA \equiv B means ABA \leftrightarrow B is a tautology
entails \vDash ABA \vDash B means ABA \rightarrow B is a tautology
provable \vdash ABA \vdash B means AA proves BB; it means both ABA \vDash B and I know BB is true because AA is true
B\vdash B (without AA) means I know BB is true
therefore \therefore A\therefore A means the lines above this A\vdash A
A\therefore A also connotes AA is the thing we wanted to show
proof done
q.e.d.
marks the end of a written (prose) proof
hypothesis something we expect is true
theorem something we’ve proven is true
corollary small theorem that builds off of the main theorem
lemma small theorem that helps set up the proof of the main theorem
Arithmetic
Concept Symbol Meaning
floor x\lfloor x \rfloor the largest integer not larger than xx
xx rounded down to an integer
ceiling x\lceil x \rceil the smallest integer not smaller than xx
xx rounded up to an integer
exponent xyx^y xx multiplied by itself yy times
sum xSf(x)\displaystyle \sum_{x \in S} f(x) the sum of all members of {f(x)    xS}\{ f(x) \;|\; x \in S\}
By definition, 0 if S={}S = \{\}
sum x=abf(x)\displaystyle \sum_{x=a}^{b} f(x) xSf(x)\displaystyle \sum_{x\in S} f(x) where S={x    (xZ)(axb)}S = \{ x \;|\; (x \in \mathbb Z) \land (a \le x \le b)\}
the sum of f(x)f(x) applied to integers between aa and bb inclusive
product xSf(x)\displaystyle \prod_{x \in S} f(x) the product of all members of {f(x)    xS}\{ f(x) \;|\; x \in S\}
By definition, 1 if S={}S = \{\}
product x=abf(x)\displaystyle \prod_{x=a}^{b} f(x) xSf(x)\displaystyle \prod_{x\in S} f(x) where S={x    (xZ)(axb)}S = \{ x \;|\; (x \in \mathbb Z) \land (a \le x \le b)\}
the product of f(x)f(x) applied to integers between aa and bb inclusive
factorial x!x! i=1xi\displaystyle \prod_{i=1}^{x} i
the product of all positive integers less than or equal to xx
the number of permutations of a length-xx sequence with distinct members
choose (nk)\displaystyle {n \choose k} n!(nk)!k!\displaystyle {n! \over (n-k)! k!}
the number of kk-member subsets of an nn-element set