Proof By Induction

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:50 PM on 4/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

Induction Principle

  • Prove P(n) for all natural numbers:

    • Base case: prove P(0).

    • Inductive case: prove P(n') ⇒ P(S n').

    • Creates proof chain: P(0) ⇒ P(1) ⇒ P(2) ⇒ … for all numbers.

2
New cards

induction Tactic Syntax

  • Induction n as [| n' IHn'] splits into:
    • Base case (n=0).
    • Inductive case (n=S n').
    • IHn' is inductive hypothesis (assumes property holds for n').
3
New cards

plusnO Induction Proof

  • Theorem: forall n, n = n + 0.
    • Base: 0 = 0 + 0 (reflexivity).
    • Inductive: assume n' = n' + 0, prove S n' = S n' + 0.
    • Reflexivity completes.
4
New cards

Inductive Hypothesis Power

  • Creates proof chain:
    • Base proves for 0.
    • Inductive case proves if true for k, then true for k+1.
    • Thus true for all natural numbers.
5
New cards

plus_assoc Proof

  • Theorem: n + (m + p) = (n + m) + p.
    • Induct on n.
    • Base: 0 + (m + p) = (0 + m) + p (reflexivity).
    • Inductive: assumes, proves S n' + (m + p).
    • Reflexivity.
6
New cards

minusnn Proof

  • Theorem: minus n n = 0.
    • Induct on n.
    • Base: minus 0 0 = 0 (simpl).
    • Inductive: assumes, proves minus (S n') (S n') = 0.
7
New cards

Helper Lemma plusnSm

  • Lemma: forall n m, S (n + m) = n + S m.
    • Essential for commutativity proof.
    • Allows moving successor from outside to inside addition.
8
New cards

plus_comm Proof

  • Theorem: n + m = m + n.
    • Induct on n.
    • Base: 0 + m = m + 0 (rewrite plusnO).
    • Inductive: assumes, proves S n' + m = m + S n'.
9
New cards

Helper Lemma Strategy

  • Complex proofs require helper lemmas:
    • Identify needed facts.
    • Prove as separate lemmas.
    • Use in main proof.
10
New cards

assert Tactic

  • Introduces intermediate subgoal during proof.
    • Syntax: assert (H: proposition). { prove proposition }
    • Useful for complex proofs.
11
New cards

plus_rearrange with assert

  • Theorem: (n + m) + (p + q) = (m + n) + (p + q).
    • Use assert for commutativity lemma.
12
New cards

plus_swap Proof

  • Theorem: n + (m + p) = m + (n + p).
    • Combine associativity and commutativity.
13
New cards

Choosing Induction Variable

  • Induct on variable driving recursion.
    • Pattern matches on first argument (n).
    • Look at function definitions.
14
New cards

Induction vs Case Analysis

  • Case analysis (destruct): finite cases, independent proofs.
    • Induction: recursive data types, properties for all natural numbers.
15
New cards

Induction Proof Structure

  • Theorem name: forall n, property.
    • Proof structure:
    • intros n.
    • induction n as [| n' IHn'].
    • Base case: simpl, reflexivity.
    • Inductive case: simpl, rewrite IHn', reflexivity.
16
New cards

Common Induction Patterns

  • Direct induction: apply IH directly.
    • Induction with lemmas: need helper lemmas.
    • Induction with rewriting: combine IH with other theorems.

Explore top notes

Explore top flashcards