Design and Implementation of Multi-Context Rewriting Induction. Haruhiko Sato and Masahito Kurihara Hokkaido University, Japan

Size: px
Start display at page:

Download "Design and Implementation of Multi-Context Rewriting Induction. Haruhiko Sato and Masahito Kurihara Hokkaido University, Japan"

Transcription

1 Design and Implementation of Multi-Context Rewriting Induction Haruhiko Sato and Masahito Kurihara Hokkaido University, Japan

2 Outline Inductive Theorem Proving Rewriting Induction Strategic Difficulties in Rewriting Induction Examples Multi-Context Rewriting Induction Experimental Results

3 Inductive theorem proving Mathematical Induction Principle P (0) [P (x) P (x + 1)] = x N. P(x) Well-founded Induction Principle : well-founded order on A [x y P (y)] P (x) = x A. P (x) various properties of programs can be proved by the induction principle

4 Inductive theorems in Programs Program: Term Rewriting System R = +(0,y) y +(s(x), y) s(+(x, y)) len([]) 0 len(x : xs) : xs, ys) x ys) s(0) s(s(0))... [] [x] [x, y]... [] x:[] x :(y : [])... Execution of Program: Rewriting (application of rules) +(s(s(0)), 0) R s(+(s(0), 0)) R s(s(+(0, 0))) R s(s(0)) Property of Program: Inductive Theorem (prop. which holds for any ground-substitution) len(@(xs, ys)) = +(len(xs), len(ys)) resultant term contains no variable

5 Rewriting Induction [Reddy90, Aoto07] Induction principle for programs satisfying termination well-founded induction based on the order: s t s + R t Inference Rules of Rewriting Induction Delete: E {s = s}, H E, H defined on the pair conjectures to be proved E, H inductive hypotheses Simplify: E {s = t}, H E {s = t }, H if t R H t Expand: E {s = t}, H E Expd u (s, t), H {s t} if u B(s), R H {s t} is terminating Theorem E, {} {}, H = E is inductive theorem of R

6 Example: associativity of addition EXPAND R = +(0,y) y +(s(x), y) s(+(x, y)) E = +(+(x, y),z) = +(x, +(y, z)) +(+(x, y),z) = +(x, +(y, z)), {} determine substitutions by unification σ = {x 0}, {x s(x)} choose a +(+(x, y), z) +(+(0,y),z) reduce the +(y, z) basic term instanciated terms to expand +(+(s(x),y),z) +(s(+(x, y)),z) with rules +(y, z) = +(0, +(y, z)), +(+(x, y),z) +(x, +(y, z)) +(s(+(x, y)),z) = +(s(x), +(y, z)) SIMPLIFY R s(+(+(x, y),z)) H s(+(x, +(y, z))) R s(+(x, +(y, z))) +(y, z) = +(y, z) s(+(x, +(y, z))) = s(+(x, +(y, z))) {}, +(+(x, y),z) +(x, +(y, z)) DELETE, +(+(x, y),z) +(x, +(y, z))

7 Problem: How do we apply the inference rules? Standard Strategy 1. apply SIMPLIFY as much as possible 2. apply DELETE as mush as possible 3. apply EXPAND to a conjecture (1) which rewrite rule to be choosed? (2) which direction the conjecture to be oriented for? 4. go back to 1 (3) which basic subterm to be expanded? the way of applying inference rules determines contexts: conjectures to be proved inductive hypotheses choosing appropriate contexts is important to obtain successful proofs

8 Example: appropriate simplification is required ys b([]) [] (x : xs)@ys x :(xs@ys) b(x : xs) b1(x, xs) : b2(x, xs) r([]) [] b1(x, []) x R = r(x : xs) r(xs)@[x] b1(x, y : ys) b1(y, ys) b2(x, []) [] b2(x, y : ys) b(x : b(b2(y, ys))) r(xs) = b(xs) E = b(b(xs)) = xs EXPAND r(xs) = b(xs), {} b(b(xs)) = xs EXPAND b(xs)@[x] = b1(x, xs) :b2(x, xs) r(xs) b(xs), b(b1(x, xs) : b2(x, xs)) = x : xs b(b(xs)) xs (b1(y, ys) : b1(y, ys) : = b2(y, ys))@[x] (b2(y, ys)@[x]) b(b1(x, xs) : b2(x, xs)) = x : xs simplify simplify proof fails (diverge) proof succeeds, r(xs) b(xs) b(b(xs)) xs b1(x, xs) : b2(x, xs) b(xs)@[x]

9 Example: appropriate orientation is required R = f(0) 0 f(s(0)) s(0) f(s(s(x))) f(s(x))+f(x) g(0) s(0), 0 g(s(x)) np(g(x)) np(x, y) x+y, x E = f(s(x)), f(x) = g(x) orient from left to right: diverge f(s(x)), f(x) = g(x) f(s(x))+f(x), f(s(x)) = np(g(x)) (f(s(x))+f(x))+f(s(x)), f(s(x))+f(x) = np(np(g(x))). orient from right to left: succeeds f(s(s(x))), f(s(x)) = np(g(x)) H np(f(s(x)), f(x)) R f(s(x))+f(x), f(s(x)) R f(s(x))+f(x), f(s(x))

