Semantics of an Intermediate Language for Program Transformation
|
|
- Bethany Houston
- 6 years ago
- Views:
Transcription
1 Semantics of an Intermediate Language for Program Transformation Sigurd Schneider Master Thesis Proposal Talk Advisors: Prof. Dr. Sebastian Hack, Prof. Dr. Gert Smolka Saarland University Graduate School of Computer Science November 11, 2011 Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 1 / 26
2 Overview 1 Introduction Static Single Assignment Form Control Flow Graph 2 Intermediate Language (IL) Syntax Semantics 3 Equivalence 4 Transformation 5 Conclusion Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 2 / 26
3 Introduction Motivation Static Single Assignment Form (SSA Form) standard (libfirm, llvm, hotspot, gcc) eases specification and implementation of program transformations Does SSA form ease the correctness proofs of program transformations, too? Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 3 / 26
4 Introduction Static Single Assignment Form Static Single Assignment Form Alpern, Cytron, Ferrante, Rosen, Wegman, Zadeck [6, 1, 2] developed in the context of data flow analysis SSA condition every name has exactly one assignment in the program join points of control flow are mediated by phi nodes (e.g. loops) Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 4 / 26
5 Example Introduction Example Program 1 // n i n p u t 2 e n t r y : i = 1 ; 3 l o o p : i f n = 0 then 4 r e t u r n i 5 e l s e 6 i = n i ; 7 n = n 1 ; 8 goto l o o p Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 5 / 26
6 Example Introduction Example Program 1 // n i n p u t 2 e n t r y : i = 1 ; 3 l o o p : i f n = 0 then 4 r e t u r n i 5 e l s e 6 i = n i ; 7 n = n 1 ; 8 goto l o o p Program with variables renamed (broken) 1 // n0 i n p u t 2 e n t r y : i 0 = 1 ; 3 l o o p : i f n0 = 0 then 4 r e t u r n i 0 5 e l s e 6 i 1 = n0 i 0 ; 7 n1 = n0 1 ; 8 body : goto l o o p Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 6 / 26
7 Example Introduction Example Program 1 // n i n p u t 2 e n t r y : i = 1 ; 3 l o o p : i f n = 0 then 4 r e t u r n i 5 e l s e 6 i = n i ; 7 n = n 1 ; 8 goto l o o p Program in SSA form 1 // n0 i n p u t 2 e n t r y : i 0 = 1 ; 3 l o o p : ( n2, i 2 ) = 4 p h i ( e n t r y : ( n0, i 0 ), 5 body : ( n1, i 1 ) ) ; 6 i f n2 = 0 then 7 r e t u r n i 2 8 e l s e 9 i 1 = n2 i 2 ; 10 n1 = n2 1 ; 11 body : goto l o o p Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 7 / 26
8 Control Flow Graph Introduction Control Flow Graph entry : i0=1 loop: return i2 n2 == 0 n2,i2 = phi(entry:(n0,i0 ),body:(n1,i1 )); n2!= 0 body: i1 = n2 i2; n1 = n2 1; Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 8 / 26
9 Introduction Control Flow Graph revisited Control Flow Graph entry n0 i0=1 (n0,i0) loop (n2, i2) return i2 n2 == 0 n2!= 0 (n1,i1) i1 = n2 i2; n1 = n2 1; Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 9 / 26
10 Intermediate Language (IL) Syntax Syntax We assume expressions e of integer type with tuples. Program equations f 0 x 0 = s 0 f 1 x 1 = s 1 shortly written as. Statement language s, t ::= x = e; s assignment if e s t conditional goto l x goto return x return f x = s Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 10 / 26
11 Example Intermediate Language (IL) Example Program in SSA form 1 // n0 i n p u t 2 e n t r y : i 0 = 1 ; 3 l o o p : ( n2, i 2 ) = 4 p h i ( e n t r y : ( n0, i 0 ), 5 body : ( n1, i 1 ) ) ; 6 i f n2 = 0 then 7 r e t u r n i 2 8 e l s e 9 i 1 = n2 i 2 ; 10 n1 = n2 1 ; 11 body : goto l o o p Program equations in IL 1 // n0 i n p u t 2 e n t r y n0 = 3 i 0 = 1 ; 4 goto l o o p ( n0, i 0 ) 5 6 l o o p ( n2, i 2 ) = 7 i f n2 = 0 then 8 r e t u r n i 2 9 e l s e 10 i 1 = n2 i 2 ; 11 n1 = n2 1 ; 12 goto l o o p ( n1, i 1 ) Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 11 / 26
12 Semantics for the IL 1 Intermediate Language (IL) Semantics The semantics is defined on state tuples Π σ, s where Π σ s program equations f x = s environment current statement Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 12 / 26
13 Intermediate Language (IL) Semantics Semantics for the IL 2 Assign Π σ[x := [[e]] σ], s v Π σ, x = e; s v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 13 / 26
14 Semantics for the IL 2 Intermediate Language (IL) Semantics Assign Π σ[x := [[e]] σ], s v Π σ, x = e; s v Cond [[e]] σ = b Π σ, s b v Π σ, if e s 0 s 1 v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 13 / 26
15 Semantics for the IL 2 Intermediate Language (IL) Semantics Assign Π σ[x := [[e]] σ], s v Π σ, x = e; s v Cond [[e]] σ = b Π σ, s b v Π σ, if e s 0 s 1 v Return σ x = v Π σ, return x v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 13 / 26
16 Semantics for the IL 2 Intermediate Language (IL) Semantics Assign Π σ[x := [[e]] σ], s v Π σ, x = e; s v Cond [[e]] σ = b Π σ, s b v Π σ, if e s 0 s 1 v Return σ x = v Π σ, return x v Goto f x = s [x i := σ y], s i v f x = s σ, goto f i y v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 13 / 26
17 Equivalence Contextual Equivalence (Morris [5]) Two programs are contextually equivalent if, whenever they are each inserted into a hole in a larger program of integer type, the resulting programs either both converge or both diverge. [3] C ::= [] x = e; C if 1 e C s if 2 e s C C v, Π, C[s] v, C[s ] v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 14 / 26
18 Equivalence Statement Equivalence Π s s σ v, Π σ, s v σ, s v Congruence Π s s Π C[s] C[s ] Completeness C v, Π, C[s] v, C[s ] v Π s s Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 15 / 26
19 Program Equivalence Equivalence Π f g Π goto f x goto g x Extend Π s s g fresh Π, g x = t s s Extract σ, Π g σ, goto g x v Π σ, goto g x v where Π g denotes the set equation names possibly reachable from g. Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 16 / 26
20 Equivalence Example f x = y = x; return y is equivalent to f x = return x Extend Π s s g fresh Π, g x = t s s Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 17 / 26
21 Equivalence Example f x = y = x; return y is equivalent to f x = return x Extend Π s s g fresh Π, g x = t s s Π := f x = y = x; return y g x = return x Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 17 / 26
22 Equivalence Example f x = y = x; return y is equivalent to f x = return x Extend Π s s g fresh Π, g x = t s s Π := f x = y = x; return y g x = return x f x = s s i s j f x = s goto f i x goto f j x Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 17 / 26
23 Equivalence Example f x = y = x; return y is equivalent to f x = return x Extend Π s s g fresh Π, g x = t s s Π := f x = y = x; return y g x = return x f x = s s i s j f x = s goto f i x goto f j x y = x; return y return x Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 17 / 26
24 Equivalence Example f x = y = x; return y is equivalent to f x = return x Extend Π s s g fresh Π, g x = t s s Π := f x = y = x; return y g x = return x f x = s s i s j f x = s goto f i x goto f j x y = x; return y return x y = x; return y return x Assumption Π y = x; return y return x Extend Π goto f x goto g x Lemma Π f g Def. Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 17 / 26
25 Transformation SSA Construction How to translate from an imperative language to IL? Appel/Kelsey embedding [4] Any SSA program can be syntactically translated into an equivalent continuation passing style program Via Appel/Kelsey embedding, if in SSA form How can we investigate the SSA construction in our setting? Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 18 / 26
26 Imperative Semantics Transformation Imperative Semantics Goto f x = s σ[x i := σ y], s i v f x = s σ, goto f i y v Subset Π σ, s v Π σ, s v Counter-example for Superset property: f x = return y [y := 1], goto f y 1 f x = return y [y := 1], goto f y 1 Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 19 / 26
27 Transformation Imperative Semantics Imperative and Functional Semantics Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 20 / 26
28 Transformation Imperative Semantics Imperative and Functional Semantics s v h t v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 20 / 26
29 Transformation Imperative Semantics Imperative and Functional Semantics s v h t v essentially h is an SSA construction algorithm Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 20 / 26
30 Conclusion Conclusion IMP s v h t v o t v M h : SSA construction algorithm o : optimizing program transformation Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 21 / 26
31 Conclusion Thank you! Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 22 / 26
32 References [1] Bowen Alpern, Mark N. Wegman, and F. Kenneth Zadeck. Detecting Equality of Variables in Programs. In: POPL. 1988, pp [2] Ron Cytron et al. An Efficient Method of Computing Static Single Assignment Form. In: POPL. 1989, pp [3] Andrew D. Gordon. A Tutorial on Co-induction and Functional Programming. In: Glasgow Functional Programming Workshop. Springer, 1994, pp [4] Richard A. Kelsey. A correspondence between continuation passing style and static single assignment form. In: SIGPLAN Not. 30 (3 Mar. 1995), pp issn: [5] J.H. Morris. Lambda-calculus models of programming languages. PhD Thesis. MIT, [6] Barry K. Rosen, Mark N. Wegman, and F. Kenneth Zadeck. Global Value Numbers and Redundant Computations. In: POPL. 1988, pp Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 23 / 26
33 Example Appendix Program in SSA form Program 1 // n i n p u t 2 e n t r y : i = 1 ; 3 l o o p : i f n = 0 then 4 r e t u r n i 5 e l s e 6 i = n i ; 7 n = n 1 ; 8 goto l o o p 1 // n i n p u t 2 e n t r y = 3 i = 1 ; 4 goto l o o p ( ) 5 6 l o o p = 7 i f n = 0 then 8 r e t u r n i 9 e l s e 10 i = n i ; 11 n = n 1 ; 12 goto l o o p ( ) Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 24 / 26
34 Appendix Conjecture Conjecture η, f x = s σ, t Goto η, f x = s η[x n := σ y], s n v η, f x = s σ, goto f n y v Goto f x = s σ[x i := σ y], s i v f x = s σ, goto f i y v Conjecture For all σ, s, Π in SSA form, σ, Π σ, s v σ, Π σ, s v Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 25 / 26
35 Appendix Conjecture Example Goal: f x = y = x; return y is equivalent to f x = return x. Extract σ, Π g σ, goto g x v Π σ, goto g x v Π := f x = y = x; return y g x = return x By Extract and Def., we get for all σ, g x = return x σ, goto g x v Π σ, goto g x v Π σ, goto f x v f x = y = x; return y σ, goto f x v Extract Π f g Extract Sigurd Schneider (UdS) Semantics of an IL for PT 11/11/11 26 / 26
Brief Notes on the Category Theoretic Semantics of Simply Typed Lambda Calculus
University of Cambridge 2017 MPhil ACS / CST Part III Category Theory and Logic (L108) Brief Notes on the Category Theoretic Semantics of Simply Typed Lambda Calculus Andrew Pitts Notation: comma-separated
More informationLecture 14: Basic Fixpoint Theorems (cont.)
Lecture 14: Basic Fixpoint Theorems (cont) Predicate Transformers Monotonicity and Continuity Existence of Fixpoints Computing Fixpoints Fixpoint Characterization of CTL Operators 1 2 E M Clarke and E
More informationCS792 Notes Henkin Models, Soundness and Completeness
CS792 Notes Henkin Models, Soundness and Completeness Arranged by Alexandra Stefan March 24, 2005 These notes are a summary of chapters 4.5.1-4.5.5 from [1]. 1 Review indexed family of sets: A s, where
More informationTableau-based Decision Procedures for Hybrid Logic
Tableau-based Decision Procedures for Hybrid Logic Gert Smolka Saarland University Joint work with Mark Kaminski HyLo 2010 Edinburgh, July 10, 2010 Gert Smolka (Saarland University) Decision Procedures
More informationHarvard School of Engineering and Applied Sciences CS 152: Programming Languages
Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 3 Tuesday, January 30, 2018 1 Inductive sets Induction is an important concept in the theory of programming language.
More informationHarvard School of Engineering and Applied Sciences CS 152: Programming Languages
Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 2 Thursday, January 30, 2014 1 Expressing Program Properties Now that we have defined our small-step operational
More informationProof Techniques for Operational Semantics
#1 Proof Techniques for Operational Semantics #2 Small-Step Contextual Semantics In small-step contextual semantics, derivations are not tree-structured A contextual semantics derivation is a sequence
More informationSemantic Array Dataflow Analysis
Semantic Array Dataflow Analysis Paul Iannetta UCBL 1, CNRS, ENS de Lyon, Inria, LIP, F-69342, LYON Cedex 07, France Laure Gonnord UCBL 1, CNRS, ENS de Lyon, Inria, LIP, F-69342, LYON Cedex 07, France
More informationA Translation of Intersection and Union Types
A Translation of Intersection and Union Types for the λ µ-calculus Kentaro Kikuchi RIEC, Tohoku University kentaro@nue.riec.tohoku.ac.jp Takafumi Sakurai Department of Mathematics and Informatics, Chiba
More informationMatching of Meta-Expressions with Recursive Bindings
Matching of Meta-Expressions with Recursive Bindings David Sabel Goethe-University Frankfurt am Main, Germany UNIF 2017, Oxford, UK Research supported by the Deutsche Forschungsgemeinschaft (DFG) under
More informationGödel algebras free over finite distributive lattices
TANCL, Oxford, August 4-9, 2007 1 Gödel algebras free over finite distributive lattices Stefano Aguzzoli Brunella Gerla Vincenzo Marra D.S.I. D.I.COM. D.I.C.O. University of Milano University of Insubria
More informationHW 1 Reminder. Principles of Programming Languages. Lets try another proof. Induction. Induction on Derivations. CSE 230: Winter 2007
CSE 230: Winter 2007 Principles of Programming Languages Lecture 4: Induction, Small-Step Semantics HW 1 Reminder Due next Tue Instructions about turning in code to follow Send me mail if you have issues
More informationTABLEAU-BASED DECISION PROCEDURES FOR HYBRID LOGIC
TABLEAU-BASED DECISION PROCEDURES FOR HYBRID LOGIC THOMAS BOLANDER AND TORBEN BRAÜNER Abstract. Hybrid logics are a principled generalization of both modal logics and description logics. It is well-known
More informationHarvard School of Engineering and Applied Sciences CS 152: Programming Languages
Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 3 Tuesday, February 2, 2016 1 Inductive proofs, continued Last lecture we considered inductively defined sets, and
More informationOutline Introduction Game Representations Reductions Solution Concepts. Game Theory. Enrico Franchi. May 19, 2010
May 19, 2010 1 Introduction Scope of Agent preferences Utility Functions 2 Game Representations Example: Game-1 Extended Form Strategic Form Equivalences 3 Reductions Best Response Domination 4 Solution
More informationCIS 500 Software Foundations Fall October. CIS 500, 6 October 1
CIS 500 Software Foundations Fall 2004 6 October CIS 500, 6 October 1 Midterm 1 is next Wednesday Today s lecture will not be covered by the midterm. Next Monday, review class. Old exams and review questions
More informationEssays on Some Combinatorial Optimization Problems with Interval Data
Essays on Some Combinatorial Optimization Problems with Interval Data a thesis submitted to the department of industrial engineering and the institute of engineering and sciences of bilkent university
More informationTyped Lambda Calculi Lecture Notes
Typed Lambda Calculi Lecture Notes Gert Smolka Saarland University December 4, 2015 1 Simply Typed Lambda Calculus (STLC) STLC is a simply typed version of λβ. The ability to express data types and recursion
More informationUnary PCF is Decidable
Unary PCF is Decidable Ralph Loader Merton College, Oxford November 1995, revised October 1996 and September 1997. Abstract We show that unary PCF, a very small fragment of Plotkin s PCF [?], has a decidable
More informationIEOR E4004: Introduction to OR: Deterministic Models
IEOR E4004: Introduction to OR: Deterministic Models 1 Dynamic Programming Following is a summary of the problems we discussed in class. (We do not include the discussion on the container problem or the
More informationLecture 10: The knapsack problem
Optimization Methods in Finance (EPFL, Fall 2010) Lecture 10: The knapsack problem 24.11.2010 Lecturer: Prof. Friedrich Eisenbrand Scribe: Anu Harjula The knapsack problem The Knapsack problem is a problem
More informationLevin Reduction and Parsimonious Reductions
Levin Reduction and Parsimonious Reductions The reduction R in Cook s theorem (p. 266) is such that Each satisfying truth assignment for circuit R(x) corresponds to an accepting computation path for M(x).
More informationSecurity-aware Program Transformations
Security-aware Program Transformations Massimo Bartoletti, Pierpaolo Degano, Gian Luigi Ferrari Dipartimento di Informatica, Università di Pisa ICTCS 03 p.1 Stack Inspection (1) access control mechanism
More informationAUTOSUBST: Automation for de Bruijn Substitutions
AUTOSUBST: Automation for de Bruijn Substitutions https://www.ps.uni-saarland.de/autosubst Steven Schäfer Tobias Tebbi Gert Smolka Department of Computer Science Saarland University, Germany August 13,
More informationCut-free sequent calculi for algebras with adjoint modalities
Cut-free sequent calculi for algebras with adjoint modalities Roy Dyckhoff (University of St Andrews) and Mehrnoosh Sadrzadeh (Universities of Oxford & Southampton) TANCL Conference, Oxford, 8 August 2007
More informationAnother Variant of 3sat
Another Variant of 3sat Proposition 32 3sat is NP-complete for expressions in which each variable is restricted to appear at most three times, and each literal at most twice. (3sat here requires only that
More informationSemantics and Verification of Software
Semantics and Verification of Software Thomas Noll Software Modeling and Verification Group RWTH Aachen University http://moves.rwth-aachen.de/teaching/ws-1718/sv-sw/ Recap: CCPOs and Continuous Functions
More informationÉcole normale supérieure, MPRI, M2 Year 2007/2008. Course 2-6 Abstract interpretation: application to verification and static analysis P.
École normale supérieure, MPRI, M2 Year 2007/2008 Course 2-6 Abstract interpretation: application to verification and static analysis P. Cousot Questions and answers of the partial exam of Friday November
More informationDecidability and Recursive Languages
Decidability and Recursive Languages Let L (Σ { }) be a language, i.e., a set of strings of symbols with a finite length. For example, {0, 01, 10, 210, 1010,...}. Let M be a TM such that for any string
More informationOptimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing
Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing Prof. Chuan-Ju Wang Department of Computer Science University of Taipei Joint work with Prof. Ming-Yang Kao March 28, 2014
More informationCS 4110 Programming Languages & Logics. Lecture 2 Introduction to Semantics
CS 4110 Programming Languages & Logics Lecture 2 Introduction to Semantics 29 August 2012 Announcements 2 Wednesday Lecture Moved to Thurston 203 Foster Office Hours Today 11a-12pm in Gates 432 Mota Office
More informationSublinear Time Algorithms Oct 19, Lecture 1
0368.416701 Sublinear Time Algorithms Oct 19, 2009 Lecturer: Ronitt Rubinfeld Lecture 1 Scribe: Daniel Shahaf 1 Sublinear-time algorithms: motivation Twenty years ago, there was practically no investigation
More information}w!"#$%&'()+,-./012345<ya FI MU. A Calculus of Coercive Subtyping. Faculty of Informatics Masaryk University Brno
}w!"#$%&'()+,-./012345
More informationStrong normalisation and the typed lambda calculus
CHAPTER 9 Strong normalisation and the typed lambda calculus In the previous chapter we looked at some reduction rules for intuitionistic natural deduction proofs and we have seen that by applying these
More informationIn this lecture, we will use the semantics of our simple language of arithmetic expressions,
CS 4110 Programming Languages and Logics Lecture #3: Inductive definitions and proofs In this lecture, we will use the semantics of our simple language of arithmetic expressions, e ::= x n e 1 + e 2 e
More informationAnother Variant of 3sat. 3sat. 3sat Is NP-Complete. The Proof (concluded)
3sat k-sat, where k Z +, is the special case of sat. The formula is in CNF and all clauses have exactly k literals (repetition of literals is allowed). For example, (x 1 x 2 x 3 ) (x 1 x 1 x 2 ) (x 1 x
More informationProof Techniques for Operational Semantics
Proof Techniques for Operational Semantics Wei Hu Memorial Lecture I will give a completely optional bonus survey lecture: A Recent History of PL in Context It will discuss what has been hot in various
More informationApproximating the Transitive Closure of a Boolean Affine Relation
Approximating the Transitive Closure of a Boolean Affine Relation Paul Feautrier ENS de Lyon Paul.Feautrier@ens-lyon.fr January 22, 2012 1 / 18 Characterization Frakas Lemma Comparison to the ACI Method
More informationCS 4110 Programming Languages and Logics Lecture #2: Introduction to Semantics. 1 Arithmetic Expressions
CS 4110 Programming Languages and Logics Lecture #2: Introduction to Semantics What is the meaning of a program? When we write a program, we represent it using sequences of characters. But these strings
More informationValuation of Discrete Vanilla Options. Using a Recursive Algorithm. in a Trinomial Tree Setting
Communications in Mathematical Finance, vol.5, no.1, 2016, 43-54 ISSN: 2241-1968 (print), 2241-195X (online) Scienpress Ltd, 2016 Valuation of Discrete Vanilla Options Using a Recursive Algorithm in a
More informationLogic and Artificial Intelligence Lecture 24
Logic and Artificial Intelligence Lecture 24 Eric Pacuit Currently Visiting the Center for Formal Epistemology, CMU Center for Logic and Philosophy of Science Tilburg University ai.stanford.edu/ epacuit
More informationTrinomial Tree. Set up a trinomial approximation to the geometric Brownian motion ds/s = r dt + σ dw. a
Trinomial Tree Set up a trinomial approximation to the geometric Brownian motion ds/s = r dt + σ dw. a The three stock prices at time t are S, Su, and Sd, where ud = 1. Impose the matching of mean and
More informationOperational Semantics
University of Science and Technology of China (USTC) 07/19/2011 Transition Semantics Program configurations: γ Γ def = Commands Σ Transitions between configurations: Γ ˆΓ where ˆΓ def = Γ {abort} Σ The
More informationCompliance Preorders for Web Services
Compliance Preorders for Web Services Michele Bugliesi, Damiano Macedonio, Luca Pino, and Sabina Rossi Dipartimento di Informatica, Università Ca Foscari Venezia {michele,mace,lpino,srossi}@dsi.unive.it
More informationFrom Concurrent Programs to Simulating Sequential Programs: Correctness of a Transformation
From Concurrent s to Simulating Sequential s: Correctness of a Transformation VPT 2017 Allan Blanchard, Frédéric Loulergue, Nikolai Kosmatov April 29 th, 2017 Table of Contents 1 From Concurrent s to Simulating
More informationValue of Flexibility in Managing R&D Projects Revisited
Value of Flexibility in Managing R&D Projects Revisited Leonardo P. Santiago & Pirooz Vakili November 2004 Abstract In this paper we consider the question of whether an increase in uncertainty increases
More informationMaximizing the Spread of Influence through a Social Network Problem/Motivation: Suppose we want to market a product or promote an idea or behavior in
Maximizing the Spread of Influence through a Social Network Problem/Motivation: Suppose we want to market a product or promote an idea or behavior in a society. In order to do so, we can target individuals,
More informationRISK-NEUTRAL VALUATION AND STATE SPACE FRAMEWORK. JEL Codes: C51, C61, C63, and G13
RISK-NEUTRAL VALUATION AND STATE SPACE FRAMEWORK JEL Codes: C51, C61, C63, and G13 Dr. Ramaprasad Bhar School of Banking and Finance The University of New South Wales Sydney 2052, AUSTRALIA Fax. +61 2
More informationExpTime Tableau Decision Procedures for Regular Grammar Logics with Converse
ExpTime Tableau Decision Procedures for Regular Grammar Logics with Converse Linh Anh Nguyen 1 and Andrzej Sza las 1,2 1 Institute of Informatics, University of Warsaw Banacha 2, 02-097 Warsaw, Poland
More informationHandout 4: Deterministic Systems and the Shortest Path Problem
SEEM 3470: Dynamic Optimization and Applications 2013 14 Second Term Handout 4: Deterministic Systems and the Shortest Path Problem Instructor: Shiqian Ma January 27, 2014 Suggested Reading: Bertsekas
More informationOperational Semantics
University of Science and Technology of China (USTC) 10/24/2011 Transition Semantics Program configurations: γ Γ def = Commands Σ Transitions between configurations: Γ ˆΓ where ˆΓ def = Γ {abort} Σ The
More informationA Property Equivalent to n-permutability for Infinite Groups
Journal of Algebra 221, 570 578 (1999) Article ID jabr.1999.7996, available online at http://www.idealibrary.com on A Property Equivalent to n-permutability for Infinite Groups Alireza Abdollahi* and Aliakbar
More informationA Semantic Framework for Program Debugging
A Semantic Framework for Program Debugging State Key Laboratory of Software Development Environment Beihang University July 3, 2013 Outline 1 Introduction 2 The Key Points 3 A Structural Operational Semantics
More informationTheoretical Frameworks for Routing Problems in the Internet. Menglin Liu
Theoretical Frameworks for Routing Problems in the Internet Menglin Liu 1 Outline Background BGP Theoretical frameworks Path algebra Routing algebra Stable path problem Policy structure and routing structure
More informationMatching of Meta-Expressions with Recursive Bindings
David Goethe-University, Frankfurt am Main, Germany sabel@ki.informatik.uni-frankfurt.de 1 Motivation and Problem Description We focus automated reasoning on program calculi with reduction semantics (see
More informationImperative Self-Adjusting Computation
Imperative Self-Adjusting Computation Umut A. Acar Amal Ahmed Matthias Blume Toyota Technological Institute at Chicago {umut,amal,blume}@tti-c.org Abstract Self-adjusting computation enables writing programs
More informationHow not to prove Strong Normalisation
How not to prove Strong Normalisation based on joint work with James Chapman School of Computer Science and IT University of Nottingham April 11, 2007 Long time ago... 1993 A formalization of the strong
More informationApplication of Bayesian Network to stock price prediction
ORIGINAL RESEARCH Application of Bayesian Network to stock price prediction Eisuke Kita, Yi Zuo, Masaaki Harada, Takao Mizuno Graduate School of Information Science, Nagoya University, Japan Correspondence:
More informationISBN ISSN
UNIVERSITY OF OSLO Department of Informatics A Logic-based Approach to Decision Making (extended version) Research Report 441 Magdalena Ivanovska Martin Giese ISBN 82-7368-373-7 ISSN 0806-3036 A Logic-based
More informationLecture 2: The Simple Story of 2-SAT
0510-7410: Topics in Algorithms - Random Satisfiability March 04, 2014 Lecture 2: The Simple Story of 2-SAT Lecturer: Benny Applebaum Scribe(s): Mor Baruch 1 Lecture Outline In this talk we will show that
More informationTel Aviv University. and. Universitat des Saarlandes
Compiling Simple Assignments Mooly Sagiv el Aviv University sagiv@math.tau.ac.il and Reinhard Wilhelm Universitat des Saarlandes wilhelm@cs.uni-sb.de April 21, 1997 { Wilhelm/Maurer: Compiler Design {
More informationSolvency Tests for Pension Funds - An International Analysis with a Standard Model of a Solvency Test for Swiss Pension Funds
Solvency Tests for Pension Funds - An International Analysis with a Standard Model of a Solvency Test for Swiss Pension Funds DISSERTATION of the University of St. Gallen, Graduate School of Business Administration,
More informationSemantics with Applications 2b. Structural Operational Semantics
Semantics with Applications 2b. Structural Operational Semantics Hanne Riis Nielson, Flemming Nielson (thanks to Henrik Pilegaard) [SwA] Hanne Riis Nielson, Flemming Nielson Semantics with Applications:
More informationL 3 : A Linear Language with Locations
Fundamenta Informaticae XXI (2001) 1001 1053 1001 IOS Press L 3 : A Linear Language with Locations Amal Ahmed, Matthew Fluet Toyota Technological Institute at Chicago Chicago, IL 60637 amal@tti-c.org;
More informationCartesian Product of Two S-Valued Graphs
Global Journal of Mathematical Sciences: Theory and Practical. ISSN 0974-3200 Volume 9, Number 3 (2017), pp. 347-355 International Research Publication House http://www.irphouse.com Cartesian Product of
More informationBidding Languages. Noam Nissan. October 18, Shahram Esmaeilsabzali. Presenter:
Bidding Languages Noam Nissan October 18, 2004 Presenter: Shahram Esmaeilsabzali Outline 1 Outline The Problem 1 Outline The Problem Some Bidding Languages(OR, XOR, and etc) 1 Outline The Problem Some
More informationOn Isomorphism of Dependent Products in a Typed Logical Framework
On Isomorphism of Dependent Products in a Typed Logical Framework Sergei Soloviev 1,2 1 IRIT, University of Toulouse 118 route de Narbonne, 31062 Toulouse, France soloviev@irit.fr 2 associated researcher
More informationIntroduction An example Cut elimination. Deduction Modulo. Olivier Hermant. Tuesday, December 12, Deduction Modulo
Tuesday, December 12, 2006 Deduction and Computation Sequent calculus The cut rule The rewrite rules Sequent calculus The cut rule The rewrite rules Deduction system: Gentzen s sequent calculus Γ, P P
More informationmonotone circuit value
monotone circuit value A monotone boolean circuit s output cannot change from true to false when one input changes from false to true. Monotone boolean circuits are hence less expressive than general circuits.
More informationGeneralising the weak compactness of ω
Generalising the weak compactness of ω Andrew Brooke-Taylor Generalised Baire Spaces Masterclass Royal Netherlands Academy of Arts and Sciences 22 August 2018 Andrew Brooke-Taylor Generalising the weak
More informationHalf baked talk: Invariant logic
Half baked talk: Invariant logic Quentin Carbonneaux November 6, 2015 1 / 21 Motivation Global invariants often show up: 1. resource safety (mem 0) 2. low-level code analysis (machine not crashed) 3. domain
More informationarxiv: v1 [math.co] 31 Mar 2009
A BIJECTION BETWEEN WELL-LABELLED POSITIVE PATHS AND MATCHINGS OLIVIER BERNARDI, BERTRAND DUPLANTIER, AND PHILIPPE NADEAU arxiv:0903.539v [math.co] 3 Mar 009 Abstract. A well-labelled positive path of
More informationA Formally Verified Interpreter for a Shell-like Programming Language
A Formally Verified Interpreter for a Shell-like Programming Language Claude Marché Nicolas Jeannerod Ralf Treinen VSTTE, July 22, 2017 Nicolas Jeannerod VSTTE 17 July 22, 2017 1 / 36 General goal The
More informationLecture 5: Tuesday, January 27, Peterson s Algorithm satisfies the No Starvation property (Theorem 1)
Com S 611 Spring Semester 2015 Advanced Topics on Distributed and Concurrent Algorithms Lecture 5: Tuesday, January 27, 2015 Instructor: Soma Chaudhuri Scribe: Nik Kinkel 1 Introduction This lecture covers
More informationTechnical Appendix to Asset Prices in a Huggett Economy
Technical Appendix to Asset Prices in a Huggett Economy Per Krusell, Toshihiko Mukoyama, Anthony A. Smith, Jr. October 2010 1 Assets in positive net supply: introduction We consider assets in positive
More informationPrinciples of Program Analysis: Algorithms
Principles of Program Analysis: Algorithms Transparencies based on Chapter 6 of the book: Flemming Nielson, Hanne Riis Nielson and Chris Hankin: Principles of Program Analysis. Springer Verlag 2005. c
More informationTug of War Game. William Gasarch and Nick Sovich and Paul Zimand. October 6, Abstract
Tug of War Game William Gasarch and ick Sovich and Paul Zimand October 6, 2009 To be written later Abstract Introduction Combinatorial games under auction play, introduced by Lazarus, Loeb, Propp, Stromquist,
More informationCopyright 1973, by the author(s). All rights reserved.
Copyright 1973, by the author(s). All rights reserved. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are
More informationDevelopment Separation in Lambda-Calculus
WoLLIC 2005 Preliminary Version Development Separation in Lambda-Calculus Hongwei Xi 1,2 Computer Science Department Boston University Boston, Massachusetts, USA Abstract We present a proof technique in
More informationMonotonicity and Polarity in Natural Logic
1/69 Monotonicity and Polarity in Natural Logic Larry Moss, Indiana University Workshop on Semantics for Textual Inference, July 10, 2011 2/69 Natural Logic from Annie Zaenen & Lauri Kartunnen s Course
More informationScope ambiguities, continuations and strengths
University of Warsaw Fourth Workshop on Natural Language and Computer Science (NLCS) New York City, NY July 10, 2016 1 / 32 Introduction Some teacher gave every student most books (6-way ambiguous) S?
More informationA Dialogue Game for Coalition Structure Generation with Self-Interested Agents
A Dialogue Game for Coalition Structure Generation with Self-Interested Agents Luke RILEY a,1, Katie ATKINSON a and Terry R. PAYNE a a Department of Computer Science, University of Liverpool, UK. 1. Introduction
More informationFull abstraction for multi-language systems ML plus linear types
Full abstraction for multi-language systems ML plus linear types Gabriel Scherer, Amal Ahmed, Max New Northeastern University, Boston May 5, 2017 1 1 Full Abstraction for Multi-Language Systems: Introduction
More informationWORLD CAREERS NETWORK PLC
Interim statement for the six months to 31 January 2017 Chairman's statement Dear Shareholder I am pleased to present the interim accounts of World Careers Network ("WCN") for the half year to 31 January
More informationA Knowledge-Theoretic Approach to Distributed Problem Solving
A Knowledge-Theoretic Approach to Distributed Problem Solving Michael Wooldridge Department of Electronic Engineering, Queen Mary & Westfield College University of London, London E 4NS, United Kingdom
More informationE-companion to Coordinating Inventory Control and Pricing Strategies for Perishable Products
E-companion to Coordinating Inventory Control and Pricing Strategies for Perishable Products Xin Chen International Center of Management Science and Engineering Nanjing University, Nanjing 210093, China,
More informationComputational Finance Least Squares Monte Carlo
Computational Finance Least Squares Monte Carlo School of Mathematics 2019 Monte Carlo and Binomial Methods In the last two lectures we discussed the binomial tree method and convergence problems. One
More informationVoting Cohesions and Collusions via Cooperative Games
University of Bergamo Department of Mathematics, Statistics, Computer Science and Applications Computational methods for financial and economic forecasting and decisions (XXIII Cycle) Voting Cohesions
More informationA NEW NOTION OF TRANSITIVE RELATIVE RETURN RATE AND ITS APPLICATIONS USING STOCHASTIC DIFFERENTIAL EQUATIONS. Burhaneddin İZGİ
A NEW NOTION OF TRANSITIVE RELATIVE RETURN RATE AND ITS APPLICATIONS USING STOCHASTIC DIFFERENTIAL EQUATIONS Burhaneddin İZGİ Department of Mathematics, Istanbul Technical University, Istanbul, Turkey
More informationA Logic-based Approach to Decision Making. Magdalena Ivanovska and Martin Giese
A Logic-based Approach to Decision Making Magdalena Ivanovska and Martin Giese Abstract We propose a novel approach to the well-studied problem of making a finite, ordered sequence of decisions under uncertainty.
More informationA Core Calculus of Dependency
A Core Calculus of Dependency Martín Abadi Systems Research Center Compaq ma@pa.dec.com Anindya Banerjee Stevens Institute of Technology ab@cs.stevens-tech.edu Nevin Heintze Bell Laboratories nch@bell-labs.com
More informationConcurrency Semantics in Continuation-Passing Style The Companion Technical Report
Concurrency Semantics in Continuation-Passing Style The Companion Technical Report Eneia Nicolae Todoran Technical University of Cluj-Napoca Department of Computer Science Baritiu Str. 28, 400027, Cluj-Napoca,
More informationThe Traveling Salesman Problem. Time Complexity under Nondeterminism. A Nondeterministic Algorithm for tsp (d)
The Traveling Salesman Problem We are given n cities 1, 2,..., n and integer distances d ij between any two cities i and j. Assume d ij = d ji for convenience. The traveling salesman problem (tsp) asks
More informationThe Turing Definability of the Relation of Computably Enumerable In. S. Barry Cooper
The Turing Definability of the Relation of Computably Enumerable In S. Barry Cooper Computability Theory Seminar University of Leeds Winter, 1999 2000 1. The big picture Turing definability/invariance
More informationLecture 6. 1 Polynomial-time algorithms for the global min-cut problem
ORIE 633 Network Flows September 20, 2007 Lecturer: David P. Williamson Lecture 6 Scribe: Animashree Anandkumar 1 Polynomial-time algorithms for the global min-cut problem 1.1 The global min-cut problem
More informationOption Pricing Models. c 2013 Prof. Yuh-Dauh Lyuu, National Taiwan University Page 205
Option Pricing Models c 2013 Prof. Yuh-Dauh Lyuu, National Taiwan University Page 205 If the world of sense does not fit mathematics, so much the worse for the world of sense. Bertrand Russell (1872 1970)
More informationHEMI: Hyperedge Majority Influence Maximization
HEMI: Hyperedge Majority Influence Maximization Varun Gangal 1, Balaraman Ravindran 1, and Ramasuri Narayanam 2 1 Department Of Computer Science & Engineering, IIT Madras vgtomahawk@gmail.com, ravi@cse.iitm.ac.in
More informationThe Real Numbers. Here we show one way to explicitly construct the real numbers R. First we need a definition.
The Real Numbers Here we show one way to explicitly construct the real numbers R. First we need a definition. Definitions/Notation: A sequence of rational numbers is a funtion f : N Q. Rather than write
More informationAn Adjusted Trinomial Lattice for Pricing Arithmetic Average Based Asian Option
American Journal of Applied Mathematics 2018; 6(2): 28-33 http://www.sciencepublishinggroup.com/j/ajam doi: 10.11648/j.ajam.20180602.11 ISSN: 2330-0043 (Print); ISSN: 2330-006X (Online) An Adjusted Trinomial
More informationIntra-Option Learning about Temporally Abstract Actions
Intra-Option Learning about Temporally Abstract Actions Richard S. Sutton Department of Computer Science University of Massachusetts Amherst, MA 01003-4610 rich@cs.umass.edu Doina Precup Department of
More information