南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)03_Math

Outline Sets Relations Functions Products Sums 2/40
Outline Sets Relations Functions Products Sums 2 / 40

Sets -Basic Notations x∈S membership SCT subset SCT proper subset S Cfin T finite subset S=T equivalence 0 the empty set N natural numbers Z integers B [true,false 4/40
Sets – Basic Notations x ∈ S membership S ⊆ T subset S ⊂ T proper subset S ⊆fin T finite subset S = T equivalence ∅ the empty set N natural numbers Z integers B {true,false} 4 / 40

Sets -Basic Notations SnT intersection sr{xIx∈S and x∈T} SUT union s{x xES orx∈T} S-T difference 些{xIx∈S and x年T} P(S) powerset ef{TlT≤S} [m,n] integer range s{x|m≤x≤n 5/40
Sets – Basic Notations S ∩ T intersection def = {x | x ∈ S and x ∈ T} S ∪ T union def = {x | x ∈ S or x ∈ T} S − T difference def = {x | x ∈ S and x 6∈ T} P(S) powerset def = {T | T ⊆ S} [m, n] integer range def = {x | m ≤ x ≤ n} 5 / 40

Generalized Unions of Sets US s{x|3T∈S.x∈T} U5(i) d UfS(i)Iiel iel 050些 U s(i) i=m ie[m,n Here S is a set of sets.S(i)is a set whose definition depends on i. For instance,we may have S(i)={x|x>i+3} Given i=1,2,...,n,we know the corresponding S(i). 6/40
Generalized Unions of Sets S S def = {x | ∃T ∈ S. x ∈ T} S i∈I S(i) def = S {S(i) | i ∈ I } Sn i=m S(i) def = S i∈[m,n] S(i) Here S is a set of sets. S(i) is a set whose definition depends on i. For instance, we may have S(i) = {x | x > i + 3} Given i = 1, 2, . . . , n, we know the corresponding S(i). 6 / 40

Generalized Unions of Sets Example(1) AUB=A,B} Proof? Example (2) LetS(i)=[i,i+1]andI={U2Ij∈[1,3]},then US(i)={1,2,4,5,9,10} iel 1/40
Generalized Unions of Sets Example (1) A ∪ B = [ {A, B} Proof? Example (2) Let S(i) = [i, i + 1] and I = {j 2 | j ∈ [1, 3]}, then [ i∈I S(i) = {1, 2, 4, 5, 9, 10} 7 / 40

Generalized Intersections of Sets ∩S 些{x VTES.xeT} ∩S(i) def ∩{S()|i∈} iel 50些∩50 i三m ie m,n 8/40
Generalized Intersections of Sets T S def = {x | ∀T ∈ S. x ∈ T} T i∈I S(i) def = T {S(i) | i ∈ I } Tn i=m S(i) def = T i∈[m,n] S(i) 8 / 40

Generalized Unions and Intersections of Empty Sets From USgf{xI3T∈S.xeT} ∩Sg{x|TeS.xeT} we know U0=0 ∩0 meaningless 0is meaningless,since it denotes the paradoxical "set of everything". 9/40
Generalized Unions and Intersections of Empty Sets From S S def = {x | ∃T ∈ S. x ∈ T} T S def = {x | ∀T ∈ S. x ∈ T} we know S ∅ = ∅ T ∅ meaningless T ∅ is meaningless, since it denotes the paradoxical ”set of everything”. 9 / 40

Outline Sets Relations Functions Products Sums 10/40
Outline Sets Relations Functions Products Sums 10 / 40

Relations We need to first define the Cartesian product of two sets A and B: A×B={(x,y)Ix∈A and y∈B} Here (x,y)is called a pair. Projections over pairs: πo(x,y)=xand1(x,y)=y. Then.p is a relation from A to B if pC Ax B,or pEP(Ax B) 11/40
Relations We need to first define the Cartesian product of two sets A and B: A × B = {(x, y) | x ∈ A and y ∈ B} Here (x, y) is called a pair. Projections over pairs: π0(x, y) = x and π1(x, y) = y. Then, ρ is a relation from A to B if ρ ⊆ A × B, or ρ ∈ P(A × B). 11 / 40

Relations p is a relation from A to B if pAx B,orp∈P(A×B). p is a relation on S if pSx S. We say p relates x and y if(x,y)Ep.Sometimes we write it as xpy. p is an identity relation if∀x,y)∈p.x=y. 12/40
Relations ρ is a relation from A to B if ρ ⊆ A × B, or ρ ∈ P(A × B). ρ is a relation on S if ρ ⊆ S × S. We say ρ relates x and y if (x, y) ∈ ρ. Sometimes we write it as x ρ y. ρ is an identity relation if ∀(x, y) ∈ ρ. x = y. 12 / 40
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)02_CoqOverview.pptx
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)01_Introduction(主讲:冯新宇)Formal Semantics of Programming Languages.ppt
- 私立华联学院:《html5》课程教学资源(课件讲稿)第9章 CSS3高级应用.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第8章 多媒体技术.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第7章 表单的应用.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第6章 浮动与定位.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第5章 CSS盒子模型.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第4章 CSS3选择器.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第3章 CSS3入门.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第2章 HTML5 页面元素及属性.pdf
- 私立华联学院:《html5》课程教学资源(课件讲稿)第1章 初识HTML5.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)各章习题答案.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第9章 CSS3高级应用_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第8章 多媒体嵌入_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第7章 表单_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第6章 浮动与定位_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第5章 盒子模型_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第4章 CSS3选择器_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第3章 CSS3入门_习题.pdf
- 私立华联学院:《html5》课程教学资源(试卷习题)第2章 HTML5页面元素及属性_习题.pdf
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)04_Lambda Calculus.pptx
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)05_Operational Semantics.pdf
- 《程序设计语言的形式语义》课程教学资源(文献资料)Lecture Notes on the Lambda Calculus.pdf
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)06_Denotational Semantics.pdf
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)07_Axiomatic Semantics and Hoare Logic.pdf
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)Separation Logic(1/3).ppt
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)09_Shared-Variable Concurrency.pdf
- 《程序设计语言的形式语义》课程教学资源(文献资料)An Introduction to Separation Logic(Preliminary Draft).pdf
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)Separation Logic(2/3).ppt
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)Separation Logic(3/3).ppt
- 南京大学:《程序设计语言的形式语义》课程教学资源(课件讲稿)10_Simply-Typed Lambda Calculus.pptx
- 私立华联学院:《C语言程序设计》课程教学资源(教案讲义)教学大纲.pdf
- 私立华联学院:《C语言程序设计》课程教学资源(教案讲义)应用案例.pdf
- 私立华联学院:《C语言程序设计》课程教学资源(教案讲义)课程标准(适用专业:物联网应用技术).pdf
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第一章 初识C语言(负责人:周鹏梅).ppt
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第三章 结构化程序设计.ppt
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第二章 数据类型与运算符.ppt
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第七章 结构体和共同体.ppt
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第五章 函数.ppt
- 私立华联学院:《C语言程序设计》课程电子教案(PPT课件)第八章 文件.ppt