10 Example: appropriate expansion is required R = or(x, true) true not(true) false or(x, false) x not(false) true and(x, true) x imply(x, y) or(not(x), y) and(x, false) false le(0, x) true eq(x, y) and(le(x, y), le(y, x)) le(s(x), 0) false le(s(x), s(y)) le(x, y) E = imply(and(eq(x, y), eq(y, z)), eq(x, z)) = true expantion with a specific (leftmost-outermost) strategy causes divergence (x = y) (y = z) = (x = z) (x = y) (y + 1 = z) = (x + 1 = z) (x = y) (y + 2 = z) = (x + 2 = z)... the divergence can be avoided by appropriate choice of expansion position

11 Our Approach: Trying multiple contexts in parallel Traditional Approach Our Approach Simplification Orientation Expansion normalize w.r.t. a specific reduction strategy try a direction (w.r.t. the order given by user) try one of basic subterms calculate all of normal forms try both direction try all of basic subterms

12 Example: trying multiple contexts in orientation a process p encounter n nondeterministic choices fork the process p into n different processes, and assign them with the choices Example: orientation process p r(xs) = b(xs) b(b(xs)) = xs, {} orient from left to right orient from right to left process p1 r(xs)@[x] = b(x : xs) b(b(xs)) = xs r(xs) b(xs), process p2 r(x : xs) = b1(x, xs) :b2(x, xs) b(b(xs)) = xs b(xs) r(xs),

13 Representation of Multiple Processes use node-representation in multi-completion [Kurihara et al. 1999, Sato et al. 2008] process p1 = b(x : xs) b(b(xs)) = xs r(xs) b(xs), process p2 r(x : xs) = b1(x, xs) :b2(x, xs) b(b(xs)) = xs b(xs) r(xs), representation by a set of nodes s, t, H 1,H 2,E ordered pair of terms s, t set of processes which keeps: s t t s s = t r(xs)@[x], b(x : xs), {}, {}, {p1} b(b(xs)), xs, {}, {}, {p1,p2} r(xs), b(xs), {p1}, {p2}, {} r(x : xs), b1(x, xs) :b2(x, xs) {}, {}, {p2} can share common inferences among processes efficient to fork/remove processes {..., p,... } {...,p1,p2,..., pn,... } low memory consumption

