SlideShare a Scribd company logo
Introduction to set theory and to methodology and philosophy of
mathematics and computer programming
Inductive definitions and structural induction
An overview
by Jan Plaza
c 2017 Jan Plaza
Use under the Creative Commons Attribution 4.0 International License
Version of February 14, 2017
successor(n) = n + 1
Natural numbers can be constructed from 0 by repeated applications of successor.
To prove that every natural number has a property P, one can use mathematical
induction.
Sets of other mathematical objects can be defined by repeated applications of some
constructs to certain base objects – these are inductive definitions .
To prove that every object in such a set has a property P, one can use
structural induction .
Definition
Let Prop be a set of propositional symbols.
The set of propositional formulas over Prop ,
denoted Form(Prop) , is defined as follows
in an inductive definition.
1. , ⊥ ∈ Form(Prop).
2. If p ∈ Prop, then p ∈ Form(Prop).
3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop).
4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop).
5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding
rules.
Definition
Let Prop be a set of propositional symbols.
The set of propositional formulas over Prop ,
denoted Form(Prop) , is defined as follows
in an inductive definition.
1. , ⊥ ∈ Form(Prop). Base clause
2. If p ∈ Prop, then p ∈ Form(Prop). Base clause
3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop). Inductive clause
4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop). Inductive
clause
5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding
rules. Restriction clause
Definition
Let Prop be a set of propositional symbols.
The set of propositional formulas over Prop ,
denoted Form(Prop) , is defined as follows
1. , ⊥ ∈ Form(Prop).
2. If p ∈ Prop, then p ∈ Form(Prop).
3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop).
4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop).
5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding
rules.
Notice the parentheses in (A ∧ B), (A ∨ B), (A → B).
Proposition
Let Prop be a set of propositional symbols.
Every formula X from Form(Prop) contains equal number of left and right parentheses.
Proof by structural induction
Base case: X is .
has equal number of left and right parentheses, namely 0.
Base case: X is ⊥.
⊥ has equal number of left and right parentheses, namely 0.
Base case: X is a propositional symbol p from Prop.
p has equal number of left and right parentheses, namely 0.
Inductive case: X is ¬A, for some A ∈ Form(Prop).
By inductive hypothesis, A has equal number of left and right
parentheses. X, which is ¬A, has the same numbers of left and right
parentheses as A. So X has equal number of left and right parentheses.
Inductive case: X is (A ∧ B), for some A, B ∈ Form(Prop).
By inductive hypothesis, A has equal number of left and right
parentheses, say m, and B has equal number of left and right
parentheses, say n. Then, X, which is (A ∧ B), has the m + n + 1 left
parentheses, and the same number of right parentheses.
Inductive case: X is (A ∨ B), for some A, B ∈ Form(Prop).
By inductive hypothesis, A has equal number of left and right
parentheses, say m, and B has equal number of left and right
parentheses, say n. Then, X, which is (A ∨ B), has the m + n + 1 left
parentheses, and the same number of right parentheses.
Inductive case: X is (A → B), for some A, B ∈ Form(Prop).
By inductive hypothesis, A has equal number of left and right
parentheses, say m, and B has equal number of left and right
parentheses, say n. Then, X, which is (A → B), has the m + n + 1 left
parentheses, and the same number of right parentheses.
Exercise
Prove by structural induction that for every A ∈ Form(Prop),
if A does not involve , ⊥
then the number of left parentheses in A is
one less than the number of occurrences of propositional symbols in A.
Definition
Let A be a propositional formula.
The set of subformulas of A , denoted subformulas(A) , is defined as follows
in an inductive definition.
1. A ∈ subformulas(A).
2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A).
5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A).
6. Nothing belongs to subformulas(A) unless it can be constructed using the
preceding rules.
Definition
Let A be a propositional formula.
The set of subformulas of A , denoted subformulas(A) , is defined as follows
in an inductive definition.
1. A ∈ subformulas(A). Base clause
2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause
3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause
4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause
5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A). Inductive clause
6. Nothing belongs to subformulas(A) unless it can be constructed using the
preceding rules. Restriction clause
Definition
Let A be a propositional formula.
The set of subformulas of A , denoted subformulas(A) , is defined as follows
in an inductive definition.
1. A ∈ subformulas(A).
2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A).
5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A).
6. Nothing belongs to subformulas(A) unless it can be constructed using the
preceding rules.
Exercise: Let A be the formula (p → (q ∨ ¬p)). Find the set subformulas(A).
Definition
Let A be a propositional formula.
The set of subformulas of A , denoted subformulas(A) , is defined as follows
in an inductive definition.
1. A ∈ subformulas(A).
2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A).
4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A).
5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A).
6. Nothing belongs to subformulas(A) unless it can be constructed using the
preceding rules.
Exercise: Let A be the formula (p → (q ∨ ¬p)). Find the set subformulas(A).
Answer: {(p → (q ∨ ¬p)), p, (q ∨ ¬p), q, ¬p}

