Nondeterminism and probability: A tour of probabilistic programming, from abstraction to the refinement paradox.
|
|
- Ophelia Cummings
- 7 years ago
- Views:
Transcription
1 Nondeterminism and probability: A tour of probabilistic programming, from abstraction to the refinement paradox. Annabelle McIver, Macquarie University, Sydney
2 Quick summary A short history of probabilistic programming; How to build the semantics you want in four easy stages; A cute application; The refinement paradox, and how probability can help shed light.
3 A brief History of Computing
4 A brief History of Computing From working-out the theory... to working, in theory.
5 What we want. Computations Probability Nondeterminism (Refinement; abstraction) Program algebra; Behavioural model; Program logic; Proof techniques; Compositionality; Tools. But what does this all mean? How do these things interact?
6 In particular what does it mean for refinement of probability: intuitively you might think that probability should increase up the refinement order... Good 1/3 Bad Good 1/2 Bad
7 In particular what does it mean for refinement of probability: intuitively you might think that probability should increase up the refinement order... Good 1/3 Bad Good 1/2 Bad 1/3 1/2 We re going to look for inspiration from a general mathematical construction called powerdomains.
8 ... but now if we reinstantiate Good and Bad, shouldn t we also have this? Good Bad Good Bad 2/3 1/2 2/3 1/2 We re going to look for inspiration from a general mathematical construction called powerdomains to guide the principles underlying refinement.
9 Powerdomains (Originally) a general technique by which a semantic model can be augmented to include nondeterminism in such a way that the underlying computational structure of the original model is maintained. Functions, S S Relations, S PS
10 Powerdomains When we want to distinguish nontermination from other behaviour, we introduce a special bottom state How do we order the programs so that is worse than everything, and reducing the range of behaviours corresponds to more refined.?
11 Powerdomains: the Smyth order A S B iff ( b B( a A a b)) A S B iff ( A) (B A)? (
12 Powerdomains: the Smyth order A ˆ= {s S ( a A a s} S becomes an order (rather than a pre-order) on up-closed sets. On up-closed sets, refinement is simply reverse subset inclusion. S
13 Probabilistic powerdomains Given a structure (D, ), we can construct a powerdomain (Eval.D, ) where objects are evaluations over D, and the order is defined to make appropriate distinctions. Evaluations are real-valued functions which are defined over the open sets of a (fixed) topology; under certain conditions they can be extended to probability distributions. Computational domains can be reformulated in terms of the Scott Topology: a set is Scott open if it is up-closed and inaccessible (any limit of a chain inside the set can only happen if the chain intersects the set).
14 Probabilistic powerdomains: Evaluations { O Eval.S ˆ= OS [0, 1] Monotone; additive d d iff ( O OS d.o d.o) d d iff ( s S d.{s} d.{s}) Probability can increase up the refinement order!
15 Probabilistic powerdomains: Semantics Given a structure (D, ), we can construct a powerdomain (Eval.D, ) where objects are evaluations over D, and the order is defined to make appropriate distinctions. Programs Probabilistic choice Sequence S Eval.S (P p Q).s ˆ= p P.s + (1 p) Q.s P ; Q ˆ= P Q Q : Eval.S Eval.S Q.d ˆ= s:s (d.s) Q.s
16 p P ' P P;Q = ˆ P(S Q PS, &S ) (a 1/2 b) ' (a 1/2 b) P = ˆ a 1/2 R) (P powerdomains: R = P (Q (1 p)q p Q) qb)) pq P ; Q = ˆ P Q Defining (Eval.(S PS ), & ) (a Probabilistic ' (a (b ' (a b)) Distribution (P p Q).s S1 pq 1/2 1/2 1/2 = ˆ p P.s + (1 p) Q.s Q : Eval.S (Eval.(S (a ' a) 1/4 ((b '! b)eval.s (a ' PS b) ), &S ) Distribution, arithmeti 1/3 ' Pa Q(b Q : Eval.S! Eval.S.d = ˆ (d.s) Q.s (a ' b) a " a= s:s 1/4 1/3 (P Q) ' R = (P ' R) (Q ' R) Q.d = ˆ P p; s:s Q (d.s) Q.s = ˆ P Q P = 'p (a 1/2 b) ˆP a= b 1/2 1/2 P b)sequence ˆ a 1/2 (P p Q) ' R = (P ' R) p (Q ' R) (S &)1/2 b)) ' (a 1/2 b)) 1/2 (b S',(a Distribution (S S, &) 1/3 ' a) 1/4 ' q b) (a 'P b) Distribution, Q :(Q Eval.S Eval.S arithmetic (Pp((b Q) R R) (1 p)q 1/3 =! pq 1 pq(1 p)q R) P = ˆ(P(P p P.s + (1 p) Q.s Q) R = P (Q ) p (bq).s (a (Eval.S, p q pq Q.d = ˆ (d.s) Q.s a " a=a ˆ& )p P.s + (1 p) Q.s 1 pq /4 1/3 s:s (S' pb) Q).s PS,= (S PS, & ) S S ' P P = ˆ a 1/2 b P ' P (P p Q).s = ˆ p P.s (1 p) Q.s + 2/3 P ; Q = ˆ P Q b) ' (a b) P = ˆ a 1/2 b (S PEval.S, & ) ;Q = ˆ P Q P 1/2 (a P 1/2 (Eval.(S PS ), & ) b) ' (a PS b) ), &S ) P = ˆ a 1/2 S 1/2 (Eval.(S 1/2 ' (a ' (b(a'1/2(a b)) b)) Distribution 1/2 (b (a 1/2 ' (ab)) Distributi 1/2 b)) 1/2 1/2 (Eval.S, ) : Eval.S P ;(a Q! = ˆEval.S P Q 1/4 ((b ' Q ' Q a) b) ' b) Distribution, arithmetic 1/3 P P = P (P Q) ' R = (P ' R) (Q ' R) (a :'Eval.S a) 1/4! ((b ' b) (a ' b) Distribution, arithme Eval.S p p p 1/3! Q.d = ˆ (d.s) Q.s s:s P p Q) ' R = (P ' R) (b (a ' b) a "a " a =a a p (Q ' R) 1/4 1/3 a 1/4 b) = Q.d (b = ˆ 1/3 (as:s' (d.s) Q.s :PEval.S Eval.S Eval.S! ˆP a= b (S Q(P, & ) (S S, &) Q) R = P (Q (1 p)q R) P = P ˆ1/2 a 1/2 P p q pq 1 pq P Q.d (P= ˆ ' Q)s:S (d.s) Q.s ' P =P (P ' R) & ' (Q p R) p P (S S, &) (P p Q) q R = P pq (Q (1 p)q R) P ' P (S PS,1 pq &S ) P P = P S &) =P P p (a 'p (ap(s b) ) ˆ a 1/ ' P & P1/2 =Pb) (Eval.S ',, ) R) = (P p Q) ' (P p PR)= 1/2 (Eval.S p,(q = (S (a (a 1/2 Sb)) Distribu 1/2 (b ' (a 1/2 b)) 'PS, & ) (Eval.(S PS ), & b) ' (a P = ˆDistribution, a 1/2 b arithm ' b) S )' b) 1/2 b) = (a ' a) ((b (a 1/4 1/3 (Q p R) &P P ; Q p P ;(S R (S PS, &,S&)P ) = b)) a(b ' b)) Distribution a " a (b(a (a ' PEval.S b)
17 Now we have all the ingredients for instant probabilistic semantics. It s marvelous! You just add water.
18 First try: You will need a flat domain, the Smyth Powerdomain, and the probabilistic powerdomain. First add nondeterminism to Next add nondeterminism to get Finally add probability to get (S S, ) (S PS, S ) (Eval.(S PS ), S )
19 First try: What do we get? Probabilistic arithmetic (P p Q) q R = P pq (Q (1 p)q 1 pq R) Universal probabilistic distributivity... (P p Q) R = (P R) p (Q R)... which implies this... P P = (a 1/2 b) (a 1/2 b) P ˆ= a 1/2 b = (a (a 1/2 b)) 1/2 (b (a 1/2 b)) Distribution = (a a) 1/4 ((b b) 1/3 (a b) Distribution, arithmetic = a 1/4 (b 1/3 (a b) a a = a P P ˆ= a 1/2 b!!
20 Probability versus nondeterminism (y := 0 y := 1); (x := 0 1/2 x := 1) What s the chance that the demon can guess the value of x?
21 Probability versus nondeterminism (y := 0 y := 1); (x := 0 1/2 x := 1) Prob distributes over nondet = (y := 0 y := 1); x := 0 1/2 (y := 0 y := 1); x := 1 In this model, we can reproduce the demon s choice within each probabilistic branch...
22 ... effectively making the demon able to see into the future. Whoops!
23 Next try: You will need a flat domain, the Smyth Powerdomain, the probabilistic powerdomain, and compactness and convexity. First add probability to get (Eval.S, ) Next add nondeterminism to get (S PEval.S, P ) We need some extra closure conditions: (a) up-closed - for termination (b) Convex closed - P p P = P (c) Compact - so that iteration can be approximated by finite computations. As before, refinement is reverse subset inclusion
24 Relational-style semantics for a small sequential language identity [skip].s ˆ= {s} assignment [x := a].s ˆ= {s[x a]} composition [P ; P ].s ˆ= { s : S d.s f.s d [P ].s; f [P ]} where f S S and in general f r means f.s r.s for all s. choice [if B then P else P ].s ˆ= if B.s then [P ].s else [P ].s probability [P p P ].s ˆ= {d p d d [P ].s; d [P ].s} nondeterminism [P P ].s ˆ= [P ].s [P ].s, where in general D is the up-, convex- and Cauchy closure of D. iteration do G P od ˆ= (µx if G then [P ]; X else [skip]).
25 Some nice laws... P P = P (P Q) p (P R) P P (Q p R) P P P P p P = P P p (Q R) = (P p Q) (P p R) P ; (Q p R) P P ; Q p P ; R (Q p R); P = (Q; P p R; P ) This nondeterminism can see what happened after a coin flip, but not before.
26 Probability versus nondeterminism (y := 0 y := 1); (x := 0 1/2 x := 1) What s the chance that the demon can guess the value of x?
27 Probability versus nondeterminism (y := 0 y := 1); (x := 0 1/2 x := 1) Nondet distributes over pro = (y := 0); (x := 0 1/2 x := 1) (y := 1); (x := 0 1/2 x := 1) What s the chance that the demon can guess the value of x? Answer is 1/2.
28 Geometrical interpretation. Prog 0 ˆ= (s:= A 0.5 s:= B) s:= C Prog 1 ˆ= (s:= A s:= C) 0.5 (s:= B s:= C)
29 Geometrical interpretation. Plotted on the same diagram, we can see immediately the relationship between the two programs. Prog 0 ˆ= (s:= A 0.5 s:= B) s:= C Prog 1 ˆ= (s:= A s:= C) 0.5 (s:= B s:= C)
30 Logic and properties Properties are now quantitative ES ˆ= S [0, 1] wp.p.e.s ˆ= ( d P.s e e = ( s : S e.s e.s) Greatest guaranteed expected value of e with respect to the results of P from initial state s. d e) d EvalS, e ES, d e ˆ= s:s d.s e.s
31 Transformer semantics for a small sequential language dentity wp.skip.expt ˆ= expt ssignment wp.(x := E).expt ˆ= expt[x := E] omposition wp.(p ; P ).expt ˆ= wp.p.(wp.p.expt) hoice wp.(if B then P else P fi).expt ˆ= [B] wp.p.expt + [ B] wp.p.expt robability wp.(p p P ).expt ˆ= p wp.p.expt + (1 p) wp.p.expt ondeterminism wp.(p P ).expt ˆ= wp.p.expt min wp.p.expt teration wp.(do B r od).e ˆ= (µx [B] wp.r.x + [ B] e).
32 Geometrical interpretation: Expectations are hyperplanes. wp.prog 1.(2[s = A] + [s = C]) = 1/2 wp.prog 0.(2[s = A] + [s = C]) = 1
33 Logic and properties: the monotonic transformers TS ˆ= ES ES (S PEval.S, wp rp TS wp rp = id rp wp = id, if t.(e p e ) t.e p t.e t.(ke) = kt.e Sublinear t.(e k) t.e k
34 Why so complicated: can t we just have a whole logic based on probabilities, rather than random variables? It s a question of compositionality: Prog 0 ˆ= (s:= A 0.5 s:= B) s:= C Prog 1 ˆ= (s:= A s:= C) 0.5 (s:= B s:= C) Allowed final value(s) of s A B C A, B B, C C, A Maximim possible probability 1/2 1/ Minimim possible probability /2 1/2
35 A quantitative logic based on probabilities is not compositional. Consider the following context : Prog 0 ; Prog 1 ; if s=c then (s:= A 0.5 s:= B) fi if s=c then (s:= A 0.5 s:= B) fi What s the probability that the state is A finally?
36 As we have seen, the two programs can be distinguished in the transformer semantics (by a random variable encoded as an expectation). wp.prog 1.(2[s = A] + [s = C]) = 1/2 wp.prog 0.(2[s = A] + [s = C]) = 1 The transformer semantics, based on full random variables, is compositional.
37 A nice proof rule, proved using the transformer semantics: A loop: do G body od An invariant: [G] I wp.body.i Termination condition: T ˆ= wp.(do G body od).1 A rule: I T I wp.(do G body od).i
38 The jumping bean : specification. [n = N] wp.jump.[n N] The bean must move... 1/2 6/10 1/2 3/10 1/3 1/2 1/2 1/10 [n = N] wp.jump.[n K n N+K] (K is a fixed constant.) The bean can t move too much... 2/3 n wp.jump.n The expected move is at least 0.
39 The jumping bean. 1/2 6/10 1/2 3/10 1/3 1/2 1/2 2/3 1/10 Bean ˆ= wp.(do (n N) jump od) 1 = wp.bean.[n > N] The bean continues to jump, until it exceeds N. The conditions on its behaviour guarantee that it will eventually exceed any bound. Exercise: use the properties of the transformers to prove this. (Should be about 10 lines of proof.)
40 Probability versus nondeterminism: (x := 0 x := 1); (y := 0 1/2 y := 1) = (x := 0 x := 1); (y := 0) 1/2 (x := 0 x := 1); y := 1) The demon can predict the future. (y := 0 1/2 y := 1); (x := 0 x := 1) = y := 0; (x := 0 x := 1) 1/2 y := 1; (x := 0 x := 1) The demon can access the past.
41 Probability versus nondeterminism: Smyth powerdomain, for nondeterminism; then the probabilistic powerdomain on top of that. The demon can predict the future. Probabilistic powerdomain to make EvalS, then the Smyth powerdomain to make, with a special definition of ; S PEval.S, The demon can access the past.
42 Suppose we wanted to prevent the demon from accessing the past, i.e. (y := 0 1/2 y := 1); (x := 0 x := 1) = (y := 0 1/2 y := 1); x := 0 (y := 0 1/2 y := 1); x := 1 How would we build a semantic domain justifying this algebraic property?
43 Suppose we wanted to prevent the demon from accessing the past, i.e. Use the probabilistic powerdomain to build Eval.S Eval.S, and then the Smyth powerdomain to build Eval.S PEval.S How would we build a semantic domain justifying this algebraic property?
44 With this model, we lose some refinements: A B if G then A else B In fact, if we did not ban this refinement and we still had the equality we started with, then we would also have to accept this refinement! (x, y := 0, 0) 1/2 (x, y := 1, 1) x, y := 0, 0
45 An algebraic thought experiment (y := 0 1/2 y := 1); (x := 0 x := 1); if (x = y) then (x, y := 1, 1) else (x, y := 0, 0) (y := 0 1/2 y := 1); (if (y = 0) then x := 0) else x := 1; if (x = y) then Z else W = (y := 0; x := 0 1/2 y := 1; x := 0) if (x = y) then Z else W = Z = x, y := 0, 0
46 (y := 0 1/2 y := 1); (x := 0 x := 1); if (x = y) then Z else W = ((y := 0 1/2 y := 1); x := 0) (y := 0 1/2 y := 1); x := 1; if (x = y) then Z else W ((y := 0 1/2 y := 1); x := 0); if (x = y) then Z else W ((y := 0 1/2 y := 1); x := 1); if (x = y) then Z else W (Z 1/2 W ) (Z 1/2 W ) = (x, y := 0, 0) 1/2 (x, y := 1, 1) (x, y := 0, 0) 1/2 (x, y := 1, 1) x, y := 0, 0
47 The refinement paradox Properties of the logic/algebra in the context where hidden state is an issue are hard to get right, even when there are no probabilities. It turns out to be a really hard problem to find a formalisation which behaves properly for refinement h High security variables (are private ) l Low security variables (are public ) Obviously we want to make sure that going up the refinement order preserves our security properties.
48 The refinement paradox h : {0,..., H} Choose some value for h, but keep it hidden. h : {0,..., H} h := 0 Refinement doesn t preserve the security of the choice?
49 Even refinement of low security variables is a problem. l := 0 l := 1 if (h = 0) then l := 0 else h := 1 And distribution through nondeterminism implies (P Q); R P ; R Q; R := 1); ( := 0 := 1) (h := 0 h := 1); (l := 0 l := 1) = h := 0; (l := 0 l := 1) h := 1; (l := 0 l := 1) h := 0; l := 0 h := 1; l := 1
50 Resolving the paradox Building a model with hidden probabilities, based on the ideas of the final example domain provides the right insights to build a model and logic for refinement and knowledge: The Shadow Knows: Refinement of Ignorance in Sequential Programs, CC Morgan, to appear, Science of Computer Programming
51 bibliography.html
Probabilità e Nondeterminismo nella teoria dei domini
Probabilità e Nondeterminismo nella teoria dei domini Daniele Varacca ENS, Paris BRICS, Aarhus Parma, 15 giugno 2004 Probabilità e Nondeterminismo nella teoria dei domini p.1 Road Map Motivation Domain
More informationChapter 6: Episode discovery process
Chapter 6: Episode discovery process Algorithmic Methods of Data Mining, Fall 2005, Chapter 6: Episode discovery process 1 6. Episode discovery process The knowledge discovery process KDD process of analyzing
More informationFactoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
More information6.3 Conditional Probability and Independence
222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted
More informationDecision Making under Uncertainty
6.825 Techniques in Artificial Intelligence Decision Making under Uncertainty How to make one decision in the face of uncertainty Lecture 19 1 In the next two lectures, we ll look at the question of how
More informationTEACHER S GUIDE TO RUSH HOUR
Using Puzzles to Teach Problem Solving TEACHER S GUIDE TO RUSH HOUR Includes Rush Hour 2, 3, 4, Rush Hour Jr., Railroad Rush Hour and Safari Rush Hour BENEFITS Rush Hour is a sliding piece puzzle that
More informationFormal Languages and Automata Theory - Regular Expressions and Finite Automata -
Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March
More informationProbability Generating Functions
page 39 Chapter 3 Probability Generating Functions 3 Preamble: Generating Functions Generating functions are widely used in mathematics, and play an important role in probability theory Consider a sequence
More informationSoftware Engineering
Software Engineering Lecture 04: The B Specification Method Peter Thiemann University of Freiburg, Germany SS 2013 Peter Thiemann (Univ. Freiburg) Software Engineering SWT 1 / 50 The B specification method
More informationA Few Basics of Probability
A Few Basics of Probability Philosophy 57 Spring, 2004 1 Introduction This handout distinguishes between inductive and deductive logic, and then introduces probability, a concept essential to the study
More informationINCIDENCE-BETWEENNESS GEOMETRY
INCIDENCE-BETWEENNESS GEOMETRY MATH 410, CSUSM. SPRING 2008. PROFESSOR AITKEN This document covers the geometry that can be developed with just the axioms related to incidence and betweenness. The full
More informationBisimulation and Logical Preservation for Continuous-Time Markov Decision Processes
Bisimulation and Logical Preservation for Continuous-Time Markov Decision Processes Martin R. Neuhäußer 1,2 Joost-Pieter Katoen 1,2 1 RWTH Aachen University, Germany 2 University of Twente, The Netherlands
More information6.042/18.062J Mathematics for Computer Science December 12, 2006 Tom Leighton and Ronitt Rubinfeld. Random Walks
6.042/8.062J Mathematics for Comuter Science December 2, 2006 Tom Leighton and Ronitt Rubinfeld Lecture Notes Random Walks Gambler s Ruin Today we re going to talk about one-dimensional random walks. In
More information1 if 1 x 0 1 if 0 x 1
Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or
More information4: SINGLE-PERIOD MARKET MODELS
4: SINGLE-PERIOD MARKET MODELS Ben Goldys and Marek Rutkowski School of Mathematics and Statistics University of Sydney Semester 2, 2015 B. Goldys and M. Rutkowski (USydney) Slides 4: Single-Period Market
More informationCartesian Products and Relations
Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) :(a A) and (b B)}. The following points are worth special
More informationClass notes Program Analysis course given by Prof. Mooly Sagiv Computer Science Department, Tel Aviv University second lecture 8/3/2007
Constant Propagation Class notes Program Analysis course given by Prof. Mooly Sagiv Computer Science Department, Tel Aviv University second lecture 8/3/2007 Osnat Minz and Mati Shomrat Introduction This
More informationSo let us begin our quest to find the holy grail of real analysis.
1 Section 5.2 The Complete Ordered Field: Purpose of Section We present an axiomatic description of the real numbers as a complete ordered field. The axioms which describe the arithmetic of the real numbers
More informationG C.3 Construct the inscribed and circumscribed circles of a triangle, and prove properties of angles for a quadrilateral inscribed in a circle.
Performance Assessment Task Circle and Squares Grade 10 This task challenges a student to analyze characteristics of 2 dimensional shapes to develop mathematical arguments about geometric relationships.
More informationCHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs
CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce
More information3515ICT Theory of Computation Turing Machines
Griffith University 3515ICT Theory of Computation Turing Machines (Based loosely on slides by Harald Søndergaard of The University of Melbourne) 9-0 Overview Turing machines: a general model of computation
More informationNotes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
More informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice,
More informationSeparation Properties for Locally Convex Cones
Journal of Convex Analysis Volume 9 (2002), No. 1, 301 307 Separation Properties for Locally Convex Cones Walter Roth Department of Mathematics, Universiti Brunei Darussalam, Gadong BE1410, Brunei Darussalam
More informationThe Basics of Graphical Models
The Basics of Graphical Models David M. Blei Columbia University October 3, 2015 Introduction These notes follow Chapter 2 of An Introduction to Probabilistic Graphical Models by Michael Jordan. Many figures
More informationBasic Probability Concepts
page 1 Chapter 1 Basic Probability Concepts 1.1 Sample and Event Spaces 1.1.1 Sample Space A probabilistic (or statistical) experiment has the following characteristics: (a) the set of all possible outcomes
More informationIterated Dynamic Belief Revision. Sonja Smets, University of Groningen. website: http://www.vub.ac.be/clwf/ss
LSE-Groningen Workshop I 1 Iterated Dynamic Belief Revision Sonja Smets, University of Groningen website: http://www.vub.ac.be/clwf/ss Joint work with Alexandru Baltag, COMLAB, Oxford University LSE-Groningen
More information8 Divisibility and prime numbers
8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express
More informationOne natural response would be to cite evidence of past mornings, and give something like the following argument:
Hume on induction Suppose you were asked to give your reasons for believing that the sun will come up tomorrow, in the form of an argument for the claim that the sun will come up tomorrow. One natural
More informationIs Sometime Ever Better Than Alway?
Is Sometime Ever Better Than Alway? DAVID GRIES Cornell University The "intermittent assertion" method for proving programs correct is explained and compared with the conventional method. Simple conventional
More informationProcedia Computer Science 00 (2012) 1 21. Trieu Minh Nhut Le, Jinli Cao, and Zhen He. trieule@sgu.edu.vn, j.cao@latrobe.edu.au, z.he@latrobe.edu.
Procedia Computer Science 00 (2012) 1 21 Procedia Computer Science Top-k best probability queries and semantics ranking properties on probabilistic databases Trieu Minh Nhut Le, Jinli Cao, and Zhen He
More informationAutomata and Formal Languages
Automata and Formal Languages Winter 2009-2010 Yacov Hel-Or 1 What this course is all about This course is about mathematical models of computation We ll study different machine models (finite automata,
More informationSection 1.3 P 1 = 1 2. = 1 4 2 8. P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., = 1 2 4.
Difference Equations to Differential Equations Section. The Sum of a Sequence This section considers the problem of adding together the terms of a sequence. Of course, this is a problem only if more than
More informationMetric Spaces. Chapter 1
Chapter 1 Metric Spaces Many of the arguments you have seen in several variable calculus are almost identical to the corresponding arguments in one variable calculus, especially arguments concerning convergence
More informationCircles in Triangles. This problem gives you the chance to: use algebra to explore a geometric situation
Circles in Triangles This problem gives you the chance to: use algebra to explore a geometric situation A This diagram shows a circle that just touches the sides of a right triangle whose sides are 3 units,
More informationFaster deterministic integer factorisation
David Harvey (joint work with Edgar Costa, NYU) University of New South Wales 25th October 2011 The obvious mathematical breakthrough would be the development of an easy way to factor large prime numbers
More informationFinite Automata. Reading: Chapter 2
Finite Automata Reading: Chapter 2 1 Finite Automaton (FA) Informally, a state diagram that comprehensively captures all possible states and transitions that a machine can take while responding to a stream
More informationChapter 3. Cartesian Products and Relations. 3.1 Cartesian Products
Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing
More informationINTRODUCTORY SET THEORY
M.Sc. program in mathematics INTRODUCTORY SET THEORY Katalin Károlyi Department of Applied Analysis, Eötvös Loránd University H-1088 Budapest, Múzeum krt. 6-8. CONTENTS 1. SETS Set, equal sets, subset,
More information3. Reaction Diffusion Equations Consider the following ODE model for population growth
3. Reaction Diffusion Equations Consider the following ODE model for population growth u t a u t u t, u 0 u 0 where u t denotes the population size at time t, and a u plays the role of the population dependent
More informationFixed-Point Logics and Computation
1 Fixed-Point Logics and Computation Symposium on the Unusual Effectiveness of Logic in Computer Science University of Cambridge 2 Mathematical Logic Mathematical logic seeks to formalise the process of
More informationIntroduction to Probability
Introduction to Probability EE 179, Lecture 15, Handout #24 Probability theory gives a mathematical characterization for experiments with random outcomes. coin toss life of lightbulb binary data sequence
More informationInteger Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions
Grade 7 Mathematics, Quarter 1, Unit 1.1 Integer Operations Overview Number of Instructional Days: 15 (1 day = 45 minutes) Content to Be Learned Describe situations in which opposites combine to make zero.
More informationAutomated Program Behavior Analysis
Automated Program Behavior Analysis Stacy Prowell sprowell@cs.utk.edu March 2005 SQRL / SEI Motivation: Semantics Development: Most engineering designs are subjected to extensive analysis; software is
More informationTHE SEARCH FOR NATURAL DEFINABILITY IN THE TURING DEGREES
THE SEARCH FOR NATURAL DEFINABILITY IN THE TURING DEGREES ANDREW E.M. LEWIS 1. Introduction This will be a course on the Turing degrees. We shall assume very little background knowledge: familiarity with
More informationAnswer Key for California State Standards: Algebra I
Algebra I: Symbolic reasoning and calculations with symbols are central in algebra. Through the study of algebra, a student develops an understanding of the symbolic language of mathematics and the sciences.
More informationLecture 1. Basic Concepts of Set Theory, Functions and Relations
September 7, 2005 p. 1 Lecture 1. Basic Concepts of Set Theory, Functions and Relations 0. Preliminaries...1 1. Basic Concepts of Set Theory...1 1.1. Sets and elements...1 1.2. Specification of sets...2
More information11 Ideals. 11.1 Revisiting Z
11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(
More informationReview. Bayesianism and Reliability. Today s Class
Review Bayesianism and Reliability Models and Simulations in Philosophy April 14th, 2014 Last Class: Difference between individual and social epistemology Why simulations are particularly useful for social
More informationTHE BANACH CONTRACTION PRINCIPLE. Contents
THE BANACH CONTRACTION PRINCIPLE ALEX PONIECKI Abstract. This paper will study contractions of metric spaces. To do this, we will mainly use tools from topology. We will give some examples of contractions,
More informationGambling Systems and Multiplication-Invariant Measures
Gambling Systems and Multiplication-Invariant Measures by Jeffrey S. Rosenthal* and Peter O. Schwartz** (May 28, 997.. Introduction. This short paper describes a surprising connection between two previously
More informationA Propositional Dynamic Logic for CCS Programs
A Propositional Dynamic Logic for CCS Programs Mario R. F. Benevides and L. Menasché Schechter {mario,luis}@cos.ufrj.br Abstract This work presents a Propositional Dynamic Logic in which the programs are
More informationMath 4310 Handout - Quotient Vector Spaces
Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable
More informationProblem of the Month: Fair Games
Problem of the Month: The Problems of the Month (POM) are used in a variety of ways to promote problem solving and to foster the first standard of mathematical practice from the Common Core State Standards:
More informationLecture 03 (04.11.2013) Quality of the Software Development Process
Systeme hoher Qualität und Sicherheit Universität Bremen, WS 2013/14 Lecture 03 (04.11.2013) Quality of the Software Development Process Christoph Lüth Christian Liguda Your Daily Menu Models of Software
More informationCHAPTER 7 GENERAL PROOF SYSTEMS
CHAPTER 7 GENERAL PROOF SYSTEMS 1 Introduction Proof systems are built to prove statements. They can be thought as an inference machine with special statements, called provable statements, or sometimes
More informationECON 312: Oligopolisitic Competition 1. Industrial Organization Oligopolistic Competition
ECON 312: Oligopolisitic Competition 1 Industrial Organization Oligopolistic Competition Both the monopoly and the perfectly competitive market structure has in common is that neither has to concern itself
More informationEstimating Probability Distributions
Estimating Probability Distributions Readings: Manning and Schutze, Section 6.2 Jurafsky & Martin, Section 6.3 One of the central problems we face in using probability models for NLP is obtaining the actual
More informationMathematical Induction
Mathematical Induction In logic, we often want to prove that every member of an infinite set has some feature. E.g., we would like to show: N 1 : is a number 1 : has the feature Φ ( x)(n 1 x! 1 x) How
More informationTHREE DIMENSIONAL GEOMETRY
Chapter 8 THREE DIMENSIONAL GEOMETRY 8.1 Introduction In this chapter we present a vector algebra approach to three dimensional geometry. The aim is to present standard properties of lines and planes,
More informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us
More informationNotes from Week 1: Algorithms for sequential prediction
CS 683 Learning, Games, and Electronic Markets Spring 2007 Notes from Week 1: Algorithms for sequential prediction Instructor: Robert Kleinberg 22-26 Jan 2007 1 Introduction In this course we will be looking
More informationMathematical Induction
Mathematical Induction (Handout March 8, 01) The Principle of Mathematical Induction provides a means to prove infinitely many statements all at once The principle is logical rather than strictly mathematical,
More informationChapter 6. Cuboids. and. vol(conv(p ))
Chapter 6 Cuboids We have already seen that we can efficiently find the bounding box Q(P ) and an arbitrarily good approximation to the smallest enclosing ball B(P ) of a set P R d. Unfortunately, both
More informationClick on the links below to jump directly to the relevant section
Click on the links below to jump directly to the relevant section What is algebra? Operations with algebraic terms Mathematical properties of real numbers Order of operations What is Algebra? Algebra is
More informationKS3 Computing Group 1 Programme of Study 2015 2016 2 hours per week
1 07/09/15 2 14/09/15 3 21/09/15 4 28/09/15 Communication and Networks esafety Obtains content from the World Wide Web using a web browser. Understands the importance of communicating safely and respectfully
More informationIntroduction to Topology
Introduction to Topology Tomoo Matsumura November 30, 2010 Contents 1 Topological spaces 3 1.1 Basis of a Topology......................................... 3 1.2 Comparing Topologies.......................................
More informationLecture 13 - Basic Number Theory.
Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted
More informationLecture Note 1 Set and Probability Theory. MIT 14.30 Spring 2006 Herman Bennett
Lecture Note 1 Set and Probability Theory MIT 14.30 Spring 2006 Herman Bennett 1 Set Theory 1.1 Definitions and Theorems 1. Experiment: any action or process whose outcome is subject to uncertainty. 2.
More informationData exchange. L. Libkin 1 Data Integration and Exchange
Data exchange Source schema, target schema; need to transfer data between them. A typical scenario: Two organizations have their legacy databases, schemas cannot be changed. Data from one organization
More information2.1 Complexity Classes
15-859(M): Randomized Algorithms Lecturer: Shuchi Chawla Topic: Complexity classes, Identity checking Date: September 15, 2004 Scribe: Andrew Gilpin 2.1 Complexity Classes In this lecture we will look
More informationFinitely Additive Dynamic Programming and Stochastic Games. Bill Sudderth University of Minnesota
Finitely Additive Dynamic Programming and Stochastic Games Bill Sudderth University of Minnesota 1 Discounted Dynamic Programming Five ingredients: S, A, r, q, β. S - state space A - set of actions q(
More informationChapter 13: Basic ring theory
Chapter 3: Basic ring theory Matthew Macauley Department of Mathematical Sciences Clemson University http://www.math.clemson.edu/~macaule/ Math 42, Spring 24 M. Macauley (Clemson) Chapter 3: Basic ring
More informationFixed Point Theorems
Fixed Point Theorems Definition: Let X be a set and let T : X X be a function that maps X into itself. (Such a function is often called an operator, a transformation, or a transform on X, and the notation
More informationQuestion: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?
ECS20 Discrete Mathematics Quarter: Spring 2007 Instructor: John Steinberger Assistant: Sophie Engle (prepared by Sophie Engle) Homework 8 Hints Due Wednesday June 6 th 2007 Section 6.1 #16 What is the
More informationPROPERTECHNIQUEOFSOFTWARE INSPECTIONUSING GUARDED COMMANDLANGUAGE
International Journal of Computer ScienceandCommunication Vol. 2, No. 1, January-June2011, pp. 153-157 PROPERTECHNIQUEOFSOFTWARE INSPECTIONUSING GUARDED COMMANDLANGUAGE Neeraj Kumar Singhania University,
More informationCHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
More informationA Static Analyzer for Large Safety-Critical Software. Considered Programs and Semantics. Automatic Program Verification by Abstract Interpretation
PLDI 03 A Static Analyzer for Large Safety-Critical Software B. Blanchet, P. Cousot, R. Cousot, J. Feret L. Mauborgne, A. Miné, D. Monniaux,. Rival CNRS École normale supérieure École polytechnique Paris
More informationMath Workshop October 2010 Fractions and Repeating Decimals
Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,
More informationMathematics Review for MS Finance Students
Mathematics Review for MS Finance Students Anthony M. Marino Department of Finance and Business Economics Marshall School of Business Lecture 1: Introductory Material Sets The Real Number System Functions,
More informationMATH 140 Lab 4: Probability and the Standard Normal Distribution
MATH 140 Lab 4: Probability and the Standard Normal Distribution Problem 1. Flipping a Coin Problem In this problem, we want to simualte the process of flipping a fair coin 1000 times. Note that the outcomes
More informationPermutation Groups. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles April 2, 2003
Permutation Groups Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles April 2, 2003 Abstract This paper describes permutations (rearrangements of objects): how to combine them, and how
More informationImprecise probabilities, bets and functional analytic methods in Łukasiewicz logic.
Imprecise probabilities, bets and functional analytic methods in Łukasiewicz logic. Martina Fedel joint work with K.Keimel,F.Montagna,W.Roth Martina Fedel (UNISI) 1 / 32 Goal The goal of this talk is to
More informationG(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s).
Transfer Functions The transfer function of a linear system is the ratio of the Laplace Transform of the output to the Laplace Transform of the input, i.e., Y (s)/u(s). Denoting this ratio by G(s), i.e.,
More information1 Operational Semantics for While
Models of Computation, 2010 1 1 Operational Semantics for While The language While of simple while programs has a grammar consisting of three syntactic categories: numeric expressions, which represent
More informationPrimes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov
Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES
More informationMetric Spaces. Chapter 7. 7.1. Metrics
Chapter 7 Metric Spaces A metric space is a set X that has a notion of the distance d(x, y) between every pair of points x, y X. The purpose of this chapter is to introduce metric spaces and give some
More informationDegrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets.
Degrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets. Logic is the study of reasoning. A language of propositions is fundamental to this study as well as true
More informationHandout #1: Mathematical Reasoning
Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or
More informationDatabase Constraints and Design
Database Constraints and Design We know that databases are often required to satisfy some integrity constraints. The most common ones are functional and inclusion dependencies. We ll study properties of
More informationFabio Patrizi DIS Sapienza - University of Rome
Fabio Patrizi DIS Sapienza - University of Rome Overview Introduction to Services The Composition Problem Two frameworks for composition: Non data-aware services Data-aware services Conclusion & Research
More informationProbability. a number between 0 and 1 that indicates how likely it is that a specific event or set of events will occur.
Probability Probability Simple experiment Sample space Sample point, or elementary event Event, or event class Mutually exclusive outcomes Independent events a number between 0 and 1 that indicates how
More informationFOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 22
FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 22 RAVI VAKIL CONTENTS 1. Discrete valuation rings: Dimension 1 Noetherian regular local rings 1 Last day, we discussed the Zariski tangent space, and saw that it
More informationRigorous Software Engineering Hoare Logic and Design by Contracts
Rigorous Software Engineering Hoare Logic and Design by Contracts Simão Melo de Sousa RELEASE (UBI), LIACC (Porto) Computer Science Department University of Beira Interior, Portugal 2010-2011 S. Melo de
More informationTesting LTL Formula Translation into Büchi Automata
Testing LTL Formula Translation into Büchi Automata Heikki Tauriainen and Keijo Heljanko Helsinki University of Technology, Laboratory for Theoretical Computer Science, P. O. Box 5400, FIN-02015 HUT, Finland
More informationIntroduction to Computers and Programming. Testing
Introduction to Computers and Programming Prof. I. K. Lundqvist Lecture 13 April 16 2004 Testing Goals of Testing Classification Test Coverage Test Technique Blackbox vs Whitebox Real bugs and software
More informationThe Software Development Process
Systeme hoher Qualität und Sicherheit Universität Bremen WS 2015/2016 Lecture 03 (26.10.2015) The Software Development Process Christoph Lüth Jan Peleska Dieter Hutter Your Daily Menu Models of software
More informationThis unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.
Algebra I Overview View unit yearlong overview here Many of the concepts presented in Algebra I are progressions of concepts that were introduced in grades 6 through 8. The content presented in this course
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More informationQuasi Contraction and Fixed Points
Available online at www.ispacs.com/jnaa Volume 2012, Year 2012 Article ID jnaa-00168, 6 Pages doi:10.5899/2012/jnaa-00168 Research Article Quasi Contraction and Fixed Points Mehdi Roohi 1, Mohsen Alimohammady
More information