14 Multi-Context Rewriting Induction (MRI) (a part of) Inference Rules { of MRI } defined on a set of nodes, and simulates a lot of inferences in a single operation Simplify-R: Simplify-H: N { s { : t, H 1,H 2,E } s : t, H1,H N 2, s : t,,,e if E and s R s { } } { processes keeps s = t N { s { : t, H 1,H 2,E } } processes which s : t, H1,H N 2,E\ H can infer s : t,,,e H s {l r} s if E H, l : r, H,...,... N, and s {l r} s, processes keeps l r

15 Experimentation environment: Intel Xeon 2.13GHz, 1GB system memory Problem Time (sec) # of processes Estimated Time (sec) Reduced Time (sec) list reverse fibonacci transitivity of equality our node-based approach is effective for difficult problems which requires large number of processes

16 Conclusion and Future work Conclusion We have shown some examples in which the appropriate choice of contexts is important to obtain successful results in RI We have proposed a new inference system which proves inductive theorems efficiently and automatically Experimentally, we have shown that our system can prove some difficult problems in reasonable time Future Work Strategies for giving precedence to important conjectures More efficient termination checking for incremental systems

Ground Confluence Proof with Pattern Complementation

Ground Confluence Proof with Pattern Complementation Ground Confluence Proof with Pattern Complementation IWC 2016, obergurgle Takahito Aoto (Niigata University) Yoshihito Toyama (Tohoku University) Outline: 1. Proving Ground Confluence by Rewriting Induction

More information

Jacques Fleuriot. Automated Reasoning Rewrite Rules

Jacques Fleuriot. Automated Reasoning Rewrite Rules Automated Reasoning Rewrite Rules Jacques Fleuriot Lecture 8, page 1 Term Rewriting Rewriting is a technique for replacing terms in an expression with equivalent terms useful for simplification, e.g. given

More information

Context-Free languages (part II)

Context-Free languages (part II) Context-Free languages (part II) Prof. Dan A. Simovici UMB 1 / 31 Outline 1 Chomsky Normal Form 2 Derivation Trees 2 / 31 Chomsky Normal Form Definition A context-free grammar G = (A N, A T, S, P) is in

More information

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

25. Chain Rule. Now, f is a function of t only. Expand by multiplication: 25. Chain Rule The Chain Rule is present in all differentiation. If z = f(x, y) represents a two-variable function, then it is plausible to consider the cases when x and y may be functions of other variable(s).

More information

Section IV.23. Factorizations of Polynomials over a Field

Section IV.23. Factorizations of Polynomials over a Field IV.23 Factorizations of Polynomials 1 Section IV.23. Factorizations of Polynomials over a Field Note. Our experience with classical algebra tells us that finding the zeros of a polynomial is equivalent

More information

Ch 6.2: Solution of Initial Value Problems

Ch 6.2: Solution of Initial Value Problems Ch 6.2: Solution of Initial Value Problems! The Laplace transform is named for the French mathematician Laplace, who studied this transform in 1782.! The techniques described in this chapter were developed

More information

IAENG International Journal of Computer Science, 42:3, IJCS_42_3_13

IAENG International Journal of Computer Science, 42:3, IJCS_42_3_13 Lazy Evaluation Schemes for Efficient Implementation of Multi-Context Algebraic Completion System ChengCheng Ji, Haruhiko Sato and Masahito Kurihara Abstract Lazy evaluation is a computational scheme which

More information

Chapter 2. Unification. Foundations of Logic Programming

Chapter 2. Unification. Foundations of Logic Programming Chapter 2 1 Outline Understanding the need for unification Defining alphabets, terms, and substitutions Introducing the Martelli-Montanari Algorithm for unification Proving correctness of the algorithm

More information

Solutions to Exercises, Section 2.5

Solutions to Exercises, Section 2.5 Instructor s Solutions Manual, Section 2.5 Exercise 1 Solutions to Exercises, Section 2.5 For Exercises 1 4, write the domain of the given function r as a union of intervals. 1. r(x) 5x3 12x 2 + 13 x 2

More information

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs. Fermat s last theorem CS 220: Discrete Structures and their Applications Theorem: For every integer n > 2 there is no solution to the equation a n + b n = c n where a,b, and c are positive integers Proofs

More information

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

MAT 243 Test 1 SOLUTIONS, FORM A

MAT 243 Test 1 SOLUTIONS, FORM A t MAT 243 Test 1 SOLUTIONS, FORM A 1. [10 points] Rewrite the statement below in positive form (i.e., so that all negation symbols immediately precede a predicate). ( x IR)( y IR)((T (x, y) Q(x, y)) R(x,

More information

Automated Reasoning Lecture 17: Inductive Proof (in Isabelle)

Automated Reasoning Lecture 17: Inductive Proof (in Isabelle) Automated Reasoning Lecture 17: Inductive Proof (in Isabelle) Jacques Fleuriot jdf@inf.ed.ac.uk Recap Previously: Unification and Rewriting This time: Proof by Induction (in Isabelle) Proof by Mathematical

More information

Frank-Wolfe Method. Ryan Tibshirani Convex Optimization

Frank-Wolfe Method. Ryan Tibshirani Convex Optimization Frank-Wolfe Method Ryan Tibshirani Convex Optimization 10-725 Last time: ADMM For the problem min x,z f(x) + g(z) subject to Ax + Bz = c we form augmented Lagrangian (scaled form): L ρ (x, z, w) = f(x)

More information

Bachelor/Master Exam Version V3B

Bachelor/Master Exam Version V3B Prof aadr Jürgen Giesl Cornelius Aschermann, Jera Hensel Bachelor/Master Exam Version V3B First Name: Last Name: Immatriculation Number: Course of Studies (please mark exactly one): Informatik Bachelor

More information

MATH 431 PART 2: POLYNOMIAL RINGS AND FACTORIZATION

MATH 431 PART 2: POLYNOMIAL RINGS AND FACTORIZATION MATH 431 PART 2: POLYNOMIAL RINGS AND FACTORIZATION 1. Polynomial rings (review) Definition 1. A polynomial f(x) with coefficients in a ring R is n f(x) = a i x i = a 0 + a 1 x + a 2 x 2 + + a n x n i=0

More information

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable.

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable. 4.4 Critical Pairs Showing local confluence (Sketch): Problem: If t 1 E t 0 E t 2, does there exist a term s such that t 1 E s E t 2? If the two rewrite steps happen in different subtrees (disjoint redexes):

More information

Finding positive instances of parametric polynomials

Finding positive instances of parametric polynomials Finding positive instances of parametric polynomials Salvador Lucas Departamento de Sistemas Informáticos y Computación (DSIC) Universidad Politécnica de Valencia, Spain 1 Motivation: automatic proofs

More information

Grammars (part II) Prof. Dan A. Simovici UMB

Grammars (part II) Prof. Dan A. Simovici UMB rammars (part II) Prof. Dan A. Simovici UMB 1 / 1 Outline 2 / 1 Length-Increasing vs. Context-Sensitive rammars Theorem The class L 1 equals the class of length-increasing languages. 3 / 1 Length-Increasing

More information

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Masahiko Sakai,Kouji Okamoto,Toshiki Sakabe Graduate School of Information Science, Nagoya University, Furo-cho, Chikusa-ku,

More information

Chapter 5: Quadratic Functions

Chapter 5: Quadratic Functions Section 5.1: Square Root Property #1-20: Solve the equations using the square root property. 1) x 2 = 16 2) y 2 = 25 3) b 2 = 49 4) a 2 = 16 5) m 2 = 98 6) d 2 = 24 7) x 2 = 75 8) x 2 = 54 9) (x 3) 2 =

More information

Summer Form A1. ,andreduce completely. Whatis. x + y 12 ) e) 1 2

Summer Form A1. ,andreduce completely. Whatis. x + y 12 ) e) 1 2 Texas A&M University Summer 2006 Mathematics Placement Exam Form A1 1. Consider the line passing through the points (5, 10) and (8, 19). Which of the following points also lies on the line? a) (4, 9) b)