More Related Content

PDF
Congruence Lattices of A Finite Uniform Lattices
PDF
Polytopes inside polytopes
PDF
8functions
PDF
Epanaliptiko pros spiros_giannakaros_2021
PDF
differentiate free
PDF
Lesson 19: The Mean Value Theorem (slides)
PDF
Rolle's theorem, mean value theorem
Congruence Lattices of A Finite Uniform Lattices
Polytopes inside polytopes
8functions
Epanaliptiko pros spiros_giannakaros_2021
differentiate free
Lesson 19: The Mean Value Theorem (slides)
Rolle's theorem, mean value theorem

What's hot (17)

PDF
Prosomoiwsh 1 xenos
PPT
Formulae
PDF
ESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theory
PPTX
Function of DM
PDF
Local maxima
PDF
Best polynomial approximation
PDF
D223034
PPTX
Micro teaching junior high school
PPT
Chapter 2 Review
PDF
PDF
Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...
PPT
Functions (1)
PPTX
Algebraic Fraction and Formulas
PDF
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
PDF
PDF
PaperNo10-KaramiHabibiSafariZarrabi-IJCMS
Prosomoiwsh 1 xenos
Formulae
ESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theory
Function of DM
Local maxima
Best polynomial approximation
D223034
Micro teaching junior high school
Chapter 2 Review
Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...
Functions (1)
Algebraic Fraction and Formulas
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
PaperNo10-KaramiHabibiSafariZarrabi-IJCMS
Ad

Viewers also liked (20)

PDF
1.12 Von Neumann natural numbers
PPT
Prop Transfer Module
PPT
Andrew Props
PPTX
Props/Costumes/Settings
PPT
Props
PPTX
Filming diary
PPTX
Props, costumes and sets
PPT
Making Props
PPTX
Band props
PPTX
Prop and costumes lists
PPTX
Props
DOC
Prop list
PPTX
Costumes, makeup and props
DOCX
Props list
PPTX
6th performing arts set and props designers
PPTX
Behind the scenes set, make-up and props
PPTX
Assignment 25 costume & props
DOCX
Props List
PPTX
The Seagull
PPTX
Props & Arts
1.12 Von Neumann natural numbers
Prop Transfer Module
Andrew Props
Props/Costumes/Settings
Props
Filming diary
Props, costumes and sets
Making Props
Band props
Prop and costumes lists
Props
Prop list
Costumes, makeup and props
Props list
6th performing arts set and props designers
Behind the scenes set, make-up and props
Assignment 25 costume & props
Props List
The Seagull
Props & Arts
Ad

Similar to 1.11 Inductive definitions and structural induction (20)

PDF
Mathematical logic
PDF
week01, the language of propositional logic.pdf
PDF
I am kind of confused about quantifiers. I am not sure how to transl.pdf
DOCX
Propositional logic is a good vehicle to introduce basic properties of logic
PDF
Proposition Logic in Discrete Structure
PPT
Mathematical foundations of computer science
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PDF
week02, the language of propositional logic.pdf
PDF
A Machine-Assisted Proof of Gödel's Incompleteness Theorems
PPT
cs344-lect4-logic-14jan08.ppt
PPT
C2.0 propositional logic
PDF
null-12.pdf
PDF
16 1 predicate resolution
PPSX
lecture03.ppsxlecture03.ppsxlecture03.ppsxlecture03.ppsx
PDF
16 2 predicate resolution
PDF
PDF
Theorem proving 2018 2019
PDF
Logic and proof
Mathematical logic
week01, the language of propositional logic.pdf
I am kind of confused about quantifiers. I am not sure how to transl.pdf
Propositional logic is a good vehicle to introduce basic properties of logic
Proposition Logic in Discrete Structure
Mathematical foundations of computer science
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
week02, the language of propositional logic.pdf
A Machine-Assisted Proof of Gödel's Incompleteness Theorems
cs344-lect4-logic-14jan08.ppt
C2.0 propositional logic
null-12.pdf
16 1 predicate resolution
lecture03.ppsxlecture03.ppsxlecture03.ppsxlecture03.ppsx
16 2 predicate resolution
Theorem proving 2018 2019
Logic and proof

