Professional Documents
Culture Documents
Structural Induction: by Structural Induction On With Ind. Hyp. " Is Even" - Is Even - If Is Even, Then So Is
Structural Induction: by Structural Induction On With Ind. Hyp. " Is Even" - Is Even - If Is Even, Then So Is
MIT 6.042J/18.062J
Albert R Meyer, February 29, 2012 lec 5M.1 Albert R Meyer, February 29, 2012 7W.2
1
Matched Paren Strings M Structural Induction on M
Proof:
Lemma: Every s in M has the
Ind. Hyp. P(s) ::= (s ∈ EQ)
same number of ]’s and [’s.
Base case (s = λ):
Let EQ ::= {strings with same
number of ] and [} λ has 0 ]’s and 0 [’s,
Lemma (restated): M ⊆ EQ so P(λ) is true.
base case is OK
Albert R Meyer, February 29, 2012 lec 5M.5 Albert R Meyer, February 29, 2012 lec 5M.6
2
The 18.01 Functions, F18
Lemma.
F18 is closed under
taking derivatives:
if f ∈ F18, then f´∈ F18
Class Problem
Albert R Meyer, February 29, 2012 lec 5M.11
3
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.