SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
TaPL                      #2


       2012          2    18




()            TaPL       #2         2012   2   18   1 / 34
.
. . Mathematical Preliminaries
  1

     Sets, Relations, and Functions
     Orderd Sets
     Sequences
     Induction




          ()            TaPL   #2     2012   2   18   2 / 34
()   TaPL   #2   2012   2   18   3 / 34
()   TaPL   #2   2012   2   18   4 / 34
()   TaPL   #2   2012   2   18   5 / 34
()   TaPL   #2   2012   2   18   6 / 34
2.1.1 Notation of Sets
.
{. . . }                                                       .
..
.                                                          .




                                                               .
.
{ x ∈ S | ... }                                                .
..
.                                                          .




                                                               .
.
φ                                                              .
..
.                                                          .




                                                               .
.
ST      { x | x∈S∧x ∈T }
                                                              .
..
.                                                          .




                                                               .
.
|S|           S                                                .
..
.                                                          .




                                                               .
.
P(S)           S powerset              S                       .
..
.                                                          .




                                                               .
     ex. S = {1, 2}, P(S) = {φ, {1}, {2}, {1, 2}}
         ()            TaPL   #2           2012   2   18   7 / 34
2.1.2 Natural Number
 .
                                                                          .
.natural number
 .
 N : {0, 1, 2, 3, . . . }
 ..
 .                                                                    .




                                                                          .
 .
                                                                          .
.countable
 .
 N 1 1                                  countable
 ..
 .                                                                    .




                                                                          .
           N
                  ex.                          etc.


             ()             TaPL   #2                 2012   2   18   8 / 34
2.1.3 n-Place Relation
 .
 n-place relation                                                 .
..
      S1 , . . . , Sn                         R
 S1 × · · · × Sn n-place relation
 ..
 .                                                            .




                                                                  .
 ex. S1 = {1, 3}, S2 = {2, 4}, R = {(1, 2), (1, 4), (3, 4)}

                     R   <
                         =

   (1, 2)        R


            ()               TaPL   #2        2012   2   18   9 / 34
2.1.4 Predicate
 .
                                                                    .
.Predicate
 .
 ..  S one-place relation P         S       predicate
 .                                                              .




                                                                    .
 s∈S           s∈P             P        s


         λs.P (s)   S




         ()             TaPL   #2              2012   2   18   10 / 34
2.1.5 Binary Relation
 .
 Binary relation                                                 .
..
 binary relation
 ..                    two-place relation
 .                                                           .




                                                                 .
  (s, t) ∈ R               sRt


      U        U   binary relation          U          binary
                      relation R



          ()               TaPL      #2     2012   2   18   11 / 34
2.1.6 more notation



               9             3

 ex. Γ   s:T       Γ, s, T       typing relation




         ()                  TaPL   #2             2012   2   18   12 / 34
2.1.7 Domain, Range

     S T         R
 .
                                                          .
.domain
 .
 dom(R) = { s ∈ S | (s, t) ∈ R }
 ..
 .                                                    .




                                                          .
 .
range (codomain)                                          .
..
 range(R) = { t ∈ T | (s, t) ∈ R }
 ..
 .                                                    .




                                                          .
          ()            TaPL   #2    2012   2   18   13 / 34
2.1.8 Partial Function, Total
Function
 .
 partial function                                            .
..
 s ∈ S, t1 ∈ T, t2 ∈ T,         (s, t1 ) ∈ R, (s, t2 ) ∈ R
    t1 = t2                       R S            T partial
 function
 ..
 .                                                         .




                                                                  .
 .
                                                             .
.total function
 .
 partial function            dom(R) = S                R S
 ..    T      total function               function
 .                                                         .




                                                                  .
           ()             TaPL   #2            2012   2   18   14 / 34
2.1.9 Defined, Undefined
 .
                                                                             .
.defined
 .
     S          T      partial function R                         s∈S
   s∈R                R s defined
 defined                  undefined
f (χ) ↑    f (χ) =↑         f      χ        undefined


.. (χ) ↓
f
.
           defined
                                                                         .




                                                                             .
                        (                  )
     exception                         from S to T ∪ {f ail}

           ()               TaPL       #2              2012   2   18    15 / 34
2.1.10 Preserved


 .
 preserved                                                          .
..
 binary relation R         S     predicate P
 sRs          P (s)   P (s )                    P         R
 ..      preserved
 .                                                              .




                                                                    .
           ()             TaPL     #2          2012   2   18   16 / 34