More from Jan Plaza (20)

PDF
6.3 Equivalences versus partitions
PDF
6.1 Partitions
PDF
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
PDF
6.2 Reflexivity, symmetry and transitivity (handout)
PDF
5.8 Permutations (handout)
PDF
5.8 Permutations (dynamic slides)
PDF
5.7 Function powers
PDF
5.6 Function inverse. A handout.
PDF
5.6 Function inverse. Dynamic slides.
PDF
5.5 Injective and surjective functions. A handout.
PDF
5.5 Injective and surjective functions. Dynamic slides.
PDF
5.3 Basic functions. A handout.
PDF
5.3 Basic functions. Dynamic slides.
PDF
5.1 Defining and visualizing functions. A handout.
PDF
5.1 Defining and visualizing functions. Dynamic slides.
PDF
1.8 Separation schema
PDF
1.4 Abstract objects and expressions
PDF
1.2 Axiom of pair
PDF
1.11 Mathematical induction
PDF
1.7 The sets of numbers
6.3 Equivalences versus partitions
6.1 Partitions
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (handout)
5.8 Permutations (handout)
5.8 Permutations (dynamic slides)
5.7 Function powers
5.6 Function inverse. A handout.
5.6 Function inverse. Dynamic slides.
5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. Dynamic slides.
5.3 Basic functions. A handout.
5.3 Basic functions. Dynamic slides.
5.1 Defining and visualizing functions. A handout.
5.1 Defining and visualizing functions. Dynamic slides.
1.8 Separation schema
1.4 Abstract objects and expressions
1.2 Axiom of pair
1.11 Mathematical induction
1.7 The sets of numbers

Recently uploaded (20)

PDF
Sports Quiz easy sports quiz sports quiz
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
master seminar digital applications in india
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Sports Quiz easy sports quiz sports quiz
Supply Chain Operations Speaking Notes -ICLT Program
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
VCE English Exam - Section C Student Revision Booklet
Microbial disease of the cardiovascular and lymphatic systems
O5-L3 Freight Transport Ops (International) V1.pdf
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
master seminar digital applications in india
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPH.pptx obstetrics and gynecology in nursing
102 student loan defaulters named and shamed – Is someone you know on the list?
human mycosis Human fungal infections are called human mycosis..pptx
GDM (1) (1).pptx small presentation for students
Anesthesia in Laparoscopic Surgery in India
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