More information

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs Overview Lecture 1: Introduction, Abstract Rewriting Lecture 2: Term Rewriting Lecture 3: Combinatory Logic Lecture 4: Termination Lecture 5: Matching, Unification Lecture 6: Equational Reasoning, Completion

More information

21-256: Partial differentiation

21-256: Partial differentiation 21-256: Partial differentiation Clive Newstead, Thursday 5th June 2014 This is a summary of the important results about partial derivatives and the chain rule that you should know. Partial derivatives

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Mathematical Induction Fall 2014 1 / 21 Outline 1 Mathematical Induction 2 Strong Mathematical

More information

In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and

In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and shows how a program can sometimes be systematically constructed

More information

Specialization of Recursive Predicates from Positive Examples Only

Specialization of Recursive Predicates from Positive Examples Only Journal of Computer Science 6 (6): 641-647, 1 ISSN 1549-3636 1 Science Publications Specialization of Recursive Predicates from Positive Examples Only Moussa Demba Department of Computer and Information

More information

Notes on Inductive Sets and Induction

Notes on Inductive Sets and Induction Notes on Inductive Sets and Induction Finite Automata Theory and Formal Languages TMV027/DIT21 Ana Bove, March 15th 2018 Contents 1 Induction over the Natural Numbers 2 1.1 Mathematical (Simple) Induction........................

More information

Chapter 3. Second Order Linear PDEs

Chapter 3. Second Order Linear PDEs Chapter 3. Second Order Linear PDEs 3.1 Introduction The general class of second order linear PDEs are of the form: ax, y)u xx + bx, y)u xy + cx, y)u yy + dx, y)u x + ex, y)u y + f x, y)u = gx, y). 3.1)

More information

Solutions to Exercises, Section 2.4

Solutions to Exercises, Section 2.4 Instructor s Solutions Manual, Section 2.4 Exercise 1 Solutions to Exercises, Section 2.4 Suppose p(x) = x 2 + 5x + 2, q(x) = 2x 3 3x + 1, s(x) = 4x 3 2. In Exercises 1 18, write the indicated expression

More information

Part IA. Numbers and Sets. Year

Part IA. Numbers and Sets. Year Part IA Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 2017 19 Paper 4, Section I 1D (a) Show that for all positive integers z and n, either z 2n 0 (mod 3) or

More information

z x = f x (x, y, a, b), z y = f y (x, y, a, b). F(x, y, z, z x, z y ) = 0. This is a PDE for the unknown function of two independent variables.

z x = f x (x, y, a, b), z y = f y (x, y, a, b). F(x, y, z, z x, z y ) = 0. This is a PDE for the unknown function of two independent variables. Chapter 2 First order PDE 2.1 How and Why First order PDE appear? 2.1.1 Physical origins Conservation laws form one of the two fundamental parts of any mathematical model of Continuum Mechanics. These

More information

Analyse et Conception Formelle. Lesson 4. Proofs with a proof assistant

Analyse et Conception Formelle. Lesson 4. Proofs with a proof assistant Analyse et Conception Formelle Lesson 4 Proofs with a proof assistant T. Genet (ISTIC/IRISA) ACF-4 1 / 26 Prove logic formulas... to prove programs fun nth:: "nat => a list => a" where "nth 0 (x#_)=x"

More information

Peano Arithmetic. by replacing the schematic letter R with a formula, then prefixing universal quantifiers to bind

Peano Arithmetic. by replacing the schematic letter R with a formula, then prefixing universal quantifiers to bind Peano Arithmetic Peano Arithmetic 1 or PA is the system we get from Robinson s Arithmetic by adding the induction axiom schema: ((R(0) v (œx)(r(x) 6 R(sx))) 6 (œx)r(x)). What this means is that any sentence

More information

MTH310 EXAM 2 REVIEW

MTH310 EXAM 2 REVIEW MTH310 EXAM 2 REVIEW SA LI 4.1 Polynomial Arithmetic and the Division Algorithm A. Polynomial Arithmetic *Polynomial Rings If R is a ring, then there exists a ring T containing an element x that is not

More information

Computing Derivatives With Formulas Some More (pages 14-15), Solutions

Computing Derivatives With Formulas Some More (pages 14-15), Solutions Computing Derivatives With Formulas Some More pages 14-15), Solutions This worksheet focuses on computing derivatives using the shortcut formulas, including the power rule, product rule, quotient rule,

More information

Readings: Conjecture. Theorem. Rosen Section 1.5

Readings: Conjecture. Theorem. Rosen Section 1.5 Readings: Conjecture Theorem Lemma Lemma Step 1 Step 2 Step 3 : Step n-1 Step n a rule of inference an axiom a rule of inference Rosen Section 1.5 Provide justification of the steps used to show that a

More information

PUTNAM TRAINING PROBLEMS

PUTNAM TRAINING PROBLEMS PUTNAM TRAINING PROBLEMS (Last updated: December 3, 2003) Remark This is a list of Math problems for the NU Putnam team to be discussed during the training sessions Miguel A Lerma 1 Bag of candies In a

More information

Arithmetic Operations. The real numbers have the following properties: In particular, putting a 1 in the Distributive Law, we get

Arithmetic Operations. The real numbers have the following properties: In particular, putting a 1 in the Distributive Law, we get MCA AP Calculus AB Summer Assignment The following packet is a review of many of the skills needed as we begin the study of Calculus. There two major sections to this review. Pages 2-9 are review examples

More information

Tropical Polynomials

Tropical Polynomials 1 Tropical Arithmetic Tropical Polynomials Los Angeles Math Circle, May 15, 2016 Bryant Mathews, Azusa Pacific University In tropical arithmetic, we define new addition and multiplication operations on

More information

Convergence of sequences and series

Convergence of sequences and series Convergence of sequences and series A sequence f is a map from N the positive integers to a set. We often write the map outputs as f n rather than f(n). Often we just list the outputs in order and leave

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Part IX. Factorization

Part IX. Factorization IX.45. Unique Factorization Domains 1 Part IX. Factorization Section IX.45. Unique Factorization Domains Note. In this section we return to integral domains and concern ourselves with factoring (with respect

More information

The Inner Product and Conjugate of Finite Sequences of Complex Numbers

The Inner Product and Conjugate of Finite Sequences of Complex Numbers FORMALIZED MATHEMATICS Volume 13, Number 3, Pages 367 373 University of Bia lystok, 2005 The Inner Product and Conjugate of Finite Sequences of Complex Numbers Wenpai Chang Shinshu University Nagano, Japan

More information

Rewrite Combinators. Stephen Diehl

Rewrite Combinators. Stephen Diehl Rewrite Combinators Stephen Diehl (@smdiehl) Term Rewriting Term rewriting is a system that consist of a set of objects, plus relations on how to transform those objects. Very general idea, well studied

More information

Why Can t You Behave? Non-Termination Analysis of Direct Recursive Rules with Constraints

Why Can t You Behave? Non-Termination Analysis of Direct Recursive Rules with Constraints Why Can t You Behave? Non-Termination Analysis of Direct Recursive Rules with Constraints Thom Frühwirth Ulm University, Germany thom.fruehwirth@uni-ulm.de Abstract. This paper is concerned with rule-based

More information

Permutations and Polynomials Sarah Kitchen February 7, 2006

Permutations and Polynomials Sarah Kitchen February 7, 2006 Permutations and Polynomials Sarah Kitchen February 7, 2006 Suppose you are given the equations x + y + z = a and 1 x + 1 y + 1 z = 1 a, and are asked to prove that one of x,y, and z is equal to a. We

More information

Utility Maximizing Routing to Data Centers

Utility Maximizing Routing to Data Centers 0-0 Utility Maximizing Routing to Data Centers M. Sarwat, J. Shin and S. Kapoor (Presented by J. Shin) Sep 26, 2011 Sep 26, 2011 1 Outline 1. Problem Definition - Data Center Allocation 2. How to construct

More information

Math 361: Homework 1 Solutions

Math 361: Homework 1 Solutions January 3, 4 Math 36: Homework Solutions. We say that two norms and on a vector space V are equivalent or comparable if the topology they define on V are the same, i.e., for any sequence of vectors {x

More information

CHAPTER 2 POLYNOMIALS KEY POINTS

CHAPTER 2 POLYNOMIALS KEY POINTS CHAPTER POLYNOMIALS KEY POINTS 1. Polynomials of degrees 1, and 3 are called linear, quadratic and cubic polynomials respectively.. A quadratic polynomial in x with real coefficient is of the form a x

More information

1) The line has a slope of ) The line passes through (2, 11) and. 6) r(x) = x + 4. From memory match each equation with its graph.

1) The line has a slope of ) The line passes through (2, 11) and. 6) r(x) = x + 4. From memory match each equation with its graph. Review Test 2 Math 1314 Name Write an equation of the line satisfying the given conditions. Write the answer in standard form. 1) The line has a slope of - 2 7 and contains the point (3, 1). Use the point-slope

More information

Math Assignment 11

Math Assignment 11 Math 2280 - Assignment 11 Dylan Zwick Fall 2013 Section 8.1-2, 8, 13, 21, 25 Section 8.2-1, 7, 14, 17, 32 Section 8.3-1, 8, 15, 18, 24 1 Section 8.1 - Introduction and Review of Power Series 8.1.2 - Find

More information

Mathematical Induction

Mathematical Induction Mathematical Induction COM1022 Functional Programming Techniques Professor Steve Schneider University of Surrey Semester 2, 2010 Week 10 Professor Steve Schneider Mathematical Induction Semester 2, 2010

More information

Groebner Bases in Boolean Rings. for Model Checking and. Applications in Bioinformatics

Groebner Bases in Boolean Rings. for Model Checking and. Applications in Bioinformatics Groebner Bases in Boolean Rings for Model Checking and Applications in Bioinformatics Quoc-Nam Tran, Ph.D. Professor of Computer Science Lamar University Invited Talk at CMU on October 8, 2010 Outline

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

More information

Formal Groups. Niki Myrto Mavraki

Formal Groups. Niki Myrto Mavraki Formal Groups Niki Myrto Mavraki Contents 1. Introduction 1 2. Some preliminaries 2 3. Formal Groups (1 dimensional) 2 4. Groups associated to formal groups 9 5. The Invariant Differential 11 6. The Formal

More information

A GENERAL POLYNOMIAL SIEVE