2.2.1 Property of Binary Relation
 S         binary relation R
 .
                                                               .
.reflexive
 .
 ∀s∈S . sRs
 ..
 .                                                         .




                                                               .
 .
 symmetric                                                     .
..
 ∀ s, t ∈ S . s R t → t R s
 ..
 .                                                         .




                                                               .
 .
                                                               .
.transitive
 .
 ∀
 .. s, t, u ∈ S . s R t ∧ t R u → s R u
 .                                                         .




                                                               .
 .
 antisymmetric                                                 .
..
 ∀ s, t ∈ S . s R t ∧ t R s → s = t
 ..
 .                                                         .




                                                               .
          ()             TaPL   #2        2012   2   18   17 / 34
2.2.2 Preorder, Partial Order, Total
Order
 .
 preorder                                                                .
..
 preorder R      reflexive      transitive preorder              R
 ≤
 preorderd set S    S                preorder      R
 ..
 .                                                                   .




                                                                         .
                   <    s≤t∧s=t



          ()            TaPL    #2              2012   2   18       18 / 34
2.2.2 Preorder, Partial Order, Total
Order

 .
 partial order                                            .
..
 partial order
 ..             preorder    antisymmetric
 .                                                      .




                                                               .
 .
                                                          .
.total order
 .
 total order
 ..            partial order ∀ s, t ∈ S . s ≤ t ∨ t ≤ s
 .                                                      .




                                                               .
           ()            TaPL   #2          2012   2   18   19 / 34
2.2.3 Join, Meet
 ≤        S        partial order          s∈S   t∈S
 .
 join least upper bound                                                    .
..
          j∈S       s    t       join
    ...
     1    s≤j∧t≤j
 .. ..
     2.   ∀ k ∈S . s≤k∧t≤k∧j ≤k
 .                                                                     .




                                                                           .
 .
 meet greatest lower bound                                                 .
..
          m∈S        s       t    meet
    ...
     1    m≤s∧m≤t
 .. ...
 .
     2    ∀ n∈S . n≤s∧n≤t∧n≤m
                                                                       .




                                                                           .
              ()                   TaPL    #2         2012   2   18   20 / 34
2.2.4 Equivalence


 .
 equivalence                                                     .
..
 S       R equivalence               R   reflexive
 transitive symmetric
 ..
 .                                                           .




                                                                 .
          ()             TaPL   #2          2012   2   18   21 / 34
2.2.5
 .
                                                                  .
.reflexive closure
 .
 R
 ..              reflexive         R
 .                                                            .




                                                                  .
 .
                                                                  .
.transitive closure
 .
 R
 ..              transitive      R R+
 .                                                            .




                                                                  .
 .
                                                                  .
.reflexive and transitive closure
 .
 R
 ..              reflexive transitive           R∗
 .                                                            .




                                                                  .
              R∈R    R                                   ∀
                    Ri ∈ R . R ⊆ Ri

         ()             TaPL   #2       2012    2   18       22 / 34
2.2.6 Exercise 2.2.6


    S          R                     R


             R = R ∪ { (s, s) | s ∈ S }

R   R   reflexive closure




        ()            TaPL   #2           2012   2   18   23 / 34
2.2.7 Exercise 2.2.7 -more
constructive definition of transitive
closure-
Ri

R0 = R
Ri+1 = Ri ∪ { (s, u) | ∃t ∈ R.(s, t) ∈ Ri ∧ (t, u) ∈ Ri }



                      R+ =          Ri
                               i


          ()            TaPL       #2      2012   2   18   24 / 34
2.2.8 Exercise 2.2.8



S       binary relation   R R          preserved          S
      predicate P                     P R∗
    preserved




           ()             TaPL   #2       2012   2   18       25 / 34
2.2.9 Decreasing Chain

.
S          preorder        ≤                                       .
si ∈ S               ∀ i ∈ N . si+1 < si
s1 , s2 , s3 , . . .
..                       ≤ decreasing chain
.                                                              .




                                                                   .
                   ex.   ”5, 4, 3, 2, 1”




          ()             TaPL   #2            2012   2   18   26 / 34
2.2.10 Well Founded
.
S     preorder        ≤                                               .
leq         decresing chain                           ≤        well
founded
..
.                                                                 .




                                                                      .
              ex.N        < well founded
                     (0 < 1 < 2 < . . . )

              ex.R         not well founded
               (· · · < −1 < 0 < 1 < . . . )



         ()              TaPL   #2             2012   2   18     27 / 34