1.11 Inductive definitions and structural induction

  • 1. Introduction to set theory and to methodology and philosophy of mathematics and computer programming Inductive definitions and structural induction An overview by Jan Plaza c 2017 Jan Plaza Use under the Creative Commons Attribution 4.0 International License Version of February 14, 2017
  • 2. successor(n) = n + 1 Natural numbers can be constructed from 0 by repeated applications of successor. To prove that every natural number has a property P, one can use mathematical induction. Sets of other mathematical objects can be defined by repeated applications of some constructs to certain base objects – these are inductive definitions . To prove that every object in such a set has a property P, one can use structural induction .
  • 3. Definition Let Prop be a set of propositional symbols. The set of propositional formulas over Prop , denoted Form(Prop) , is defined as follows in an inductive definition. 1. , ⊥ ∈ Form(Prop). 2. If p ∈ Prop, then p ∈ Form(Prop). 3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop). 4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop). 5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding rules.
  • 4. Definition Let Prop be a set of propositional symbols. The set of propositional formulas over Prop , denoted Form(Prop) , is defined as follows in an inductive definition. 1. , ⊥ ∈ Form(Prop). Base clause 2. If p ∈ Prop, then p ∈ Form(Prop). Base clause 3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop). Inductive clause 4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop). Inductive clause 5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding rules. Restriction clause
  • 5. Definition Let Prop be a set of propositional symbols. The set of propositional formulas over Prop , denoted Form(Prop) , is defined as follows 1. , ⊥ ∈ Form(Prop). 2. If p ∈ Prop, then p ∈ Form(Prop). 3. If A ∈ Form(Prop), then ¬A ∈ Form(Prop). 4. If A, B ∈ Form(Prop), then (A ∧ B), (A ∨ B), (A → B) ∈ Form(Prop). 5. Nothing belongs to Form(Prop) unless it can be constructed using the preceding rules. Notice the parentheses in (A ∧ B), (A ∨ B), (A → B).
  • 6. Proposition Let Prop be a set of propositional symbols. Every formula X from Form(Prop) contains equal number of left and right parentheses. Proof by structural induction Base case: X is . has equal number of left and right parentheses, namely 0. Base case: X is ⊥. ⊥ has equal number of left and right parentheses, namely 0. Base case: X is a propositional symbol p from Prop. p has equal number of left and right parentheses, namely 0. Inductive case: X is ¬A, for some A ∈ Form(Prop). By inductive hypothesis, A has equal number of left and right parentheses. X, which is ¬A, has the same numbers of left and right parentheses as A. So X has equal number of left and right parentheses.
  • 7. Inductive case: X is (A ∧ B), for some A, B ∈ Form(Prop). By inductive hypothesis, A has equal number of left and right parentheses, say m, and B has equal number of left and right parentheses, say n. Then, X, which is (A ∧ B), has the m + n + 1 left parentheses, and the same number of right parentheses. Inductive case: X is (A ∨ B), for some A, B ∈ Form(Prop). By inductive hypothesis, A has equal number of left and right parentheses, say m, and B has equal number of left and right parentheses, say n. Then, X, which is (A ∨ B), has the m + n + 1 left parentheses, and the same number of right parentheses. Inductive case: X is (A → B), for some A, B ∈ Form(Prop). By inductive hypothesis, A has equal number of left and right parentheses, say m, and B has equal number of left and right parentheses, say n. Then, X, which is (A → B), has the m + n + 1 left parentheses, and the same number of right parentheses.
  • 8. Exercise Prove by structural induction that for every A ∈ Form(Prop), if A does not involve , ⊥ then the number of left parentheses in A is one less than the number of occurrences of propositional symbols in A.
  • 9. Definition Let A be a propositional formula. The set of subformulas of A , denoted subformulas(A) , is defined as follows in an inductive definition. 1. A ∈ subformulas(A). 2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A). 5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A). 6. Nothing belongs to subformulas(A) unless it can be constructed using the preceding rules.
  • 10. Definition Let A be a propositional formula. The set of subformulas of A , denoted subformulas(A) , is defined as follows in an inductive definition. 1. A ∈ subformulas(A). Base clause 2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause 3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause 4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A). Inductive clause 5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A). Inductive clause 6. Nothing belongs to subformulas(A) unless it can be constructed using the preceding rules. Restriction clause
  • 11. Definition Let A be a propositional formula. The set of subformulas of A , denoted subformulas(A) , is defined as follows in an inductive definition. 1. A ∈ subformulas(A). 2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A). 5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A). 6. Nothing belongs to subformulas(A) unless it can be constructed using the preceding rules. Exercise: Let A be the formula (p → (q ∨ ¬p)). Find the set subformulas(A).
  • 12. Definition Let A be a propositional formula. The set of subformulas of A , denoted subformulas(A) , is defined as follows in an inductive definition. 1. A ∈ subformulas(A). 2. If (B ∧ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 3. If (B ∨ C) ∈ subformulas(A), then B, C ∈ subformulas(A). 4. If (B → C) ∈ subformulas(A), then B, C ∈ subformulas(A). 5. If ¬B ∈ subformulas(A), then B ∈ subformulas(A). 6. Nothing belongs to subformulas(A) unless it can be constructed using the preceding rules. Exercise: Let A be the formula (p → (q ∨ ¬p)). Find the set subformulas(A). Answer: {(p → (q ∨ ¬p)), p, (q ∨ ¬p), q, ¬p}