A GENERAL POLYNOMIAL SIEVE A GENERAL POLYNOMIAL SIEVE SHUHONG GAO AND JASON HOWELL Abstract. An important component of the index calculus methods for finding discrete logarithms is the acquisition of smooth polynomial relations.

More information

KBO Orientability. Harald Zankl Nao Hirokawa Aart Middeldorp. Japan Advanced Institute of Science and Technology University of Innsbruck

KBO Orientability. Harald Zankl Nao Hirokawa Aart Middeldorp. Japan Advanced Institute of Science and Technology University of Innsbruck KBO Orientability Harald Zankl Nao Hirokawa Aart Middeldorp Japan Advanced Institute of Science and Technology University of Innsbruck KBO Orientability 1/32 Reference JAR 2009 Harald Zankl, Nao Hirokawa,

More information

SPACE TYPES & REQUIREMENTS

SPACE TYPES & REQUIREMENTS SPACE TYPES & REQUIREENTS 2 Fby 2012 Gys Sh Typ: K E H 1 2 3 5 6 7 8 9 10 11 12 Ajy D (Hh Sh) F A Dsps Th fs f phys hs vv sps f h hhy fsy f vs. Phys s hf w fss wss hh vy hy-bs s f hhy fsy hs. Gy sps sh

More information

Semantic Labelling for Proving Termination of Combinatory Reduction Systems. Makoto Hamana

Semantic Labelling for Proving Termination of Combinatory Reduction Systems. Makoto Hamana Semantic Labelling for Proving Termination of Combinatory Reduction Systems Makoto Hamana Department of Computer Science, Gunma University, Japan WFLP 09 June, 2009. 1 2 Intro: Termination Proof by RPO

More information

HORSes: format, termination and confluence

HORSes: format, termination and confluence HORSes: format, termination and confluence Jean-Pierre Jouannaud INRIA-LIAMA and singhua Software Chair Joint on-going work with Jianqi Li School of Software, singhua University Project CoqLF NList Cross-discipline

More information

A GENERAL METHOD FOR PRODUCING RANDOM V ARIABtES IN A COMPUTER. George Marsaglia. Boeing Scientific Research Laboratories Seattle, Washington

A GENERAL METHOD FOR PRODUCING RANDOM V ARIABtES IN A COMPUTER. George Marsaglia. Boeing Scientific Research Laboratories Seattle, Washington A GENERAL METHOD FOR PRODUCING RANDOM V ARIABtES IN A COMPUTER George Marsaglia Boeing Scientific Research Laboratories Seattle, Washington SUMMARY Many random variables can be approximated quite closely

More information

1 Solutions to selected problems

1 Solutions to selected problems Solutions to selected problems Section., #a,c,d. a. p x = n for i = n : 0 p x = xp x + i end b. z = x, y = x for i = : n y = y + x i z = zy end c. y = (t x ), p t = a for i = : n y = y(t x i ) p t = p

More information

1.18 Multiple Choice Questions on Limits

1.18 Multiple Choice Questions on Limits 24 The AP CALCULUS PROBLEM BOOK 3x 4 2x + 33. lim x 7x 8x 5 =.8 Multiple Choice Questions on Limits A) B) C) 0 D) 3 7 E) 3 8 34. lim x 0 x = A) B) C) 0 D) E) does not exist 9x 2 35. lim x /3 3x = A) B)

More information

Computation and Analysis of Explicit Formulae for the Circumradius of Cyclic Polygons