2.3.1 Sequences
.
sequence              “,”                                       .
                        “,”     Cons   Append
..
.                                                           .




                                                                .
.
1..n   1        n       sequence                                .
..
.                                                           .




                                                                .
.
|a|    sequence a                                               .
..
.                                                           .




                                                                .
.
•          sequence                                             .
..
.                                                           .




                                                                .
           ()            TaPL   #2         2012   2   18   28 / 34
2.4.1 AXIOM: Ordinary Induction
on N



           P (0)   ∀i ∈ N. P (i) → P (i + 1)
                    ∀n ∈ N. P (n)




      ()               TaPL   #2          2012   2   18   29 / 34
2.4.2 AXIOM: Complete Induction
on N



           (∀i ∈ N, i < n. P (i)) → P (n)
                  ∀n ∈ N. P (n)




      ()              TaPL   #2             2012   2   18   30 / 34
2.4.3 Lexicographic Order
(Dictionary Order)



(m, n) ≤ (m , n )
  ⇔       m < m or (m = m and n ≤ n )




        ()          TaPL   #2       2012   2   18   31 / 34
2.4.4 AXIOM: Lexicographic
Induction



 (∀m , n ∈ N, (m , n ) < (m, n). P (m , n )) → P (m, n)
                 ∀m, n ∈ N. P (m, n)




          ()            TaPL   #2         2012   2   18   32 / 34
2.4.4 Lexicographic Induction
   Lexicographic Induction    nested induction
                                 ”by an inner
   induction”                      3     4
                                                    3
                            4
   Chapter3     Theorem 3.3.4       structural
   induction
                term

   Chapter 21
                1

        ()             TaPL   #2         2012   2   18   33 / 34
()   TaPL   #2   2012   2   18   34 / 34

Contenu connexe

Similaire à TaPL名古屋 Chap2

Lattices and codes
Lattices and codesLattices and codes
Lattices and codes
Springer
 
Pizza Problem
Pizza ProblemPizza Problem
Pizza Problem
HC Wong
 
Answer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercisesAnswer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercises
paufong
 
Den5200 ps1
Den5200 ps1Den5200 ps1
Den5200 ps1
jogerpow
 
11.[95 103]solution of telegraph equation by modified of double sumudu transf...
11.[95 103]solution of telegraph equation by modified of double sumudu transf...11.[95 103]solution of telegraph equation by modified of double sumudu transf...
11.[95 103]solution of telegraph equation by modified of double sumudu transf...
Alexander Decker
 

Similaire à TaPL名古屋 Chap2 (20)

Lec22
Lec22Lec22
Lec22
 
Zeta Zero-Counting Function
Zeta Zero-Counting FunctionZeta Zero-Counting Function
Zeta Zero-Counting Function
 
Laplace quad
Laplace quadLaplace quad
Laplace quad
 
PROPERTIES OF LAPLACE TRANSFORM part 2
PROPERTIES OF LAPLACE TRANSFORM part 2PROPERTIES OF LAPLACE TRANSFORM part 2
PROPERTIES OF LAPLACE TRANSFORM part 2
 
Orthogonal_Polynomials
Orthogonal_PolynomialsOrthogonal_Polynomials
Orthogonal_Polynomials
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
On The Function D(s) Associated With Riemann Zeta Function
On The Function D(s) Associated With Riemann Zeta FunctionOn The Function D(s) Associated With Riemann Zeta Function
On The Function D(s) Associated With Riemann Zeta Function
 
Chapter 9(laplace transform)
Chapter 9(laplace transform)Chapter 9(laplace transform)
Chapter 9(laplace transform)
 
Lattices and codes
Lattices and codesLattices and codes
Lattices and codes
 
Pizza Problem
Pizza ProblemPizza Problem
Pizza Problem
 
Laplace transforms and problems
Laplace transforms and problemsLaplace transforms and problems
Laplace transforms and problems
 
Lecture 2.pptx this is fantastic for all
Lecture 2.pptx this is fantastic for allLecture 2.pptx this is fantastic for all
Lecture 2.pptx this is fantastic for all
 
Answer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercisesAnswer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercises
 
Sect2 1
Sect2 1Sect2 1
Sect2 1
 
