Theorem
Words in ODD-ODD have odd length.
Proof: Let w ∈ ODD-ODD with nₐ 'a's and nᵦ 'b's.
- By definition, nₐ is odd and nᵦ is odd
- Length of w = nₐ + nᵦ
- Sum of two odd numbers is even
- Therefore, all words in ODD-ODD have even length ✓
About 727 wordsAbout 2 min
2025-08-02
Discovering proofs is an art as well as a science. It requires:
Set Equalitytheorem
To prove set equality, A = B (where A and B are sets):
Numerical Equalitytheorem
To prove numerical equality, A = B:
Direct Proof
Strategy: Start with assumptions and use logical deductions to reach the conclusion.
Example: Prove that DOUBLEWORD ⊆ EVEN-EVEN
Proof by Construction
Strategy: When proving existence, construct an explicit example.
Use Case: Proving that a language contains certain words or that a property holds.
Proof by Cases
Strategy: Identify a finite number of cases that cover all possibilities.
Example: Proving properties about languages based on word length or symbol counts.
Proof by Contradiction
Strategy: Assume the negation of what you want to prove and derive a contradiction.
Example: Proving that √2 is irrational (classic example covered in lectures).
Mathematical Induction
Strategy: Prove base case, then show if true for k, then true for k+1.
Structure:
Base Case: Prove S(1) is true
Inductive Hypothesis: Assume S(k) is true
Inductive Step: Show S(k) → S(k+1)
Application: Prove that 1² + 2² + ... + n² = n(n+1)(2n+1)/6
Language Equality: L₁ = L₂
Language Subset: L₁ ⊆ L₂
Language Operations: Properties of union, intersection, concatenation
Theorem
Words in ODD-ODD have odd length.
Proof: Let w ∈ ODD-ODD with nₐ 'a's and nᵦ 'b's.
Universal (∀)logic
Must hold for ALL elements in domain
Strategy: Take arbitrary element from domain
Existential (∃)logic
Must hold for AT LEAST ONE element
Strategy: Construct specific example
Universal Statement Proof
Theorem: ∀w ∈ Σ*, if w ∈ EVEN-EVEN then |w| is even
Proof: Let w be an arbitrary word in EVEN-EVEN
Automata Equivalence
Show two machines accept same language
Language Regularity
Prove a language is/isn't regular
Grammar Properties
Show properties of context-free grammars
Pumping Lemma
Prove languages are not regular/context-free
Set Theory: Prove that (A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C)
Language Properties: Prove that if w ∈ PALINDROMES, then wᴿ ∈ PALINDROMES
Induction: Prove by induction that the sum of first n odd numbers is n²
Contradiction: Prove that there is no largest prime number
Quantifiers: Prove ∃w ∈ Σ* such that w ∈ EVEN-EVEN and |w| > 0
Language Operations: Prove that L₁ ∩ L₂ ⊆ L₁ for any languages L₁, L₂
Direct Proof: Prove that if n is even, then n³ is even
2b7ff
-web-deploy(Auto): Update base URL for web-pages branchon Copyright Ownership:WARREN Y.F. LONG
License under:Attribution-NonCommercial-NoDerivatives 4.0 International (CC-BY-NC-ND-4.0)