Domain


The domain of a variable is the set of all possible values it can attain. Often, domains will be implied. For example, when talking about whether a variable is even and odd, it's only natural to assume that the domain of that variable is the set of integers. However, sometimes it's not so obvious what the domain of a variable is. That's why it's best to define exactly what set of values is the domain for a particular variable, because the meaning of a statement will change under different domains. Consider the following statement:

There exists an \(x\) such that \(x^2=2.\)

But what sort of number is \(x\)? Is it a real number? Or an integer? The statement's truth value depends on the domain you select:

There exists a real number \(x\) such that \(x^2=2.\)

If \(x=\sqrt 2\), then the above statement is true. However, what if the domain of \(x\) was the set of integers?

There exists an integer \(x\) such that \(x^2=2.\)

No integer exists that is the square root of 2. Therefore, the above statement is false.

So, domains matter. Make sure to specify them for your variables!

Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort