SlideShare a Scribd company logo
1 of 12
Download to read offline
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

What's hot

What's hot (17)

Prosomoiwsh 1 xenos
Prosomoiwsh 1 xenosProsomoiwsh 1 xenos
Prosomoiwsh 1 xenos
 
Formulae
FormulaeFormulae
Formulae
 
ESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theory
ESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theoryESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theory
ESSLLI2016 DTS Lecture Day 1: From natural deduction to dependent type theory
 
Function of DM
Function of DM Function of DM
Function of DM
 
Local maxima
Local maximaLocal maxima
Local maxima
 
Best polynomial approximation
Best polynomial approximationBest polynomial approximation
Best polynomial approximation
 
D223034
D223034D223034
D223034
 
Micro teaching junior high school
Micro teaching junior high schoolMicro teaching junior high school
Micro teaching junior high school
 
Chapter 2 Review
Chapter 2 ReviewChapter 2 Review
Chapter 2 Review
 
Mean Value Theorems
Mean Value TheoremsMean Value Theorems
Mean Value Theorems
 
Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...
Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...
Convex Analysis and Duality (based on "Functional Analysis and Optimization" ...
 
Functions (1)
Functions (1)Functions (1)
Functions (1)
 
Algebraic Fraction and Formulas
Algebraic Fraction and FormulasAlgebraic Fraction and Formulas
Algebraic Fraction and Formulas
 
MEAN VALUE THEOREM
MEAN VALUE THEOREMMEAN VALUE THEOREM
MEAN VALUE THEOREM
 
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing PangKahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
 
Lemh1a1
Lemh1a1Lemh1a1
Lemh1a1
 
PaperNo10-KaramiHabibiSafariZarrabi-IJCMS
PaperNo10-KaramiHabibiSafariZarrabi-IJCMSPaperNo10-KaramiHabibiSafariZarrabi-IJCMS
PaperNo10-KaramiHabibiSafariZarrabi-IJCMS
 

Viewers also liked

1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbersJan Plaza
 
Prop Transfer Module
Prop  Transfer  ModuleProp  Transfer  Module
Prop Transfer Moduleniceguyted
 
Andrew Props
Andrew PropsAndrew Props
Andrew Propsmandido
 
Props/Costumes/Settings
Props/Costumes/SettingsProps/Costumes/Settings
Props/Costumes/SettingsTyrese_C
 
Props, costumes and sets
Props, costumes and setsProps, costumes and sets
Props, costumes and setsMoshyP
 
Making Props
Making PropsMaking Props
Making Propsrenee
 
Band props
Band propsBand props
Band props046679
 
Costumes, makeup and props
Costumes, makeup and props Costumes, makeup and props
Costumes, makeup and props ASMedia_Leyton
 
6th performing arts set and props designers
6th performing arts   set and props designers6th performing arts   set and props designers
6th performing arts set and props designersmdillier
 
Behind the scenes set, make-up and props
Behind the scenes set, make-up and propsBehind the scenes set, make-up and props
Behind the scenes set, make-up and propsLouisha26
 
Assignment 25 costume & props
Assignment 25   costume & propsAssignment 25   costume & props
Assignment 25 costume & propsMissConnell
 
Props List
Props ListProps List
Props Listtlcurtis
 
The Seagull
The SeagullThe Seagull
The SeagullLevy Ngo
 

Viewers also liked (20)

1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers
 
Prop Transfer Module
Prop  Transfer  ModuleProp  Transfer  Module
Prop Transfer Module
 
Andrew Props
Andrew PropsAndrew Props
Andrew Props
 
Props/Costumes/Settings
Props/Costumes/SettingsProps/Costumes/Settings
Props/Costumes/Settings
 
Props
PropsProps
Props
 
Filming diary
Filming diaryFilming diary
Filming diary
 
Props, costumes and sets
Props, costumes and setsProps, costumes and sets
Props, costumes and sets
 
Making Props
Making PropsMaking Props
Making Props
 
Band props
Band propsBand props
Band props
 
Prop and costumes lists
Prop and costumes listsProp and costumes lists
Prop and costumes lists
 
Props
PropsProps
Props
 
Prop list
Prop listProp list
Prop list
 
Costumes, makeup and props
Costumes, makeup and props Costumes, makeup and props
Costumes, makeup and props
 
Props list
Props listProps list
Props list
 
6th performing arts set and props designers
6th performing arts   set and props designers6th performing arts   set and props designers
6th performing arts set and props designers
 
Behind the scenes set, make-up and props
Behind the scenes set, make-up and propsBehind the scenes set, make-up and props
Behind the scenes set, make-up and props
 
Assignment 25 costume & props
Assignment 25   costume & propsAssignment 25   costume & props
Assignment 25 costume & props
 
Props List
Props ListProps List
Props List
 
The Seagull
The SeagullThe Seagull
The Seagull
 
Props & Arts
Props & ArtsProps & Arts
Props & Arts
 

Similar to 1.11 Inductive definitions and structural induction

Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsSelman Bozkır
 
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...Scilab
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete StructureNANDINI SHARMA
 
schaums-probability.pdf
schaums-probability.pdfschaums-probability.pdf
schaums-probability.pdfSahat Hutajulu
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Michael Soltys
 
Math 150 fall 2020 homework 1 due date friday, october 15,
Math 150 fall 2020 homework 1 due date friday, october 15,Math 150 fall 2020 homework 1 due date friday, october 15,
Math 150 fall 2020 homework 1 due date friday, october 15,MARRY7
 
Answers Of Discrete Mathematics
Answers Of Discrete MathematicsAnswers Of Discrete Mathematics
Answers Of Discrete MathematicsSabrina Green
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Kwonpyo Ko
 
CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2David Wood
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detailNivaTripathy1
 
Methods of calculate roots of equations
Methods  of calculate  roots  of  equationsMethods  of calculate  roots  of  equations
Methods of calculate roots of equationsNORAIMA
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfgowhiksankar54
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicManjula V
 

Similar to 1.11 Inductive definitions and structural induction (20)

Discrete mathematics notes
Discrete mathematics notesDiscrete mathematics notes
Discrete mathematics notes
 
Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systems
 
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...
Introduction to Discrete Probabilities with Scilab - Michaël Baudin, Consort...
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete Structure
 
schaums-probability.pdf
schaums-probability.pdfschaums-probability.pdf
schaums-probability.pdf
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System -
 
Math 150 fall 2020 homework 1 due date friday, october 15,
Math 150 fall 2020 homework 1 due date friday, october 15,Math 150 fall 2020 homework 1 due date friday, october 15,
Math 150 fall 2020 homework 1 due date friday, october 15,
 
Answers Of Discrete Mathematics
Answers Of Discrete MathematicsAnswers Of Discrete Mathematics
Answers Of Discrete Mathematics
 
DM(1).pptx
DM(1).pptxDM(1).pptx
DM(1).pptx
 
L04 (1)
L04 (1)L04 (1)
L04 (1)
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2CPSC 125 Ch 1 sec 2
CPSC 125 Ch 1 sec 2
 
SETS
SETSSETS
SETS
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detail
 
Slides
SlidesSlides
Slides
 
Methods of calculate roots of equations
Methods  of calculate  roots  of  equationsMethods  of calculate  roots  of  equations
Methods of calculate roots of equations
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 

More from Jan Plaza

6.3 Equivalences versus partitions
6.3 Equivalences versus partitions6.3 Equivalences versus partitions
6.3 Equivalences versus partitionsJan Plaza
 
6.1 Partitions
6.1 Partitions6.1 Partitions
6.1 PartitionsJan Plaza
 
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)Jan Plaza
 
6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)Jan Plaza
 
5.8 Permutations (handout)
5.8 Permutations (handout)5.8 Permutations (handout)
5.8 Permutations (handout)Jan Plaza
 
5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)Jan Plaza
 
5.7 Function powers
5.7 Function powers5.7 Function powers
5.7 Function powersJan Plaza
 
5.6 Function inverse. A handout.
5.6 Function inverse. A handout.5.6 Function inverse. A handout.
5.6 Function inverse. A handout.Jan Plaza
 
5.6 Function inverse. Dynamic slides.
5.6 Function inverse. Dynamic slides.5.6 Function inverse. Dynamic slides.
5.6 Function inverse. Dynamic slides.Jan Plaza
 
5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.Jan Plaza
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.Jan Plaza
 
5.3 Basic functions. A handout.
5.3 Basic functions. A handout.5.3 Basic functions. A handout.
5.3 Basic functions. A handout.Jan Plaza
 
5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.Jan Plaza
 
5.1 Defining and visualizing functions. A handout.
5.1 Defining and visualizing functions. A handout.5.1 Defining and visualizing functions. A handout.
5.1 Defining and visualizing functions. A handout.Jan Plaza
 
5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.Jan Plaza
 
1.8 Separation schema
1.8 Separation schema1.8 Separation schema
1.8 Separation schemaJan Plaza
 
1.4 Abstract objects and expressions
1.4 Abstract objects and expressions1.4 Abstract objects and expressions
1.4 Abstract objects and expressionsJan Plaza
 
1.2 Axiom of pair
1.2 Axiom of pair1.2 Axiom of pair
1.2 Axiom of pairJan Plaza
 
1.11 Mathematical induction
1.11 Mathematical induction1.11 Mathematical induction
1.11 Mathematical inductionJan Plaza
 
1.7 The sets of numbers
1.7 The sets of numbers1.7 The sets of numbers
1.7 The sets of numbersJan Plaza
 

More from Jan Plaza (20)

6.3 Equivalences versus partitions
6.3 Equivalences versus partitions6.3 Equivalences versus partitions
6.3 Equivalences versus partitions
 
6.1 Partitions
6.1 Partitions6.1 Partitions
6.1 Partitions
 
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
 
6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)
 
5.8 Permutations (handout)
5.8 Permutations (handout)5.8 Permutations (handout)
5.8 Permutations (handout)
 
5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)
 
5.7 Function powers
5.7 Function powers5.7 Function powers
5.7 Function powers
 
5.6 Function inverse. A handout.
5.6 Function inverse. A handout.5.6 Function inverse. A handout.
5.6 Function inverse. A handout.
 
5.6 Function inverse. Dynamic slides.
5.6 Function inverse. Dynamic slides.5.6 Function inverse. Dynamic slides.
5.6 Function inverse. Dynamic slides.
 
5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.
 
5.3 Basic functions. A handout.
5.3 Basic functions. A handout.5.3 Basic functions. A handout.
5.3 Basic functions. A handout.
 
5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.
 
5.1 Defining and visualizing functions. A handout.
5.1 Defining and visualizing functions. A handout.5.1 Defining and visualizing functions. A handout.
5.1 Defining and visualizing functions. A handout.
 
5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.
 
1.8 Separation schema
1.8 Separation schema1.8 Separation schema
1.8 Separation schema
 
1.4 Abstract objects and expressions
1.4 Abstract objects and expressions1.4 Abstract objects and expressions
1.4 Abstract objects and expressions
 
1.2 Axiom of pair
1.2 Axiom of pair1.2 Axiom of pair
1.2 Axiom of pair
 
1.11 Mathematical induction
1.11 Mathematical induction1.11 Mathematical induction
1.11 Mathematical induction
 
1.7 The sets of numbers
1.7 The sets of numbers1.7 The sets of numbers
1.7 The sets of numbers
 

Recently uploaded

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 

Recently uploaded (20)

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 

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}