Math 21a Midterm I Review
Math 21a Midterm I ReviewMath 21a Midterm I Review
Math 21a Midterm I Review
 
pradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqpradeepbishtLecture13 div conq
pradeepbishtLecture13 div conq
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functions
 
Den5200 ps1
Den5200 ps1Den5200 ps1
Den5200 ps1
 
11.[95 103]solution of telegraph equation by modified of double sumudu transf...
11.[95 103]solution of telegraph equation by modified of double sumudu transf...11.[95 103]solution of telegraph equation by modified of double sumudu transf...
11.[95 103]solution of telegraph equation by modified of double sumudu transf...
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 

Dernier

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Dernier (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

TaPL名古屋 Chap2

  • 1. TaPL #2 2012 2 18 () TaPL #2 2012 2 18 1 / 34
  • 2. . . . Mathematical Preliminaries 1 Sets, Relations, and Functions Orderd Sets Sequences Induction () TaPL #2 2012 2 18 2 / 34
  • 3. () TaPL #2 2012 2 18 3 / 34
  • 4. () TaPL #2 2012 2 18 4 / 34
  • 5. () TaPL #2 2012 2 18 5 / 34
  • 6. () TaPL #2 2012 2 18 6 / 34
  • 7. 2.1.1 Notation of Sets . {. . . } . .. . . . . { x ∈ S | ... } . .. . . . . φ . .. . . . . ST { x | x∈S∧x ∈T } . .. . . . . |S| S . .. . . . . P(S) S powerset S . .. . . . ex. S = {1, 2}, P(S) = {φ, {1}, {2}, {1, 2}} () TaPL #2 2012 2 18 7 / 34
  • 8. 2.1.2 Natural Number . . .natural number . N : {0, 1, 2, 3, . . . } .. . . . . . .countable . N 1 1 countable .. . . . N ex. etc. () TaPL #2 2012 2 18 8 / 34
  • 9. 2.1.3 n-Place Relation . n-place relation . .. S1 , . . . , Sn R S1 × · · · × Sn n-place relation .. . . . ex. S1 = {1, 3}, S2 = {2, 4}, R = {(1, 2), (1, 4), (3, 4)} R < = (1, 2) R () TaPL #2 2012 2 18 9 / 34
  • 10. 2.1.4 Predicate . . .Predicate . .. S one-place relation P S predicate . . . s∈S s∈P P s λs.P (s) S () TaPL #2 2012 2 18 10 / 34
  • 11. 2.1.5 Binary Relation . Binary relation . .. binary relation .. two-place relation . . . (s, t) ∈ R sRt U U binary relation U binary relation R () TaPL #2 2012 2 18 11 / 34
  • 12. 2.1.6 more notation 9 3 ex. Γ s:T Γ, s, T typing relation () TaPL #2 2012 2 18 12 / 34
  • 13. 2.1.7 Domain, Range S T R . . .domain . dom(R) = { s ∈ S | (s, t) ∈ R } .. . . . . range (codomain) . .. range(R) = { t ∈ T | (s, t) ∈ R } .. . . . () TaPL #2 2012 2 18 13 / 34
  • 14. 2.1.8 Partial Function, Total Function . partial function . .. s ∈ S, t1 ∈ T, t2 ∈ T, (s, t1 ) ∈ R, (s, t2 ) ∈ R t1 = t2 R S T partial function .. . . . . . .total function . partial function dom(R) = S R S .. T total function function . . . () TaPL #2 2012 2 18 14 / 34
  • 15. 2.1.9 Defined, Undefined . . .defined . S T partial function R s∈S s∈R R s defined defined undefined f (χ) ↑ f (χ) =↑ f χ undefined .. (χ) ↓ f . defined . . ( ) exception from S to T ∪ {f ail} () TaPL #2 2012 2 18 15 / 34
  • 16. 2.1.10 Preserved . preserved . .. binary relation R S predicate P sRs P (s) P (s ) P R .. preserved . . . () TaPL #2 2012 2 18 16 / 34
  • 17. 2.2.1 Property of Binary Relation S binary relation R . . .reflexive . ∀s∈S . sRs .. . . . . symmetric . .. ∀ s, t ∈ S . s R t → t R s .. . . . . . .transitive . ∀ .. s, t, u ∈ S . s R t ∧ t R u → s R u . . . . antisymmetric . .. ∀ s, t ∈ S . s R t ∧ t R s → s = t .. . . . () TaPL #2 2012 2 18 17 / 34
  • 18. 2.2.2 Preorder, Partial Order, Total Order . preorder . .. preorder R reflexive transitive preorder R ≤ preorderd set S S preorder R .. . . . < s≤t∧s=t () TaPL #2 2012 2 18 18 / 34
  • 19. 2.2.2 Preorder, Partial Order, Total Order . partial order . .. partial order .. preorder antisymmetric . . . . . .total order . total order .. partial order ∀ s, t ∈ S . s ≤ t ∨ t ≤ s . . . () TaPL #2 2012 2 18 19 / 34
  • 20. 2.2.3 Join, Meet ≤ S partial order s∈S t∈S . join least upper bound . .. j∈S s t join ... 1 s≤j∧t≤j .. .. 2. ∀ k ∈S . s≤k∧t≤k∧j ≤k . . . . meet greatest lower bound . .. m∈S s t meet ... 1 m≤s∧m≤t .. ... . 2 ∀ n∈S . n≤s∧n≤t∧n≤m . . () TaPL #2 2012 2 18 20 / 34
  • 21. 2.2.4 Equivalence . equivalence . .. S R equivalence R reflexive transitive symmetric .. . . . () TaPL #2 2012 2 18 21 / 34
  • 22. 2.2.5 . . .reflexive closure . R .. reflexive R . . . . . .transitive closure . R .. transitive R R+ . . . . . .reflexive and transitive closure . R .. reflexive transitive R∗ . . . R∈R R ∀ Ri ∈ R . R ⊆ Ri () TaPL #2 2012 2 18 22 / 34
  • 23. 2.2.6 Exercise 2.2.6 S R R R = R ∪ { (s, s) | s ∈ S } R R reflexive closure () TaPL #2 2012 2 18 23 / 34
  • 24. 2.2.7 Exercise 2.2.7 -more constructive definition of transitive closure- Ri R0 = R Ri+1 = Ri ∪ { (s, u) | ∃t ∈ R.(s, t) ∈ Ri ∧ (t, u) ∈ Ri } R+ = Ri i () TaPL #2 2012 2 18 24 / 34
  • 25. 2.2.8 Exercise 2.2.8 S binary relation R R preserved S predicate P P R∗ preserved () TaPL #2 2012 2 18 25 / 34
  • 26. 2.2.9 Decreasing Chain . S preorder ≤ . si ∈ S ∀ i ∈ N . si+1 < si s1 , s2 , s3 , . . . .. ≤ decreasing chain . . . ex. ”5, 4, 3, 2, 1” () TaPL #2 2012 2 18 26 / 34
  • 27. 2.2.10 Well Founded . S preorder ≤ . leq decresing chain ≤ well founded .. . . . ex.N < well founded (0 < 1 < 2 < . . . ) ex.R not well founded (· · · < −1 < 0 < 1 < . . . ) () TaPL #2 2012 2 18 27 / 34
  • 28. 2.3.1 Sequences . sequence “,” . “,” Cons Append .. . . . . 1..n 1 n sequence . .. . . . . |a| sequence a . .. . . . . • sequence . .. . . . () TaPL #2 2012 2 18 28 / 34
  • 29. 2.4.1 AXIOM: Ordinary Induction on N P (0) ∀i ∈ N. P (i) → P (i + 1) ∀n ∈ N. P (n) () TaPL #2 2012 2 18 29 / 34
  • 30. 2.4.2 AXIOM: Complete Induction on N (∀i ∈ N, i < n. P (i)) → P (n) ∀n ∈ N. P (n) () TaPL #2 2012 2 18 30 / 34
  • 31. 2.4.3 Lexicographic Order (Dictionary Order) (m, n) ≤ (m , n ) ⇔ m < m or (m = m and n ≤ n ) () TaPL #2 2012 2 18 31 / 34
  • 32. 2.4.4 AXIOM: Lexicographic Induction (∀m , n ∈ N, (m , n ) < (m, n). P (m , n )) → P (m, n) ∀m, n ∈ N. P (m, n) () TaPL #2 2012 2 18 32 / 34
  • 33. 2.4.4 Lexicographic Induction Lexicographic Induction nested induction ”by an inner induction” 3 4 3 4 Chapter3 Theorem 3.3.4 structural induction term Chapter 21 1 () TaPL #2 2012 2 18 33 / 34
  • 34. () TaPL #2 2012 2 18 34 / 34