SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie TaPL名古屋 Chap2

PROPERTIES OF LAPLACE TRANSFORM part 2
PROPERTIES OF LAPLACE TRANSFORM part 2PROPERTIES OF LAPLACE TRANSFORM part 2
PROPERTIES OF LAPLACE TRANSFORM part 2Ranit Sarkar
 
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)IJERD Editor
 
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 Functioninventionjournals
 
Chapter 9(laplace transform)
Chapter 9(laplace transform)Chapter 9(laplace transform)
Chapter 9(laplace transform)Eko Wijayanto
 
Lattices and codes
Lattices and codesLattices and codes
Lattices and codesSpringer
 
Pizza Problem
Pizza ProblemPizza Problem
Pizza ProblemHC Wong
 
Laplace transforms and problems
Laplace transforms and problemsLaplace transforms and problems
Laplace transforms and problemsVishnu V
 
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 allssuserdde43b
 
Answer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercisesAnswer to selected_miscellaneous_exercises
Answer to selected_miscellaneous_exercisespaufong
 
pradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqpradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqPradeep Bisht
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsMatthew Leingang
 
Den5200 ps1
Den5200 ps1Den5200 ps1
Den5200 ps1jogerpow
 
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
 
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)IJERD Editor
 

Ähnlich wie 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)
 

Kürzlich hochgeladen

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Kürzlich hochgeladen (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

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