Computation and Analysis of Explicit Formulae for the Circumradius of Cyclic Polygons Communications of JSSAC (2018) Vol. 3, pp. 1 17 Computation and Analysis of Explicit Formulae for the Circumradius of Cyclic Polygons Shuichi Moritsugu University of Tsukuba (Received 27/Nov/2017 Accepted

More information

Integer-Valued Polynomials

Integer-Valued Polynomials Integer-Valued Polynomials LA Math Circle High School II Dillon Zhi October 11, 2015 1 Introduction Some polynomials take integer values p(x) for all integers x. The obvious examples are the ones where

More information

POLYNOMIAL INTERPRETATIONS OVER THE NATURAL, RATIONAL AND REAL NUMBERS REVISITED

POLYNOMIAL INTERPRETATIONS OVER THE NATURAL, RATIONAL AND REAL NUMBERS REVISITED Logical Methods in Computer Science Vol. 10(3:22)2014, pp. 1 28 www.lmcs-online.org Submitted Oct. 27, 2010 Published Sep. 18, 2014 POLYNOMIAL INTERPRETATIONS OVER THE NATURAL, RATIONAL AND REAL NUMBERS

More information

Induction; Operational Semantics. Fall Software Foundations CIS 500

Induction; Operational Semantics. Fall Software Foundations CIS 500 CIS 500 Software Foundations Fall 2005 Induction; Operational Semantics CIS 500, Induction; Operational Semantics 1 Announcements Review recitations start this week. You may go to any recitation section

More information

1 Complete Statistics

1 Complete Statistics Complete Statistics February 4, 2016 Debdeep Pati 1 Complete Statistics Suppose X P θ, θ Θ. Let (X (1),..., X (n) ) denote the order statistics. Definition 1. A statistic T = T (X) is complete if E θ g(t

More information

Recurrence Relations and Recursion: MATH 180

Recurrence Relations and Recursion: MATH 180 Recurrence Relations and Recursion: MATH 180 1: Recursively Defined Sequences Example 1: The sequence a 1,a 2,a 3,... can be defined recursively as follows: (1) For all integers k 2, a k = a k 1 + 1 (2)

More information

Mining Propositional Simplification Proofs for Small Validating Clauses

Mining Propositional Simplification Proofs for Small Validating Clauses Mining Propositional Simplification Proofs for Small Validating Clauses Ian Wehrman and Aaron Stump Computer Science and Engineering, Washington University in St. Louis {iwehrman,stump}@cse.wustl.edu,

More information

HOW TO FACILITATE THE PROOF OF THEORIES BY USING THe INDUCTION MATCHING. AND BY GENERALIZATION» Jacqueline Castaing

HOW TO FACILITATE THE PROOF OF THEORIES BY USING THe INDUCTION MATCHING. AND BY GENERALIZATION» Jacqueline Castaing HOW TO FACILITATE THE PROOF OF THEORIES BY USING THe INDUCTION MATCHING. AND BY GENERALIZATION» Jacqueline Castaing IRI Bat 490 Univ. de Pans sud F 9140b ORSAY cedex ABSTRACT In this paper, we show how

More information

Heuristics for Cost-Optimal Classical Planning Based on Linear Programming

Heuristics for Cost-Optimal Classical Planning Based on Linear Programming Heuristics for Cost-Optimal Classical Planning Based on Linear Programming (from ICAPS-14) Florian Pommerening 1 Gabriele Röger 1 Malte Helmert 1 Blai Bonet 2 1 Universität Basel 2 Universidad Simón Boĺıvar

More information

Introduction to Theory of Computing

Introduction to Theory of Computing CSCI 2670, Fall 2012 Introduction to Theory of Computing Department of Computer Science University of Georgia Athens, GA 30602 Instructor: Liming Cai www.cs.uga.edu/ cai 0 Lecture Note 3 Context-Free Languages

More information

MATH III CCR MATH STANDARDS

MATH III CCR MATH STANDARDS INFERENCES AND CONCLUSIONS FROM DATA M.3HS.1 Use the mean and standard deviation of a data set to fit it to a normal distribution and to estimate population percentages. Recognize that there are data sets

More information

Chapter 6. Negation: Procedural Interpretation

Chapter 6. Negation: Procedural Interpretation Chapter 6 1 Outline Motivate negation with two examples Extended programs and queries The computation mechanism: SLDNF-derivations Allowed programs and queries Negation in Prolog [Apt and Bol, 1994] Krzysztof

More information

Traditional Pathway: Algebra II

Traditional Pathway: Algebra II Traditional Pathway: Algebra II Building on their work with linear, quadratic, and exponential functions, students extend their repertoire of functions to include polynomial, rational, and radical functions.

More information

Module 4. Related web links and videos. 1. FT and ZT

Module 4. Related web links and videos. 1.  FT and ZT Module 4 Laplace transforms, ROC, rational systems, Z transform, properties of LT and ZT, rational functions, system properties from ROC, inverse transforms Related web links and videos Sl no Web link

More information

4.4 Contracting Proofs to Programs

4.4 Contracting Proofs to Programs 4.4 Contracting Proofs to Programs 75 We close this section with the formal version of the proof above. Note the use of the conversion rule conv. [ x : nat; [ ~ 0 = 0; 0 = 0; F; s(pred(0)) = 0 ]; ~ 0 =

More information

King Fahd University of Petroleum and Minerals Prep-Year Math Program Math Term 161 Recitation (R1, R2)

King Fahd University of Petroleum and Minerals Prep-Year Math Program Math Term 161 Recitation (R1, R2) Math 001 - Term 161 Recitation (R1, R) Question 1: How many rational and irrational numbers are possible between 0 and 1? (a) 1 (b) Finite (c) 0 (d) Infinite (e) Question : A will contain how many elements

More information

CS 243 Lecture 11 Binary Decision Diagrams (BDDs) in Pointer Analysis

CS 243 Lecture 11 Binary Decision Diagrams (BDDs) in Pointer Analysis CS 243 Lecture 11 Binary Decision Diagrams (BDDs) in Pointer Analysis 1. Relations in BDDs 2. Datalog -> Relational Algebra 3. Relational Algebra -> BDDs 4. Context-Sensitive Pointer Analysis 5. Performance

More information

Mathematics - High School Algebra II

Mathematics - High School Algebra II Mathematics - High School Algebra II All West Virginia teachers are responsible for classroom instruction that integrates content standards and mathematical habits of mind. Students in this course will

More information

Lesson 11: The Special Role of Zero in Factoring

Lesson 11: The Special Role of Zero in Factoring Lesson 11: The Special Role of Zero in Factoring Student Outcomes Students find solutions to polynomial equations where the polynomial expression is not factored into linear factors. Students construct

More information

Resolution for Predicate Logic

Resolution for Predicate Logic Logic and Proof Hilary 2016 James Worrell Resolution for Predicate Logic A serious drawback of the ground resolution procedure is that it requires looking ahead to predict which ground instances of clauses

More information

Mathematics High School Algebra

Mathematics High School Algebra Mathematics High School Algebra Expressions. An expression is a record of a computation with numbers, symbols that represent numbers, arithmetic operations, exponentiation, and, at more advanced levels,

More information

(6.2) -The Shooting Method for Nonlinear Problems

(6.2) -The Shooting Method for Nonlinear Problems (6.2) -The Shooting Method for Nonlinear Problems Consider the boundary value problems (BVPs) for the second order differential equation of the form (*) y f x,y,y, a x b, y a and y b. When f x,y,y is linear

More information

MAC2313 Final A. (5 pts) 1. How many of the following are necessarily true? i. The vector field F = 2x + 3y, 3x 5y is conservative.

MAC2313 Final A. (5 pts) 1. How many of the following are necessarily true? i. The vector field F = 2x + 3y, 3x 5y is conservative. MAC2313 Final A (5 pts) 1. How many of the following are necessarily true? i. The vector field F = 2x + 3y, 3x 5y is conservative. ii. The vector field F = 5(x 2 + y 2 ) 3/2 x, y is radial. iii. All constant

More information

Formalizing Kruskal s Tree Theorem in Isabelle/HOL

Formalizing Kruskal s Tree Theorem in Isabelle/HOL Formalizing Kruskal s Tree Theorem in Isabelle/HOL Christian Sternagel JAIST July 5, 2012 Kickoff Meeting of Austria-Japan Joint Project Gamagori, Japan Kruskal s Tree Theorem If the set A is well-quasi-ordered

More information

Geometric Series and the Ratio and Root Test

Geometric Series and the Ratio and Root Test Geometric Series and the Ratio and Root Test James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University September 5, 2018 Outline 1 Geometric Series

More information

Leonardo de Moura Microsoft Research

Leonardo de Moura Microsoft Research Leonardo de Moura Microsoft Research Logic is The Calculus of Computer Science (Z. Manna). High computational complexity Naïve solutions will not scale Is formula F satisfiable modulo theory T? SMT solvers

More information

Equational Logic. Chapter 4

Equational Logic. Chapter 4 Chapter 4 Equational Logic From now on First-order Logic is considered with equality. In this chapter, I investigate properties of a set of unit equations. For a set of unit equations I write E. Full first-order

More information

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach Superposition for Fixed Domains Matthias Horbach and Christoph Weidenbach MPI I 2009 RG1 005 Oct. 2009 Authors Addresses Matthias Horbach and Christoph Weidenbach Max Planck Institute for Informatics Campus

More information

1.5 MATHEMATICAL LANGUAGE

1.5 MATHEMATICAL LANGUAGE 1.5 MATHEMATICAL LANGUAGE Contemporary Calculus The calculus concepts we will explore in this book are simple and powerful, but sometimes subtle. To succeed in calculus you will have to master some techniques,

More information

UNC Charlotte Super Competition Level 3 Test March 4, 2019 Test with Solutions for Sponsors

UNC Charlotte Super Competition Level 3 Test March 4, 2019 Test with Solutions for Sponsors . Find the minimum value of the function f (x) x 2 + (A) 6 (B) 3 6 (C) 4 Solution. We have f (x) x 2 + + x 2 + (D) 3 4, which is equivalent to x 0. x 2 + (E) x 2 +, x R. x 2 + 2 (x 2 + ) 2. How many solutions

More information

AST rewriting. Part I: Specifying Transformations. Imperative object programs. The need for path queries. fromentry, paths, toexit.

AST rewriting. Part I: Specifying Transformations. Imperative object programs. The need for path queries. fromentry, paths, toexit. Part I: Specifying Transformations Oege de Moor Ganesh Sittampalam Programming Tools Group, Oxford focus AST rewriting To apply rule: rewrite(pat 0, pat 1 ) Match: focus = φ(pat 0 ) Replace: focus := φ(pat

More information

California Common Core State Standards for Mathematics Standards Map Mathematics III

California Common Core State Standards for Mathematics Standards Map Mathematics III A Correlation of Pearson Integrated High School Mathematics Mathematics III Common Core, 2014 to the California Common Core State s for Mathematics s Map Mathematics III Copyright 2017 Pearson Education,

More information

Equational Reasoning and Completion. Dominik Klein

Equational Reasoning and Completion. Dominik Klein Equational Reasoning and Completion by Dominik Klein submitted to Japan Advanced Institute of Science and Technology in partial fulfillment of the requirements for the degree of Doctor of Philosophy Supervisor:

More information

Learning cover context-free grammars from structural data

Learning cover context-free grammars from structural data Learning cover context-free grammars from structural data Mircea Marin Gabriel Istrate West University of Timişoara, Romania 11th International Colloquium on Theoretical Aspects of Computing ICTAC 2014

More information

b n x n + b n 1 x n b 1 x + b 0

b n x n + b n 1 x n b 1 x + b 0 Math Partial Fractions Stewart 7.4 Integrating basic rational functions. For a function f(x), we have examined several algebraic methods for finding its indefinite integral (antiderivative) F (x) = f(x)

More information

July 21 Math 2254 sec 001 Summer 2015

July 21 Math 2254 sec 001 Summer 2015 July 21 Math 2254 sec 001 Summer 2015 Section 8.8: Power Series Theorem: Let a n (x c) n have positive radius of convergence R, and let the function f be defined by this power series f (x) = a n (x c)

More information