Presentation is loading. Please wait.

Presentation is loading. Please wait.

Formal Methods in software development

Similar presentations


Presentation on theme: "Formal Methods in software development"— Presentation transcript:

1 Formal Methods in software development
a.a.2017/2018 Prof.Anna Labella 4/15/2019

2 Exercises 4/15/2019 4/15/2019 2

3 Programs as functions In view of an interpretation of programs in terms of continuous partial functions …. Why functions? Because a command can be thought of as a function from states to states In general a non-total one Why continuous? Because we have to preserve l.u.b., in particular fixed points 4/15/2019 4/15/2019 3

4 Programs as functions We have to guarantee that some constructions
give rise to cpo’s and to continuous functions Remember that continuous partial functions are in a cpo. 4/15/2019 4/15/2019 4

5 4/15/2019 4/15/2019 5

6 4/15/2019 4/15/2019 6

7 4/15/2019 4/15/2019 7

8 4/15/2019 4/15/2019 8

9 What is a product? Given A and B, two structures of the same kind we are looking for an object with two projections in A and B, preserving the structure and s.t. given another object with two morphisms f and g in A and B, there is a unique l making the following diagram commute: 4/15/2019 4/15/2019 9

10 Theorem Product, if it does exist, is unique up to isomorphisms
examples 4/15/2019 4/15/2019 10

11 Examples Cartesian product in Sets Intersection in P(X)
Conjunction in a boolean algebra ……….. 4/15/2019 4/15/2019 11

12 What is a sum? Given A and B, two structures of the same kind we are
looking for an object with two injections from A and B, preserving the structure and s.t. given another object with two morphisms h and k from A and B, there is a unique m making the following diagram commute: 4/15/2019 4/15/2019 12

13 Theorem Sum, if it does exist, is unique up to isomorphisms Duality
4/15/2019 4/15/2019 13

14 Examples Disjoint union in Sets Union in P(X)
Disjunction in a boolean algebra ……….. 4/15/2019 4/15/2019 14

15 Example: in the universe of domains
Given two domains A and B, we could add a bottom element 4/15/2019 4/15/2019 15

16 Examples or make the two bottom elements coincide 4/15/2019 4/15/2019
16

17 Which is the sum? 4/15/2019 4/15/2019 17


Download ppt "Formal Methods in software development"

Similar presentations


Ads by Google