Review of Control Flow Semantics
|
|
- Edith Hampton
- 5 years ago
- Views:
Transcription
1 Review of Control Flow Semntics Riccrdo Pucell Deprtment of Computer Science Cornell University April 19, 2001 I hve to dmit, I ws looking forwrd to reviewing this book. It nswered wht ws for me 6-yer old question. Six yers go, I ws pursuing Mster s degree t McGill University. working on progrmming lnguge semntics. My trining in semntics ws rther trditionl: lmbd clculus, functionl progrmming lnguges, denottionl semntics bsed on complete prtil orders, etc. At the time, Frnck vn Breugel ws visiting McGill, nd I cme cross the fct tht Frnck ws lso working on semntics of progrmming lnguges, but on semntics bsed on metric spces. For someone with n undergrdute bckground in mthemtics, this ws seriously intriguing. Unfortuntely, I never got round to sking Frnck bout his work. This book is n nswer to tht question tht never ws. The purpose of the book is to describe n pproch to provide semntics to impertive lnguges with vrious types of control flow models, including concurrency. The pproch hndles both opertionl semntics nd denottionl semntics, ll in topologicl setting. (We will come bck to this lter.) The issue of relting the two semntics for ny given lnguge is centrl theme of the pproch. I will provide in the next section n introduction to topologicl semntics. For now, let me sy word on the pplicbility of the pproch. As stted, the min interest is in providing semntics to impertive lnguges. Impertive progrms cn be thought of, for our purposes, s sequences of ctions performed on stte. Typiclly, sttes re sets of vribles, nd ctions include modifying the vlue of vrible in stte. An importnt chrcteristic of impertive progrms is tht they embody the notion of computtion step: progrm being sequence of ctions, it forces sequence of intermedites sttes. Typiclly, the intermedite sttes re observble, mening tht one cn observe something bout tht intermedite stte, either by looking up the vlue of vrible, by witnessing n output opertion, etc. When the intermedite sttes of computtion re observble, it becomes resonble to tlk bout infinite (nonterminting) computtions. (The clssicl exmple of this is of course n operting system, which t lest theoreticlly is n infinite process; the min motivtion for the topologicl pproch, s we shll see, is to mke sense of such infinite computtions.) Contrst this with functionl lnguges, which re often used s motivting exmples for the study of semntics. In pure functionl lnguge, ll infinite progrms re equivlent, nd in trditionl denottionl semntics bsed on prtil orders (à l Scott nd Strchey [6]), every nonterminting progrm is mpped to, the lest element of the pproprite prtil order. This is not helpful in setting where we wnt to discuss observbly different infinite behviors. We distinguish two kinds of impertive lnguges. The distinction between them is kin to the distinction between propositionl nd first-order logic. 1 Uniform lnguges re bsed on primitive, bstrct notion of ction, combined with pproprite opertors. For instnce, progrm my hve the form ; b; c; (d + ) where ; represents sequentil composition nd + nondeterministic choice opertor. The primitive ctions,b,c,d re uninterpreted. The stte is implicitly defined by the ctions tht hve been performed. On the other hnd, nonuniform lnguges hve n interprettion ssocited with the ctions; typiclly, s we mentioned, the stte is set of vribles, nd ctions include modifying the vlue of vrible in stte. To showcse the verstility of their pproch, the uthors study different lnguges. The min difference between the vrious lnguges, side from the question of uniformity, is the progrm composition opertors considered. The J. de Bkker, E. de Vink, Control Flow Semntics, MIT Press, 1996, 564pp, ISBN This nlogy cn be mde precise when looking t dynmic logics, fmily of logics for resoning bout progrms in such lnguges [1]. 1
2 following groups of relted opertors re studied: The first group consists of opertors including sequentil composition nd choice. The ltter introduces nondeterminism in the frmework, with suitble complictions. Mny versions of choice re investigted, including bcktrcking choice. The second group of opertors consists of recursion nd itertion. Such opertors re required to get universlity (in the computbility theory sense). The third group of opertors includes prllel composition opertors. Modeling such opertors forces one to del with issues such s dedlock, synchroniztion nd communiction. Lnguges with such opertors include CSP [2] nd CCS [3]. Relted to the lst group of opertors, one my distinguish between sttic nd dynmic configurtion of processes. Finlly, we cn investigte issues of loclity nd scope of vribles. All in ll, 27 lnguges re studied in the book, encompssing vrious fetures described bove (nd others, such s the kernel of logic progrmming lnguge). For ech lnguge, n opertionl semntics is given, long with denottionl semntics bsed on topologicl spces. The reltionship between ech semntics is investigted. Here re the chpter titles, to give n ide of the brekdown of content: 1. Recursion nd Itertion, 2. Nondetermincy, 3. Vritions, 4. Uniform Prllelism, 5. Unbounded Nondeterminism, 6. Loclity, 7. Nonuniform prllelism, 8. Recursion Revisited, 9. Nested Resumptions, 10., Domin Equtions nd Bisimultion, 11. Brnching Domins t Work, 12. Extensions of Nonuniform Prllelism, 13. Concurrent Object-oriented Progrmming, 14. Atomiztion, Commit, nd Action Refinement, 15. The Control Flow Kernel of Logic Progrmming, 16. True Concurrency, 17. Full Abstrctness, 18. Second-order Assignment. In the next section, I summrize the first chpter of the book, to give feel for the pproch. Overview of topologicl semntics Given L collection of progrms in lnguge, semntics for L is mpping M : L P tking progrm p to n element M(p) from domin of menings P. The domin P should hve enough mthemticl structure to cpture wht we wnt to model. The study of semntics centers round the development of methods to specify M nd ssocited P for rnge of lnguges L. We cn distinguish essentilly two wys of specifying M: Opertionl O : L P O, which cptures the opertionl intuition bout progrms by using trnsition system (xioms nd rules) describing the ctions of n bstrct mchine. This is the structurl pproch to opertionl semntics (SOS) dvocted by Plotkin [4]. Denottionl D : L P D, which is compositionl; the mening of composite progrm is given by the mening of its prts. This is helpful to derive progrm logics, to reson bout correctness, termintion nd equivlence. Also, in generl, denottionl semntics re less sensitive to chnges in the presenttion of lnguge. Consider the following simple exmple, to highlight the difference between the two styles of semntics. Let A be n lphbet, nd W the set of structured words over A, given by the following BNF grmmr: w ::= (w 1 w 2 ) where is n identifier rnging over the elements of A. If A = {, b, c}, then ( (b )), (( b) (c b)), ((( b) ) b) re structured words over A. We choose to ssign, s the mening of n element of W, its length. We derive both n opertionl nd denottionl semntics to ssign such mening to elements of W. We tke P O = P D = N (where N is the set of nturl numbers). To define the opertionl semntics, we consider the slightly extended lnguge V = W {E}, where intuitively E stnds for the empty word. We define trnsition system with trnsitions of the 2
3 form (v, n) (v, n ) where v, v V nd n, n N. (Such trnsition counts one letter of the word v.) Let be the lest reltion stisfying the following inference rules: We cn define the opertionl semntics O by: (, n) (E, n + 1) (v 1, n) (v 1, n ) ((v 1 v 2 ), n) ((v 1 v 2 ), n ) (v 1, n) (E, n ) ((v 1 v 2 ), n) (v 2, n ) O(w) = n if nd only if (w, 0) (v 1, 1) (E, n) The denottionl semntics D is much esier to define: D() = 1 D(w 1 w 2 ) = D(w 1 ) + D(w 2 ) It is strightforwrd to show, by structurl induction, tht in this cse the opertionl nd denottionl semntics gree (tht is, they give the sme result for every word w W ). Let us now turn to somewht more relistic exmple. Recll tht there re two kinds of impertive lnguges we consider, uniform nd nonuniform. Let s define simple uniform lnguge with recursive opertor. This exmple is tken stright from Chpter 1 of the book. The lnguge, L rec, is defined over n lphbet A of primitive ctions. We ssume set of progrm vribles PVr. (Stt) s ::= x (s 1 ; s 2 ) (GStt) g ::= (g; s) A sttement s is simply sequence of ctions; vribles re bound to gurded sttements g, which re simply sttements tht re forced to initilly perform n ction. When vrible is encountered during execution, the corresponding gurded sttement is executed. A declrtion is binding of vribles to gurded sttements, nd the spce of ll declrtions is defined s Decl = PVr GStt. The lnguge L rec is defined s L rec = Decl Stt. We write n element of L rec s (x 1 g 1,..., x n g n s), representing the sttement s in context where x 1,..., x n re bound to g 1,..., g n, respectively. The opertionl semntics is defined by trnsition system over Decl Res, where Res = Stt {E}; the intuition is tht E denotes sttement tht hs finished executing. We nottionlly identify the sequence E; s with the sttement s. This will simplify the presenttion of the reduction rules. The trnsitions of the system tke the form s D r where s Stt, r Res, A, nd D Decl ; this trnsition should be interpreted s the progrm sttement s rewriting into the sttement r, long with computtionl effect. (For simplicity the computtionl effect is tken to be the ction performed.) Agin, the D reltion is the lest reltion stisfying the following inference rules: g D r x D r D E if D(x) = g s 1 D r 1 s 1 ; s 2 D r 1 ; s 2 3
4 We tke the domin P O of opertionl menings to be the set of finite nd infinite sequences of ctions, P O = A = A A ω. We define the opertionl semntics O : Decl Res P O s: { O(D r) = 1 2 n if r 1 D r 2 1 D n D r n = E 1 2 if r 1 D r 2 1 D For instnce, we hve O(D 1 ; ( 2 ; 3 )) = 1 2 3, nd O(x (; y), y (b; x) x) = (b) ω. Deriving denottionl semntics is slightly more complicted. A progrm in L rec my describe infinite computtions. To mke sense of those, we need the notion of the limit of computtion. In mthemticl nlysis, limits re usully studied in the context of metric spces [5]. This is the setting in which we will derive our semntics. A metric spce is pir (M, d) with M nonempty set nd d : M M R 0 (where R 0 is the set of nonnegtive rel numbers) stisfying: d(x, y) = 0 iff x = y, d(x, y) = d(y, x), nd d(x, y) d(x, z) + d(z, y). A metric spce (M, d) is α-bounded (for α < ) if d(x, y) α for ll x nd y in M. We cn define metric on A s follows. For ny w A, let w[n] be the prefix of w of length t most n. The Bire-distnce metric d B : A A R 0 is defined by { 0 if v = w d B = 2 n if v w nd n = mx{k : v[k] = w[k]} We sy sequence {x n } n=1 is Cuchy if for ll ɛ > 0 there exists n i such tht for ll j, k i, d(x j, x k ) ɛ. In other words, the elements of Cuchy sequence get rbitrry close with respect to the metric. A metric spce (M, d) is complete if every Cuchy sequence converges in M. It is esy to check tht the metric spce (A, d B ) is complete. If (M, d) is α-bounded for some α, nd X is ny set, let (X M, d F ) be the function spce metric spce defined s follows: X M is the set of ll functions from X to M, nd d F (f, g) = sup{d(f(x), g(x)) : x X} (α-boundedness on M gurntees tht this is well-defined). One cn check tht if (M, d) is complete, then so is (X M, d F ). A centrl theorem of the theory of metric spces, which is used hevily in the book, is Bnch s fixed point theorem. Essentilly, this theorem sys tht every function f from metric spce to itself tht decreses the distnce between ny two points must hve fixed point ( point x such tht f(x) = x). We need more definitions to mke this precise. Define function f : (M 1, d 1 ) (M 2, d 2 ) to be contrctive if there exists n α between 0 nd 1 such tht d 2 (f(x), f(y)) αd 1 (x, y). For exmple, the function f : (A, d B ) (A, d B ) defined by f(x) = x is 1 2 -contrctive. Theorem (Bnch): Let (M, d) be complete metric spce, f : (M, d) (M, d) contrctive function. Then 1. there exists n x in M such tht f(x) = x, 2. this x is unique (written fix(f)), nd 3. fix(f) = lim f n (x 0 ) for n rbitrry x 0 M, where f n+1 (x 0 ) = f(f n (x 0 )). This is the bsic metric spce mchinery needed to get simple denottionl semntics going. Returning to our smple lnguge L rec, we tke s trget of our denottionl semntics the domin P D = A {ɛ}. (We do not llow the empty string for technicl resons. Notice tht the empty string cnnot be expressed by the lnguge in ny cse.) Wht we wnt is function D defined s follows: D(D ) = D(D x) = D(D D(x)) D(D s 1 ; s 2 ) = ;(D(D s 1 ), D(D s 2 )) (for some function ; defined over A, ment to represent sequentil composition, nd to be defined shortly.) Notice tht this definition of D is not inductive. We will use Bnch s theorem to define the function ; over A, nd to define the function D. 4
5 Let us concentrte on ;. Intuitively, we wnt ; to be function A A A stisfying ;(, p) = p ;( p, p) = ;(p, p) Note tht the bove properties do not form n inductive definition of ; due to the presence of infinite words in A. Insted, we will define ; s the fixed point of the pproprite higher-order opertor. Let Op = A A A be the complete metric spce of functions. 2 Define the following opertor Ω ; : Op Op: Ω ; (φ)(, p) = p Ω ; (φ)( p, p) = φ(p, p) Note tht the bove equtions do define function Ω ;. One cn check tht Ω ; is in fct 1 2-contrctive mpping from Op to Op. Therefore, by Bnch s theorem, there exists unique fixed point (cll it ;) such tht Ω ; (;) = ;. It is esy to see tht this ; stisfies the originl equtions we were iming for. Now tht we hve such function ;, let us turn to the problem of ctully defining D. We proceed similrly, by defining D s the fixed point of the pproprite higher-order opertor, through n ppliction of Bnch s theorem. Consider the metric spce Sem D = L rec A, which is complete since A is complete. Define the following function Ψ : Sem D Sem D by: Ψ(S)(D ) = Ψ(S)(D x) = Ψ(S)(D D(x)) Ψ(S)(D s 1 ; s 2 ) = ;(Ψ(S)(D s 1 ), S(D s 2 )) (There is some subtlety in coming up with the lst eqution; s you ll notice from looking t the righthnd side, there is recursion over Ψ in only one of the two cses. The book explins this.) Once gin, we cn show tht Ψ is 1 2-contrctive function (in S), nd thus by Bnch s theorem there is unique fixed point of Ψ (cll if D) such tht Ψ(D) = D. It is strightforwrd to check tht this D stisfies our requirements for the denottionl semntics function. A finl result of interest fter ll of these developments is the reltionship between O, the opertionl semntics bsed on n intuitive notion of computtion, nd D, the denottionl semntics with its compositionl properties. It turns out tht in this cse, O = D, nd moreover this result cn be derived from third ppliction of Bnch s theorem. The detils cn be found in the book. Opinion As technicl book, imed t describing n pproch to provide semntics to wide vriety of impertive lnguge control flow structures, this book is complete. All the exmples re worked out with enough detils to grsp the subtleties rising. Let the reder be wrned, however, tht the book is dense both in terms of the technicl mteril, nd in terms of the presenttion. The first few chpters should be red slowly nd with pencil in hnd. The book does not require s much bckground knowledge of topology s one my expect. Prior exposure is of course beneficil, but in fct, only the bsics of topology nd metric spces re ctully used, nd whtever is needed is presented in the first few chpters. On the other hnd, the presenttion does ssume wht my best be clled mthemticl mturity. In the grnd scheme of things, problem with this book is one of motivtion nd followup. This is hrdly new in the field of semntics. Specificlly, the use of denottionl semntics is hrdly motivted, considering tht most of the mchinery in the book is imed t coming up with denottionl semntics nd showing tht it grees with the intuitive opertionl semntics. There is throw-wy line bout the fct tht denottionl semntics cn help in developing logics for resoning bout progrms, but most of the interesting developments re buried in the bibliogrphicl notes t the end of the chpters. This will not deter the hrdcore semnticist, but my hve other reders go: so wht?. Sd, since denottionl semntics is useful. And for the curious, Frnck s ctul work cn be found in [7]. 2 Strictly speking, we need to consider the spce of bounded functions to ensure tht the spce is complete. This will be irrelevnt t our level of discussion. 5
6 References [1] D. Hrel, D. Kozen, nd J. Tiuryn. Dynmic Logic. The MIT Press, Cmbridge, Msschusetts, [2] C. Hore. Communicting Sequentil Processes. Prentice-Hll, [3] R. Milner. Communiction nd Concurrency. Prentice-Hll, [4] G. D. Plotkin. A structurl pproch to opertionl semntics. Technicl Report DAIMI FN-19, University of Arhus, [5] W. Rudin. Principles of Mthemticl Anlysis. McGrw-Hill, third edition, [6] D. S. Scott nd C. Strchey. Towrd mthemticl semntics for computer lnguges. In J. Fox, editor, Proceedings of the Symposium on Computers nd Automt, New York, Polytechnic Institute of Brooklyn Press. [7] F. vn Breugel. Comprtive Metric Semntics of Progrmming Lnguges: Nondeterminism nd Recursion. Birkhäuser,
Bisimulation. R.J. van Glabbeek
Bisimultion R.J. vn Glbbeek NICTA, Sydney, Austrli. School of Computer Science nd Engineering, The University of New South Wles, Sydney, Austrli. Computer Science Deprtment, Stnford University, CA 94305-9045,
More information7.2 The Definite Integral
7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where
More informationStrong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation
Strong Bisimultion Overview Actions Lbeled trnsition system Trnsition semntics Simultion Bisimultion References Robin Milner, Communiction nd Concurrency Robin Milner, Communicting nd Mobil Systems 32
More informationFinite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh
Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is
More informationMAA 4212 Improper Integrals
Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which
More informationThe Regulated and Riemann Integrals
Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue
More informationNew Expansion and Infinite Series
Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University
More informationLecture 1. Functional series. Pointwise and uniform convergence.
1 Introduction. Lecture 1. Functionl series. Pointwise nd uniform convergence. In this course we study mongst other things Fourier series. The Fourier series for periodic function f(x) with period 2π is
More informationHandout: Natural deduction for first order logic
MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes
More informationChapter 0. What is the Lebesgue integral about?
Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous
More informationFinite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh
Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions
More informationProperties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives
Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn
More informationIntermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4
Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one
More informationAdvanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004
Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when
More informationExam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1
Exm, Mthemtics 471, Section ETY6 6:5 pm 7:4 pm, Mrch 1, 16, IH-115 Instructor: Attil Máté 1 17 copies 1. ) Stte the usul sufficient condition for the fixed-point itertion to converge when solving the eqution
More informationCS 275 Automata and Formal Language Theory
CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed
More informationProcess Algebra CSP A Technique to Model Concurrent Programs
Process Algebr CSP A Technique to Model Concurrent Progrms Jnury 15, 2002 Hui Shi 1 Contents CSP-Processes Opertionl Semntics Trnsition systems nd stte mchines Bisimultion Firing rules for CSP Model-Checker
More informationReview of Calculus, cont d
Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some
More informationRecitation 3: More Applications of the Derivative
Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech
More informationMATH34032: Green s Functions, Integral Equations and the Calculus of Variations 1
MATH34032: Green s Functions, Integrl Equtions nd the Clculus of Vritions 1 Section 1 Function spces nd opertors Here we gives some brief detils nd definitions, prticulrly relting to opertors. For further
More informationIntroduction to Group Theory
Introduction to Group Theory Let G be n rbitrry set of elements, typiclly denoted s, b, c,, tht is, let G = {, b, c, }. A binry opertion in G is rule tht ssocites with ech ordered pir (,b) of elements
More informationTHE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.
THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem
More informationDesigning finite automata II
Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of
More informationRiemann Sums and Riemann Integrals
Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 2013 Outline 1 Riemnn Sums 2 Riemnn Integrls 3 Properties
More informationHomework 4. (1) If f R[a, b], show that f 3 R[a, b]. If f + (x) = max{f(x), 0}, is f + R[a, b]? Justify your answer.
Homework 4 (1) If f R[, b], show tht f 3 R[, b]. If f + (x) = mx{f(x), 0}, is f + R[, b]? Justify your nswer. (2) Let f be continuous function on [, b] tht is strictly positive except finitely mny points
More informationChapter 14. Matrix Representations of Linear Transformations
Chpter 4 Mtrix Representtions of Liner Trnsformtions When considering the Het Stte Evolution, we found tht we could describe this process using multipliction by mtrix. This ws nice becuse computers cn
More informationImproper Integrals, and Differential Equations
Improper Integrls, nd Differentil Equtions October 22, 204 5.3 Improper Integrls Previously, we discussed how integrls correspond to res. More specificlly, we sid tht for function f(x), the region creted
More information1 Sets Functions and Relations Mathematical Induction Equivalence of Sets and Countability The Real Numbers...
Contents 1 Sets 1 1.1 Functions nd Reltions....................... 3 1.2 Mthemticl Induction....................... 5 1.3 Equivlence of Sets nd Countbility................ 6 1.4 The Rel Numbers..........................
More informationUnit #9 : Definite Integral Properties; Fundamental Theorem of Calculus
Unit #9 : Definite Integrl Properties; Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl
More informationRiemann Sums and Riemann Integrals
Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 203 Outline Riemnn Sums Riemnn Integrls Properties Abstrct
More informationDuality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.
Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we
More informationChapter 2 Finite Automata
Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht
More informationIntroduction to the Calculus of Variations
Introduction to the Clculus of Vritions Jim Fischer Mrch 20, 1999 Abstrct This is self-contined pper which introduces fundmentl problem in the clculus of vritions, the problem of finding extreme vlues
More informationCoalgebra, Lecture 15: Equations for Deterministic Automata
Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined
More informationBernoulli Numbers Jeff Morton
Bernoulli Numbers Jeff Morton. We re interested in the opertor e t k d k t k, which is to sy k tk. Applying this to some function f E to get e t f d k k tk d k f f + d k k tk dk f, we note tht since f
More informationp-adic Egyptian Fractions
p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction
More informationand that at t = 0 the object is at position 5. Find the position of the object at t = 2.
7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we
More informationarxiv:math/ v2 [math.ho] 16 Dec 2003
rxiv:mth/0312293v2 [mth.ho] 16 Dec 2003 Clssicl Lebesgue Integrtion Theorems for the Riemnn Integrl Josh Isrlowitz 244 Ridge Rd. Rutherford, NJ 07070 jbi2@njit.edu Februry 1, 2008 Abstrct In this pper,
More informationChapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1
Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more
More informationf(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral
Improper Integrls Every time tht we hve evluted definite integrl such s f(x) dx, we hve mde two implicit ssumptions bout the integrl:. The intervl [, b] is finite, nd. f(x) is continuous on [, b]. If one
More informationTaylor Polynomial Inequalities
Tylor Polynomil Inequlities Ben Glin September 17, 24 Abstrct There re instnces where we my wish to pproximte the vlue of complicted function round given point by constructing simpler function such s polynomil
More informationThe final exam will take place on Friday May 11th from 8am 11am in Evans room 60.
Mth 104: finl informtion The finl exm will tke plce on Fridy My 11th from 8m 11m in Evns room 60. The exm will cover ll prts of the course with equl weighting. It will cover Chpters 1 5, 7 15, 17 21, 23
More informationA REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007
A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H Thoms Shores Deprtment of Mthemtics University of Nebrsk Spring 2007 Contents Rtes of Chnge nd Derivtives 1 Dierentils 4 Are nd Integrls 5 Multivrite Clculus
More informationReview of basic calculus
Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below
More informationCS 275 Automata and Formal Language Theory
CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)
More informationFinite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018
Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More
More informationThe practical version
Roerto s Notes on Integrl Clculus Chpter 4: Definite integrls nd the FTC Section 7 The Fundmentl Theorem of Clculus: The prcticl version Wht you need to know lredy: The theoreticl version of the FTC. Wht
More informationWeek 10: Line Integrals
Week 10: Line Integrls Introduction In this finl week we return to prmetrised curves nd consider integrtion long such curves. We lredy sw this in Week 2 when we integrted long curve to find its length.
More informationEuler, Ioachimescu and the trapezium rule. G.J.O. Jameson (Math. Gazette 96 (2012), )
Euler, Iochimescu nd the trpezium rule G.J.O. Jmeson (Mth. Gzette 96 (0), 36 4) The following results were estblished in recent Gzette rticle [, Theorems, 3, 4]. Given > 0 nd 0 < s
More informationNUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.
NUMERICAL INTEGRATION 1 Introduction The inverse process to differentition in clculus is integrtion. Mthemticlly, integrtion is represented by f(x) dx which stnds for the integrl of the function f(x) with
More informationLecture 9: LTL and Büchi Automata
Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled
More informationLine and Surface Integrals: An Intuitive Understanding
Line nd Surfce Integrls: An Intuitive Understnding Joseph Breen Introduction Multivrible clculus is ll bout bstrcting the ides of differentition nd integrtion from the fmilir single vrible cse to tht of
More informationImproper Integrals. Type I Improper Integrals How do we evaluate an integral such as
Improper Integrls Two different types of integrls cn qulify s improper. The first type of improper integrl (which we will refer to s Type I) involves evluting n integrl over n infinite region. In the grph
More informationx = b a N. (13-1) The set of points used to subdivide the range [a, b] (see Fig. 13.1) is
Jnury 28, 2002 13. The Integrl The concept of integrtion, nd the motivtion for developing this concept, were described in the previous chpter. Now we must define the integrl, crefully nd completely. According
More informationNondeterminism and Nodeterministic Automata
Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely
More informationQuadratic Forms. Quadratic Forms
Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte
More informationImproper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:
Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl
More information1 Probability Density Functions
Lis Yn CS 9 Continuous Distributions Lecture Notes #9 July 6, 28 Bsed on chpter by Chris Piech So fr, ll rndom vribles we hve seen hve been discrete. In ll the cses we hve seen in CS 9, this ment tht our
More informationMath 61CM - Solutions to homework 9
Mth 61CM - Solutions to homework 9 Cédric De Groote November 30 th, 2018 Problem 1: Recll tht the left limit of function f t point c is defined s follows: lim f(x) = l x c if for ny > 0 there exists δ
More informationp(t) dt + i 1 re it ireit dt =
Note: This mteril is contined in Kreyszig, Chpter 13. Complex integrtion We will define integrls of complex functions long curves in C. (This is bit similr to [relvlued] line integrls P dx + Q dy in R2.)
More informationMath 1B, lecture 4: Error bounds for numerical methods
Mth B, lecture 4: Error bounds for numericl methods Nthn Pflueger 4 September 0 Introduction The five numericl methods descried in the previous lecture ll operte by the sme principle: they pproximte the
More informationTheoretical foundations of Gaussian quadrature
Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of
More informationThe Banach algebra of functions of bounded variation and the pointwise Helly selection theorem
The Bnch lgebr of functions of bounded vrition nd the pointwise Helly selection theorem Jordn Bell jordn.bell@gmil.com Deprtment of Mthemtics, University of Toronto Jnury, 015 1 BV [, b] Let < b. For f
More informationLecture 1: Introduction to integration theory and bounded variation
Lecture 1: Introduction to integrtion theory nd bounded vrition Wht is this course bout? Integrtion theory. The first question you might hve is why there is nything you need to lern bout integrtion. You
More informationn f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1
The Fundmentl Theorem of Clculus As we continue to study the re problem, let s think bck to wht we know bout computing res of regions enclosed by curves. If we wnt to find the re of the region below the
More informationAMATH 731: Applied Functional Analysis Fall Some basics of integral equations
AMATH 731: Applied Functionl Anlysis Fll 2009 1 Introduction Some bsics of integrl equtions An integrl eqution is n eqution in which the unknown function u(t) ppers under n integrl sign, e.g., K(t, s)u(s)
More informationParse trees, ambiguity, and Chomsky normal form
Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs
More informationContinuous Random Variables
STAT/MATH 395 A - PROBABILITY II UW Winter Qurter 217 Néhémy Lim Continuous Rndom Vribles Nottion. The indictor function of set S is rel-vlued function defined by : { 1 if x S 1 S (x) if x S Suppose tht
More informationA BRIEF INTRODUCTION TO UNIFORM CONVERGENCE. In the study of Fourier series, several questions arise naturally, such as: c n e int
A BRIEF INTRODUCTION TO UNIFORM CONVERGENCE HANS RINGSTRÖM. Questions nd exmples In the study of Fourier series, severl questions rise nturlly, such s: () (2) re there conditions on c n, n Z, which ensure
More informationAbstract inner product spaces
WEEK 4 Abstrct inner product spces Definition An inner product spce is vector spce V over the rel field R equipped with rule for multiplying vectors, such tht the product of two vectors is sclr, nd the
More informationLecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.
Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one
More informationChapter 5 : Continuous Random Variables
STAT/MATH 395 A - PROBABILITY II UW Winter Qurter 216 Néhémy Lim Chpter 5 : Continuous Rndom Vribles Nottions. N {, 1, 2,...}, set of nturl numbers (i.e. ll nonnegtive integers); N {1, 2,...}, set of ll
More informationSummer School Verification Technology, Systems & Applications
VTSA 2011 Summer School Verifiction Technology, Systems & Applictions 4th edition since 2008: Liège (Belgium), Sep. 19 23, 2011 free prticiption, limited number of prticipnts ppliction dedline: July 22,
More informationThe First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).
The Fundmentl Theorems of Clculus Mth 4, Section 0, Spring 009 We now know enough bout definite integrls to give precise formultions of the Fundmentl Theorems of Clculus. We will lso look t some bsic emples
More informationCS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions
CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p
More information4.4 Areas, Integrals and Antiderivatives
. res, integrls nd ntiderivtives 333. Ares, Integrls nd Antiderivtives This section explores properties of functions defined s res nd exmines some connections mong res, integrls nd ntiderivtives. In order
More informationVyacheslav Telnin. Search for New Numbers.
Vycheslv Telnin Serch for New Numbers. 1 CHAPTER I 2 I.1 Introduction. In 1984, in the first issue for tht yer of the Science nd Life mgzine, I red the rticle "Non-Stndrd Anlysis" by V. Uspensky, in which
More informationCS 188 Introduction to Artificial Intelligence Fall 2018 Note 7
CS 188 Introduction to Artificil Intelligence Fll 2018 Note 7 These lecture notes re hevily bsed on notes originlly written by Nikhil Shrm. Decision Networks In the third note, we lerned bout gme trees
More informationTheory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38
Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control
More information(0.0)(0.1)+(0.3)(0.1)+(0.6)(0.1)+ +(2.7)(0.1) = 1.35
7 Integrtion º½ ÌÛÓ Ü ÑÔÐ Up to now we hve been concerned with extrcting informtion bout how function chnges from the function itself. Given knowledge bout n object s position, for exmple, we wnt to know
More informationChapter 1. Basic Concepts
Socrtes Dilecticl Process: The Þrst step is the seprtion of subject into its elements. After this, by deþning nd discovering more bout its prts, one better comprehends the entire subject Socrtes (469-399)
More informationAMATH 731: Applied Functional Analysis Fall Additional notes on Fréchet derivatives
AMATH 731: Applied Functionl Anlysis Fll 214 Additionl notes on Fréchet derivtives (To ccompny Section 3.1 of the AMATH 731 Course Notes) Let X,Y be normed liner spces. The Fréchet derivtive of n opertor
More informationChapters 4 & 5 Integrals & Applications
Contents Chpters 4 & 5 Integrls & Applictions Motivtion to Chpters 4 & 5 2 Chpter 4 3 Ares nd Distnces 3. VIDEO - Ares Under Functions............................................ 3.2 VIDEO - Applictions
More informationState space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies
Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response
More informationUNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3
UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,
More informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More informationGoals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite
Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite
More informationACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019
ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 7.. Introduction to Integrtion. 7. Integrl Clculus As ws the cse with the chpter on differentil
More informationHow do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?
XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4
More informationOverview of Calculus I
Overview of Clculus I Prof. Jim Swift Northern Arizon University There re three key concepts in clculus: The limit, the derivtive, nd the integrl. You need to understnd the definitions of these three things,
More informationdt. However, we might also be curious about dy
Section 0. The Clculus of Prmetric Curves Even though curve defined prmetricly my not be function, we cn still consider concepts such s rtes of chnge. However, the concepts will need specil tretment. For
More informationEquality and Inequality in the Dataflow Algebra. A. J. Cowling
Verifiction nd Testing Reserch Group, Deprtment of Computer Science, University of Sheffield, Regent Court, 211, Portobello Street, Sheffield, S1 4DP, United Kingdom Emil: A.Cowling @ dcs.shef.c.uk Telephone:
More informationMore on automata. Michael George. March 24 April 7, 2014
More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose
More informationLecture 3. Limits of Functions and Continuity
Lecture 3 Limits of Functions nd Continuity Audrey Terrs April 26, 21 1 Limits of Functions Notes I m skipping the lst section of Chpter 6 of Lng; the section bout open nd closed sets We cn probbly live
More informationECO 317 Economics of Uncertainty Fall Term 2007 Notes for lectures 4. Stochastic Dominance
Generl structure ECO 37 Economics of Uncertinty Fll Term 007 Notes for lectures 4. Stochstic Dominnce Here we suppose tht the consequences re welth mounts denoted by W, which cn tke on ny vlue between
More informationReview of Riemann Integral
1 Review of Riemnn Integrl In this chpter we review the definition of Riemnn integrl of bounded function f : [, b] R, nd point out its limittions so s to be convinced of the necessity of more generl integrl.
More informationI1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3
2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is
More informationIntegral points on the rational curve
Integrl points on the rtionl curve y x bx c x ;, b, c integers. Konstntine Zeltor Mthemtics University of Wisconsin - Mrinette 750 W. Byshore Street Mrinette, WI 5443-453 Also: Konstntine Zeltor P.O. Box
More informationCS667 Lecture 6: Monte Carlo Integration 02/10/05
CS667 Lecture 6: Monte Crlo Integrtion 02/10/05 Venkt Krishnrj Lecturer: Steve Mrschner 1 Ide The min ide of Monte Crlo Integrtion is tht we cn estimte the vlue of n integrl by looking t lrge number of
More information1.9 C 2 inner variations
46 CHAPTER 1. INDIRECT METHODS 1.9 C 2 inner vritions So fr, we hve restricted ttention to liner vritions. These re vritions of the form vx; ǫ = ux + ǫφx where φ is in some liner perturbtion clss P, for
More information