Equivalent Stream Reasoning Programs

Size: px
Start display at page:

Download "Equivalent Stream Reasoning Programs"

Transcription

1 Equivlent Strem Resoning Progrms Hrld Beck nd Minh Do-Trn nd Thoms Eiter Institute of Informtion Systems, Vienn University of Technology Fvoritenstrße 9-11, A-1040 Vienn, Austri Abstrct The emerging reserch field of strem resoning fces the chllenging trde-off between expressiveness of query progrms nd dt throughput. For optimizing progrms methods re needed to tell whether two progrms re equivlent. Towrds providing prcticl resoning techniques on strems, we consider LARS progrms, which is powerful extension of Answer Set Progrmming (ASP) for strem resoning tht supports windows on strems for discrding informtion. We define different notions of equivlence between such progrms nd give semntic chrcteriztions in terms of models. We show how prcticlly relevnt frgment cn be lterntively cptured using Here-nd-There models, yielding n extension of equilibrium semntics of ASP to this clss of progrms. Finlly, we chrcterize the computtionl complexity of deciding the considered equivlence reltions. Introduction Strem resoning is n emerging reserch field tht ims t providing logic-oriented techniques on top of strem processing. High throughput of dt is centrl chllenge for strem processing methods, which usully focus on low-level computtions such s filtering nd ggregtion. Centrl to modern strem processing technologies re window mechnisms tht limit the input to snpshots of recent dt. Window opertors cn be utilized either to define which dt is still relevnt, or s prcticl mens to cope with the volume of dt. Also declrtive methods nd logic-oriented lnguges for resoning over dt strems hve been considered [Do et l., 2011; Gebser et l., 2012], in prticulr, ones tht llow to express such windows [Brbieri et l., 2010b]. A recent expressive formlism is the logic-bsed LARS frmework [Beck et l., 2015b], which llows for generic window functions nd temporl opertors in formuls. On top of this, LARS provides rule-bsed semntics tht cn be seen s n extension of Answer Set Progrmming (ASP) for dt strems. This reserch hs been supported by the Austrin Science Fund (FWF) projects P24090, P26471, nd W1255-N23. Declrtive nd logic-oriented pproches to strem resoning typiclly im for more expressiveness, which mkes efficient evlution even hrder to chieve. One wy to mitigte this problem is to optimize queries or progrms by simplifying them using equivlence preserving trnsformtions. However, this requires support for checking when two progrms re equivlent in the first plce. Vrious notions of query or progrm equivlence hve been studied in the literture, e.g., in dtbse reserch nd for nswer set progrms [Lifschitz et l., 2001; Eiter nd Fink, 2003; Eiter et l., 2007b]. However, equivlence reltions between declrtive progrms for strem resoning hve not been considered so fr. Towrds optimiztion of such progrms, we re thus interested in techniques tht llow us to tell when two progrms produce the sme results. Chrcterizing equivlence between LARS progrms in purely logicl terms is chllenging due to non-structurl definition of the FLP-semntics [Fber et l., 2004] defined for them, which imposes some limittions. Yet nother difficulty rises from the generic definition of window opertors. We tckle this issue with the following contributions: We develop prcticlly relevnt notions of equivlence for LARS progrms tht extend well-known equivlence reltions for logic progrms nd introduce dt equivlence for strems. We define novel logic clled Bi-LARS to cpture the FLPbsed semntics of lrge frgment of LARS progrms, including the prcticl one introduced in [Beck et l., 2015] tht we cll plin LARS. We lift model-theoretic chrcteriztions of strong/uniform/reltivized uniform equivlence from ASP to the strem setting to chrcterize the defined equivlence reltions. We introduce the notion of monotone windows nd show how vrint of Bi-LARS leds to n extension of the logic of Here-nd-There for our setting. We thus get link to equilibrium logic [Lifschitz et l., 2001] for clss of progrms. Finlly, we investigte the complexity of checking the considered equivlence reltions. Under benign window opertors, the complexity is not worse thn for logic progrms; only in some cses the complexity does increse. To the best of our knowledge, no similr work on equivlence notions in strem resoning exists to dte. Our results

2 b, c Figure 1: Time-bsed window of size 2 t t = 3 thus give n entry point towrds optimiztion of expressive rule-bsed progrms for resoning over dt strems. LARS We will grdully introduce the min concepts of LARS [Beck et l., 2015b], recent logic-bsed frmework for nlyzing nd expressing resoning over strems. Where pproprite, we give only informl descriptions. We ssume tht the reder is fmilir with ASP [Gelfond nd Lifschitz, 1991; Brewk et l., 2011]; for equivlence reltions between ASP progrms, we refer to [Lifschitz et l., 2001; Eiter et l., 2007b]. We consider propositionl (ground) LARS. Throughout, A denotes the set of toms, which is prtitioned into extensionl (input) toms A E nd intensionl (derived) toms A I. Definition 1 (Strem) A strem S = (T, υ) consists of timeline T, which is closed intervl T N of integers clled time points, nd n evlution function υ : N 2 A. Intuitively, strem S ssocites with ech time point set of toms. We cll S dt strem, if it contins only extensionl toms. To cope with the mount of dt, one usully considers only recent toms. Let S = (T, υ) nd S = (T, υ ) be two strems such tht S S, i.e., T T nd υ (t ) υ(t ) for ll t T. Then S is clled substrem or window of S. Definition 2 (Window function) Any (computble) function w tht returns, given strem S = (T, υ) nd time point t T, substrem S of S is clled window function. Importnt re time-bsed window functions, which select ll toms ppering in lst n time points, nd tuple-bsed window functions, which select fixed number of ltest tuples. Exmple 1 Figure 1 depicts strem S = ([0, 4], υ) where υ = {0 {}, 1 {}, 3 {b}, 4 {, c}}, nd the ppliction of the time-bsed window function w on S tht looks bck two time units from time point t = 3. This returns the substrem S = ([1, 3], {1 {}, 3 {b}}). Window opertors. Window functions cn be ccessed in formuls by window opertors. For every window function w, employing n expression w α hs the effect tht α is evluted on the substrem of the dt strem delivered by w. Definition 3 (Formuls) The set F of formuls is given s follows, where A is n tom, t N, w window function. α ::= α α α α α α t α w α The precedence of t nd w is s for ; e.g., t b c = (( w ) (@ t b)) c. Definition 4 (Structure) A structure is ny tuple M = S, W, B where S is strem, W is set of window functions nd B A is the bckground dt of M. Definition 5 (LARS Entilment) Let M = S, W, B be structure, S = (T, υ) nd t T. The LARS-entilment reltion between (M, t) nd formuls is defined s follows. Let A be n tom, nd let α, β F be formuls. Then, M, t iff υ(t) or B, M, t α iff M, t α, M, t α β iff M, t α nd M, t β, M, t α β iff M, t α or M, t β, M, t α iff M, t α for some t T, M, t α iff M, t α for ll t T, M, t α iff M, t α nd t T, M, t w α iff M, t α, where M = S, W, B such tht S = w(s, t). Throughout, we ssume tht A contins two specil toms / tht re true/flse in every structure. In the sequel, n stnds for time-bsed window opertor tht tkes the lst n time points nd ll dt there. Exmple 2 Let S = ([0, 3], {0 {}, 1 {}, 3 {b, x}}) be strem nd let ϕ = 2 y x be LARS formul. Consider the structure M = S, { 2 },. We hve tht M, 3 2 y. Indeed, since y / υ(3), it follows tht M, 3 y. Furthermore, M, 3 2 since M, 1, where M is obtined by replcing S with S = ([1, 3], {1 {}, 3 {b, x}}), i.e., the result of pplying the time-bsed window of size 2 on S t time point 3. Furthermore, M, 3 x s x υ(3); thus M, 3 ϕ holds. We now turn to LARS progrms tht build on formuls. LARS Progrms Syntx. LARS progrms [Beck et l., 2015b] re sets of rules α β 1,..., β m, not β m+1,..., not β n, (1) where α, β 1,..., β n F re formuls, nd α contins only intensionl toms; B(r) = {β i 1 i n} is the body of r. For instnce, rule x 2, not y mounts to ϕ of Ex. 2. Semntics. Let D = (T, v D ) be dt strem. We cll strem I = (T, υ) D n interprettion strem for D, if it coincides with D on A E, i.e., for every A E nd t T, υ(t) only if υ D (t); the structure M = I, W, B is then n interprettion for D. Throughout, we ssume W (implicit by the considered progrms) nd B re fixed, nd re thus lso omitted. For rule r of the form (1), we define β(r) = β 1 β m β m+1 β n. (2) Let t T. We sy M stisfies rule r t t, denoted by M, t = r, if M, t β(r) α. In this cse, M is model of r (for D) t t. The notions of stisfction nd models crry over to progrms s usul, i.e., M, t = P, if M, t = r for ll r P. Moreover, M is miniml model of P (for D t t) if there does not exist n M = I, W, B s.t. M, t = P where I = (T, υ ) I. Note tht smller models must hve the sme timeline. Definition 6 (Answer Strem) Let P be progrm, D = (T, υ) be dt strem nd t T. An interprettion strem I for D is n nswer strem of P for D t t, if M = I, W, B is miniml model of the (FLP)-reduct P M,t = {r P M, t = β(r)} ; AS(P, D, t) denotes the set of ll such nswer strems I.

3 Exmple 3 (cont d) Consider the strem D = ([0, 3], υ), where υ={0 {}, 1 {}, 3 {b}} nd progrm P, given by the following rules: x 2, not y nd y 2, not x. By tking W = { 2 } nd B =, we get t t = 3 two nswer strems I x nd I y which ugment D by dding x nd y to υ(3), respectively. For instnce, the reduct P M,3, where M = I x, W, B, contins only the first rule. We hve M, 3 = P M,3, since M, 3 2 y x. Towrds smller model, we cn not remove, s is extensionl (i.e., in the dt strem), nor x becuse this would invlidte the impliction. The rgument for I y is nlogous. Bi-Structurl LARS Evlution We now define n extended vrint of LARS semntics, where formuls (resp. progrms) re evluted on pir of strems (S L, S R ) t the sme time. We will lter consider substrem reltion S L S R on ccording models similr to the logic of Here-nd-There [Heyting, 1930] which ws extensively studied in reltion to equivlence notions for ASP. In the sequel, we use the following nottion. Given strems S L = (T, υ L ) nd S R = (T, υ R ), we cll S = (S L, S R ) bi-strem nd M = S, W, B bi-structure, where W re window functions nd B is bckground dt s in LARS. We cll S L the left-strem nd S R the right-strem. Moreover, L = S L, W, B nd R = S R, W, B denote the underlying LARS structures of M; the left-structure nd the rightstructure, respectively. Definition 7 (Bi-LARS Entilment) Let M = S, W, B be s bove nd let t T. The Bi-LARS-entilment reltion between (M, t, w) for worlds w {L, R} nd formuls is defined s follows (where α, β F re formuls): M, t, w iff υ w (t) or B, for A, M, t, w α β iff M, t, w α nd M, t, w β, M, t, w α iff M, t, w α for some t T, M, t, w α iff M, t, w α for ll t T, M, t, t α iff M, t, w α nd t T, M, t, L α β iff M, t, L α or M, t, L β, nd M, t, R α β M, t, R α β iff M, t, R α or M, t, R β, M, t, L α iff L, t α nd R, t α M, t, R α iff R, t α M, t, L w α iff L, t w α nd R, t w α, M, t, R w α iff R, t w α. Moreover, we define M, t α iff M, t, L α. Similrly s for LARS, M, t / lwys/never holds. If M, t α holds, we sy tht M entils α t time t nd we then cll M bi-model of α t time t. Entilment nd the notion of model re extended to sets of formuls s usul. Observe tht for the t nd, Bi-LARS hs recursive definition, while the evlution for nd brnches into seprte evlution in the underlying LARS structures. This is required with the im to provide semntic chrcteriztions of equivlences for lrge clss of LARS progrms. However, we will lso lter exmine when recursive definition is possible. Note tht in generl, entilment in both LARS structures does not imply entilment in the bi-structure. For instnce, consider the bistrem S = (S L, S R ), where S L = ([0, 0], {0 {}}) nd S R = ([0, 0], {0 }), nd tke α = (( ) ). We hve L, 0 α nd R, 0 α, but M, 0 α. The following lemm, which is immedite from Def. 7, intuitively sttes tht evlution for the right-strem is independent of the left-strem. Lemm 1 M, t, R α iff R, t α. We cll bi-strem (S L, S R ) totl, if S L = S R. Restricting the study to totl interprettions, Bi-LARS-stisfction clerly collpses to LARS-stisfction. Proposition 1 Let M = S, W, B be structure, where S = (T, υ) nd M = S, W, B, where S = (S, S), t T nd α be formul. Then, M, t α iff M, t α. Bi-LARS Semntics for LARS progrms. Entilment in Bi-LARS is extended from formuls to progrms nlogously s for LARS. Let D = (T, υ) be dt strem, t T nd let P be progrm. We sy bi-structure M stisfies rule r of form (1) t t, denoted by M, t = r, if M, t β(r) α. In this cse, M is (bi-)model of r (for D t t). Similrly s for LARS, M, t = P, if M, t = r for ll r P. We then cll M (bi-)model of P (for D t t). Plin LARS nd LARS bi. In [Beck et l., 2015], prcticl frgment of LARS ws introduced. We cll this frgment plin LARS, which restricts the rule hed to be of form t, where is n tom, nd body formuls to be extended toms, i.e., expressions of the t. (3) While plin LARS serves s guiding frgment, we will obtin our results for the following brod clss of LARS progrms. Definition 8 (F bi, LARS bi ) By F bi we denote the clss of LARS formuls without, where only occurs in the scope of or. Moreover, LARS bi is the clss of LARS progrms where ll formuls α, β i in rules (1) re in F bi. In the sequel, progrms re tcitly ssumed to be in LARS bi. Note tht the FLP-semntics of nswer strems (Def. 6) is defined non-recursively. Still, we cn cpture it by brnching in Bi-LARS evlution of nd into seprte LARS evlutions for left nd right, due to the following centrl property. Proposition 2 Let M = S, W, B be such tht S L S R nd let α F bi. Then, M, t α iff S L, t α nd S R, t α. The proof is by induction on the structure of formuls. The reltion S L S R nturlly rises with minimlity checking of models, where intuitively S R is model M of progrm P t time t nd S L is cndidte model of the reduct P M,t. It estblishes semntic connection between left nd right, which cn be exploited to conclude tht M, t α implies S L, t α; for rbitrry formuls, this fils. E.g., consider S L = ([0, 0], {0 }), S R = ([0, 0], {0 {}}), nd α = b; then M, 0 α but L, 0 α. Similrly, excluding ϕ is necessry to ensure tht the only-if direction of Proposition 2 holds. The following result now cptures the essence of the reduct-bsed semntics: the left-structure must stisfy ech rule whose body is true in the model given by the rightstructure. The proof is bsed on [Lifschitz et l., 2001].

4 Theorem 1 For ny M= S, W, B s.t. S L S R, time t nd progrm P, we hve M, t = P iff R, t = P nd L, t = P R,t. We re now going to chrcterize nswer strems similrly s in [Lifschitz et l., 2001] nd [Turner, 2001], by cpturing the minimlity condition in terms of bi-equilibrium models. Definition 9 (bi-equilibrium Model) Let M = I, W, B be structure. We sy M = (I, I), W, B is bi-equilibrium model of progrm P for dt strem D t time t, if (i) M, t = P, nd (ii) M, t = P, for ech M = (I, I), W, B such tht D I I nd I = (T, υ ). We obtin the next theorem from Def. 6, Prop. 1 nd Thm. 1. Theorem 2 Let M = I, W, B be structure s.t. I is n interprettion strem for D t t. Then, I AS(P, D, t) iff M = (I, I), W, B is bi-equilibrium model. This llows us to chrcterize progrm equivlences which include non-trivil window opertors, s will be shown next. Equivlence We now introduce equivlence notions for strem resoning in our setting. Given timeline T, we sy set A i.e., extended toms of t, hve time references in T, if t A} T. This notion crries over nturlly for progrms P, i.e., if t occurs in P } T. Definition 10 (Equivlence Notions) Let T be timeline, D = (T, υ) be dt strem, nd let t T be time point. We sy two LARS progrms P nd Q re (i) (ordinry) equivlent (for D t t), denoted by P Q, if AS(P, D, t) = AS(Q, D, t); (ii) strongly equivlent (for D t t), denoted by P s Q, if AS(P R, D, t) = AS(Q R, D, t) for ll LARS progrms R with time references in T ; (iii) uniform equivlent (for D t t), denoted by P u Q, if AS(P F, D, t) = AS(Q F, D, t) for sets F toms with time references in T ; (iv) dt equivlent (for D t t), denoted by P d Q, if AS(P, D S, t) = AS(Q, D S, t) for ll dt strems S with timeline T. Intuitively, (i)-(iii) cn be seen s extensions of corresponding notions in ASP [Lifschitz et l., 2001; Eiter et l., 2007b] to the LARS setting. In prticulr, these notions emerge if the progrms P nd Q re ordinry logic progrms (without windows nd temporl opertors) nd we consider void dt strem D = ([0, 0], υ) t time point 0. On the other hnd, dt equivlence is well-known in the dtbse re nd plys n importnt role in strem resoning, s the possibility to drop dt is crucil to gin performnce. The ddition of ll rules resp. fcts ccounts for the nonmonotonic nture of nswer strems, s replcing ordinry equivlent progrms P nd Q in the context of other rules R might chnge nswer strems. We now chrcterize strong nd uniform equivlence by mens of bi-models. To this end, from now we tcitly restrict to bi-structures M = S, W, B such tht S L S R. By bi(p ), we denote the set of ll respective bi-models of progrm P (where D nd t re implicit). b b, c Figure 2: Tuple-bsed windows of size 3 t t = 4. Theorem 3 (Strong Equivlence) Let D = (T, υ) be dt strem, t T, nd let P nd Q be LARS bi progrms. Then, P s Q (for D t t) iff bi(p ) = bi(q) (for D t t). Furthermore, we lso chrcterize uniform equivlence in terms of bi-entilment. Let M LR = (S L, S R ), W, B nd M RR = (S R, S R ), W, B. Theorem 4 (Uniform Equivlence) P u Q iff (i) for ech M RR, M RR bi(p ) iff M RR bi(q), nd (ii) for ech M LR, where S L S R, M LR bi(p ) (resp. M LR bi(q)) iff M bi(q) (resp. M bi(p )) for some M = (S, S R ), W, B s.t. S L S S R. The proofs of Theorems 3 nd 4 re bstrcted from those for nswer set progrms (cf. [Lifschitz et l., 2001], resp. [Eiter nd Fink, 2003]) nd exploit the following key properties: (1) the reduct of the union of two progrms is the union of their reducts (2) the reduct of set of toms F is F itself, (3) n tom evlutes to true iff it is in the interprettion strem, nd (4) structure entils the union of two progrms iff it entils ech progrm seprtely. In similr wy, lso reltivised uniform equivlence [Woltrn, 2004], denoted by P A u Q, cn be chrcterized, i.e., the condition tht AS(P F, D, t) = AS(Q F, D, t) for ll fcts F A, where A is set Notbly, dt equivlence mounts to specil cse of reltivized uniform equivlence: Consider for D = (T, υ) the set A = {@ t A E nd t T }. Then, P d Q iff P A u Q. Recll tht plin LARS llows only intensionl toms with intensionl toms in rule heds. However, this is not the cse for ll LARS bi progrms, which lso llow window opertors in rule heds. LARS Here-&-There nd Monotone Windows In Definition 7, the semntics of the window opertor ws defined in Bi-LARS by stright brnching into seprte evlution of the left nd the right strem. Consider the following lterntive semntics. Definition 11 (Recursive ) We define the following lterntive semntics for Bi-LARS. Let w {L, R}. M, t, w w α iff M, t, w α, where M = (S L, S R ), W, B nd S w = w(s w, t). This recursive vrint my in generl brek the connection between left nd right, i.e., the reltion S L S R. Exmple 4 Consider strems S L = ([0, 4], υ L ) nd S R = ([0, 4], υ R ) s depicted in Figure 2, where S L S R. Applying tuple-bsed window opertor with size 3 t t = 4 returns S L = ([1, 4], {1 {}, 3 {b}, 4 {}}) s substrem of S L, nd S R = ([3, 4], {3 {b}, 4 {, c}} for S R. We observe tht S L S R, i.e. the substrem reltion breks.

5 In Exmple 4, the window is nonmonotonic in the sense tht by incresing the input strem, toms my dispper from the output. When excluding such nonmonotonic windows, the recursive version for semntics my be eqully used. Definition 12 We cll window function w monotone, if for every strems S 1 = (T 1, υ 1 ) nd S 2 = (T 2, υ 2 ) it holds tht S 1 S 2 implies w(s 1, t) w(s 2, t) for ll t T 1, i.e., w preserves substrems. If T 1 = T 2, this extends to timelines, i.e., w(s i, t) = (T i, υ i ) implies T 1 = T 2 for ll t T 1. Likewise, we cll window opertor w monotone if the underlying window function w is monotone. E.g., time-bsed window opertors just filter dt nd thus hve this property. Proposition 3 For plin LARS with monotone windows, the window semntics of Def. 7 nd Def. 11 coincide. Using Def. 11 for vrint of Bi-LARS on monotone windows cn be seen s n extension of Here-nd-There [Heyting, 1930] underlying Equilibrium Logic [Perce, 2006]. Definition 13 (HT-entilment) HT-entilment is defined s vrint of Bi-LARS entilment (Def. 7), using insted Def. 11 for the semntics nd α := α for negtion. Bsed on HT-entilment, we obtin conservtive extension of Perce s Equilibrium Logic for LARS with monotone windows, which trets nested implictions intuitionisticlly, nd thus different from FLP-bsed semntics. Under limited nesting of negtion, the two semntics ctully coincide; e.g., for the following clss of formuls/progrms: Definition 14 (F HT, LARS HT ) By F HT we denote the clss of LARS formuls where (i) ech is monotone, (ii) ech subformul α β expresses negtion (i.e., α, s β = ), nd (iii) no negtion occurs within the scope of or nother negtion. By LARS HT we denote the clss of LARS progrms where ll formuls α, β i in rules (1) re in F HT. Note tht nested negtion must be excluded, s e.g. the rule hs the equilibrium models (, ) nd ({}, {}). Only the first one mounts to n FLP-nswer set. With n inductive rgument, one cn show tht the centrl property of Prop. 2 crries over to formuls in F HT under HT-entilment. This llows one to estblish the chrcteriztion in Theorem 1 for this setting. Thus, for LARS HT progrms, FLP-bsed nswers strems nd HT-equilibrium models coincide, nd the equivlence notions cn eqully be chrcterized by HT-entilment. Theorem 5 (LARS Here-nd-There) Theorems 1-4 lso hold for LARS HT progrms under HT-entilment. Note tht LARS HT includes plin LARS progrms with monotone windows. Computtionl Complexity As regrds the complexity of equivlence checking, different scenrios emerge. We focus here on deciding P e Q for n equivlence notion e, where the dt strem D, the progrms P, Q nd (query) time point t re given. More generl is to request equivlence t multiple or ech time point t over D, nd/or to consider evolutions of the dt strem D. For smll (polynomil) horizon round t, i.e., n intervl [t 0, t 1 ] such tht t 0 t t 1 nd t 1 t 0 is polynomilly bounded, this essentilly reduces to polynomilly mny such questions. This is in line with the view tht strem resoning my lose informtion, i.e., query results over the full history nd the reduced dt my be different. Setup. We dopt the ssumptions in [Beck et l., 2015b], in prticulr tht relevnt toms re confined to A, the bckground B nd the window functions W re fixed nd cn be polynomilly evluted. Then, both model checking nd stisfibility testing for rbitrry LARS formuls is PSPACEcomplete [Beck et l., 2015b], s nswer strem checking nd deciding nswer strem existence. However, we note: Lemm 2 (cf. [Beck et l., 2015b]) For LARS formuls α without nested windows, deciding M, t α is polynomil nd deciding stisfibility of α wrt. timeline T nd time point t is NP-complete. The sme holds for window nesting depth bounded by constnt k. In prctice, bounded nesting of windows will pply; thus we dopt this ssumption. As n esy consequence, we get: Corollry 1 Given bi-structure M, time point t, nd (window-bounded) LARS formul α, deciding M, t α is fesible in polynomil time. Besides plin LARS, we study here the following frgment. Strtified LARS progrms extend the usul notion of strtified logic progrms by llowing constrints nd building the dependency grph s follows. Formuls of the t nd α re the nodes, where A, t is time point, nd α occurs only in rule body s β i. Reltive to D nd t, toms re identified t, nd edges re dded in the grph s usul, where lso n (negtion-style) edge from α to t is dded such tht the vlue of α t t depends on the one of t t. As this depends on the semntics of the window opertor, for simple syntctic criterion we ssume here tht this is only the tom in α; e.g. time-bsed windows stisfy this property. Strtified LARS progrms re strem-strtified LARS progrms in [Beck et l., 2015] nd cn be evluted bottom up using n itertive fixed-point computtion to obtin n nswer strem (which exists if no constrint is violted). Complexity results. Our results re compctly summrized in Tble 1. Besides the progrm clsses, we distinguish between only monotonic nd possible nonmonotonic windows. As it ppers, the complexities of the vrious problems rnges from P to Π p 2. In most of the cses, the upper bound is n immedite or esy consequence of Lemm 2 nd the chrcteriztions of nswer strems nd equivlences from bove. In prticulr, deciding strong equivlence is lwys in conp, while deciding nswer strem existence resp. refuting uniform or dt equivlence cn be done in nondeterministic polynomil time using n NP orcle to verify guess for n nswer strem resp. counterexmple to equivlence. For strtified progrms, the fixed-point computtion of the unique nswer strem is fesible in polynomil time; this explins the P-entries. Fixed-point computtion is lso fesible on the reduct P M,t of plin LARS progrm with monotone windows to check minimlity of M, s here negtive literls

6 AS(P, D, t) / P o Q P e Q, e = s / u / d mon nonmon plin LARS NP / conp conp/ conp / conp Σ p 2 / Πp 2 conp/ Π p 2 / Πp 2 strtified P / P P / P conp / conp / conp conp / conp / conp Tble 1: Complexity of consistency nd equivlence checking for D t t (entries denote completeness results) cn be dropped in P M,t. This explins why nswer strem existence / ordinry equivlence is in NP/ conp. As for the lower bounds, deciding P u Q is reducible to deciding P d Q. Indeed, given ordinry logic progrms P nd Q on A, let A d be copy of A nd let P d = P R d nd Q d = Q R d, where R d = { d A}. Then, P nd Q re uniformly equivlent (wrt. A) iff P d nd Q d re dt equivlent wrt. A d. This cn be extended to LARS progrms (where window opertors possibly must be dpted), using t d for the time points t. Thus, for the hrdness results, it is remins to consider uniform equivlence. Mny of the lower bounds re then inherited from the complexity of the respective notions for ordinry logic progrms [Eiter et l., 2007b]. In prticulr, plin LARS progrms subsume norml logic progrms, for which deciding nswer strem existence is NP-complete, while deciding uniform resp. strong equivlence is conp-complete (even for cyclic, i.e., recursion-free progrms [Eiter et l., 2007]). Wht remins re the Σ p 2-hrdness of nswer strem existence nd Π p 2-hrdness of ordinry equivlence nd uniform equivlence, respectively, for plin LARS progrms with nonmonotonic windows. These results re shown by reductions of evluting QBFs of the form X Y E(X, Y ), resp. X Y E(X, Y ). Actully, the proofs estblish them for plin progrms without negtion (i.e., for Horn progrms); they hinge on techniques in [Eiter nd Gottlob, 1995] nd [Eiter nd Fink, 2003] for the respective problems on ordinry disjunctive logic progrms, but must compenste the lck of negtion nd of disjunction. We cn emulte negtion using nonmonotonic windows by the following construction. Exmple 5 To emulte for n tom, we crete window opertor with n ssocited window function w (S, t) tht removes d from υ(t), if υ(t), where d is fresh tom, nd otherwise leves S unchnged. If d is fct in progrm P nd thus true in every model M of P t t, we hve M, t d iff M, t. Similrly we cn define window opertors Φ tht check whether model M stisfies t t polynomil-time property Φ; e.g. whether truth ssignment given in υ(t) stisfies Boolen formul. We use this to evlute E(X, Y ) using window toms. However, for spce resons, we must omit detils. Notbly, the property Φ my lso be deciding M, t ϕ where the window nesting in ϕ is bounded (cf. Lemm 2); the ltter cn be used to compile complex formuls inside window opertors wy, nd shows tht plin LARS with nonmonotonic windows is quite powerful. Relted Work nd Conclusion Lifschitz et l. [2001] introduced strong equivlence of logic progrms under ASP semntics nd showed tht it coincides with equivlence in Here-nd-There logic. Inspired by this, Eiter et l. [2007b] chrcterized uniform nd reltivized notions of equivlence in ASP in terms of HT-interprettions (H, T ). We generlize this to the LARS frmework with bistructures (S L, S R ) contining pirs of strems. As regrds optimiztion in strem resoning, to our knowledge not much foundtionl work exists. Typiclly, the interest is concentrted on deling with evolving dt, nd to develop incrementl evlution techniques, e.g., [Motik et l., 2015; Ren nd Pn, 2011; Gebser et l., 2011; Brbieri et l., 2010; Beck et l., 2015]. In the context of dt processing, [Arsu et l., 2006] studied query equivlence for the Continuous Query Lnguge (CQL), but t very elementry level. As in essence CQL cn be cptured by LARS progrms [Beck et l., 2015b], results on LARS equivlence my be fruitfully pplied in this context s well. Nturlly, strem resoning reltes to temporl resoning; in [Cblr nd Veg, 2007], nonmonotonic Liner Temporl Equilibrium Logic (TEL) ws presented s n extension of Perce s Equilibrium Logic [2006] to liner time logic (LTL), defining temporl stble models over infinite structures. Notbly, strong equivlence for TEL theories mounts to equivlence in the underlying Temporl Here-nd-There logic [Agudo et l., 2008; Cblr nd Diéguez, 2014]. However, TEL differs from LARS in severl respects. LARS ims primrily t finite (single-pth) structures, nd the notion of window, which requires to go beyond the HT setting, hs no counterprt in TEL. Furthermore, the temporl opertors in LARS re more gered to ccess of dt in windows in prctice. Also the complexity of TEL, extensively studied in [Bozzelli nd Perce, 2015], nd LARS is different: model checking for (unbounded) LARS formuls resp. progrms is PSPACE-complete, while for LTL underlying TEL it is polynomil in our finite pth setting (in fct, efficiently prllelizble [Kuhtz nd Finkbeiner, 2009]). Outlook. In future work, our studies cn be extended in severl directions. Aprt from other notions of equivlence, dditionl progrm clsses re of prcticl relevnce. In prticulr, by confining to widely used time-bsed nd tuple-bsed window opertors one might exploit more specific properties thn by the distinction of monotone vs. nonmonotone ones. Relted to this is identifying mximl (reltive to some criteri) frgments where Here-nd-There semntics coincides with Bi-LARS, which is tilored for FLP. Furthermore, one might introduce window opertors to the more expressive temporl equilibrium logic. Aprt from potentil extensions of Bi-LARS to cpture ccording semntics, combining nonmonotonic temporl resoning with fetures to drop dt is n intriguing issue. Moreover, besides semntic lso syntctic criteri for progrm equivlence re prcticlly importnt. In prticulr, finding norml forms in reltion to prominent window opertors will directly support the optimiztion of progrms for resoning over streming dt. Acknowledgments. We thnk Andres Humenberger for his ssistnce in the erly phse of this work.

7 References [Agudo et l., 2008] Felicidd Agudo, Pedro Cblr, Gilberto Pérez, nd Concepción Vidl. Strongly equivlent temporl logic progrms. In JELIA, [Arsu et l., 2006] Arvind Arsu, Shivnth Bbu, nd Jennifer Widom. The CQL continuous query lnguge: semntic foundtions nd query execution. VLDB J., 15(2): , [Brbieri et l., 2010] Dvide Frncesco Brbieri, Dniele Brg, Stefno Ceri, Emnuele Dell Vlle, nd Michel Grossniklus. Incrementl resoning on strems nd rich bckground knowledge. In ESWC 2010, pges 1 15, [Brbieri et l., 2010b] Dvide Frncesco Brbieri, Dniele Brg, Stefno Ceri, Emnuele Dell Vlle, nd Michel Grossniklus. Querying RDF strems with C-SPARQL. SIGMOD Record, 39(1):20 26, [Beck et l., 2015] Hrld Beck, Minh Do-Trn, nd Thoms Eiter. Answer updte for rule-bsed strem resoning. In IJCAI, [Beck et l., 2015b] Hrld Beck, Minh Do-Trn, Thoms Eiter, nd Michel Fink. LARS: A logic-bsed frmework for nlyzing resoning over strems. In AAAI, [Bozzelli nd Perce, 2015] Lur Bozzelli nd Dvid Perce. On the complexity of temporl equilibrium logic. In 30th Annul ACM/IEEE Symposium on Logic in Computer Science, LICS 2015, Kyoto, Jpn, July 6-10, 2015, pges IEEE, [Brewk et l., 2011] Gerd Brewk, Thoms Eiter, nd Miroslw Truszczyński. Answer set progrmming t glnce. Communictions of the ACM, 54(12):92 103, [Cblr nd Diéguez, 2014] Pedro Cblr nd Mrtín Diéguez. Strong equivlence of non-monotonic temporl theories. In KR, [Cblr nd Veg, 2007] Pedro Cblr nd Gilberto Pérez Veg. Temporl equilibrium logic: A first pproch. In Computer Aided Systems Theory - EUROCAST 2007, pges , [Do et l., 2011] Thng M. Do, Seng Wi Loke, nd Fei Liu. Answer set progrmming for strem resoning. In AI, pges , [Eiter nd Fink, 2003] Thoms Eiter nd Michel Fink. Uniform equivlence of logic progrms under the stble model semntics. In ICLP, [Eiter nd Gottlob, 1995] T. Eiter nd G. Gottlob. On the Computtionl Cost of Disjunctive Logic Progrmming: Propositionl Cse. Annls of Mthemtics nd Artificil Intelligence, 15(3/4): , [Eiter et l., 2007] T. Eiter, M. Fink, H. Tompits, nd S. Woltrn. Complexity results for checking equivlence of strtified logic progrms. In IJCAI, [Eiter et l., 2007b] Thoms Eiter, Michel Fink, nd Stefn Woltrn. Semnticl chrcteriztions nd complexity of equivlences in nswer set progrmming. ACM Trnsctions on Computtionl Logic, 8(3), July [Fber et l., 2004] Wolfgng Fber, Nicol Leone, nd Gerld Pfeifer. Recursive ggregtes in disjunctive logic progrms: Semntics nd complexity. In JELIA, [Gebser et l., 2011] Mrtin Gebser, Orkunt Sbuncu, nd Torsten Schub. An incrementl nswer set progrmming bsed system for finite model computtion. AI Commun., 24(2): , [Gebser et l., 2012] Mrtin Gebser, Torsten Grote, Rolnd Kminski, Philipp Obermeier, Orkunt Sbuncu, nd Torsten Schub. Strem resoning with nswer set progrmming. Preliminry report. In KR, [Gelfond nd Lifschitz, 1991] M. Gelfond nd V. Lifschitz. Clssicl negtion in logic progrms nd disjunctive dtbses. New Genertion Computing, 9: , [Heyting, 1930] Arend Heyting. Die formlen Regeln der intuitionistischen Logik. In Sitzungsberichte der preußischen Akdemie der Wissenschften. phys.-mth. Klsse, pges 42 65, 57 71, , [Kuhtz nd Finkbeiner, 2009] Lrs Kuhtz nd Bernd Finkbeiner. LTL pth checking is efficiently prllelizble. In ICALP, [Lifschitz et l., 2001] Vldimir Lifschitz, Dvid Perce, nd Agustín Vlverde. Strongly equivlent logic progrms. ACM Trns. Comput. Log., 2(4): , [Motik et l., 2015] Boris Motik, Yvor Nenov, Robert Piro, nd In Horrocks. Incrementl Updte of Dtlog Mterilistion: The Bckwrd/Forwrd Algorithm. In AAAI, [Perce, 2006] Dvid Perce. Equilibrium logic. Annls of Mthemtics nd Artificil Intelligence, 47(1-2):3 41, [Ren nd Pn, 2011] Yun Ren nd Jeff Z. Pn. Optimising ontology strem resoning with truth mintennce system. In CIKM, pges , [Turner, 2001] Hudson Turner. Strong equivlence for logic progrms nd defult theories (mde esy). In LPNMR, [Woltrn, 2004] Stefn Woltrn. Chrcteriztions for reltivized notions of equivlence in nswer set progrmming. In JELIA, 2004.

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Advanced 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 information

The Regulated and Riemann Integrals

The 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 information

Handout: Natural deduction for first order logic

Handout: 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 information

Chapter 0. What is the Lebesgue integral about?

Chapter 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 information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties 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 information

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar) Lecture 3 (5.3.2018) (trnslted nd slightly dpted from lecture notes by Mrtin Klzr) Riemnn integrl Now we define precisely the concept of the re, in prticulr, the re of figure U(, b, f) under the grph of

More information

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Duality # 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 information

N 0 completions on partial matrices

N 0 completions on partial matrices N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver

More information

Riemann Sums and Riemann Integrals

Riemann 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 information

KNOWLEDGE-BASED AGENTS INFERENCE

KNOWLEDGE-BASED AGENTS INFERENCE AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to

More information

Riemann Sums and Riemann Integrals

Riemann 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 information

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Unit #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 information

The 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 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 information

5.7 Improper Integrals

5.7 Improper Integrals 458 pplictions of definite integrls 5.7 Improper Integrls In Section 5.4, we computed the work required to lift pylod of mss m from the surfce of moon of mss nd rdius R to height H bove the surfce of the

More information

Integral points on the rational curve

Integral 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 information

MAA 4212 Improper Integrals

MAA 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 information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE 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 information

UNIFORM 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 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 information

p-adic Egyptian Fractions

p-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 information

Math 1B, lecture 4: Error bounds for numerical methods

Math 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 information

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes Jim Lmbers MAT 169 Fll Semester 2009-10 Lecture 4 Notes These notes correspond to Section 8.2 in the text. Series Wht is Series? An infinte series, usully referred to simply s series, is n sum of ll of

More information

Review of Riemann Integral

Review 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 information

7.2 The Definite Integral

7.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 information

Review of Calculus, cont d

Review 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 information

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 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 information

1.9 C 2 inner variations

1.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

A 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. 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 information

1 Online Learning and Regret Minimization

1 Online Learning and Regret Minimization 2.997 Decision-Mking in Lrge-Scle Systems My 10 MIT, Spring 2004 Hndout #29 Lecture Note 24 1 Online Lerning nd Regret Minimiztion In this lecture, we consider the problem of sequentil decision mking in

More information

Frobenius numbers of generalized Fibonacci semigroups

Frobenius numbers of generalized Fibonacci semigroups Frobenius numbers of generlized Fiboncci semigroups Gretchen L. Mtthews 1 Deprtment of Mthemticl Sciences, Clemson University, Clemson, SC 29634-0975, USA gmtthe@clemson.edu Received:, Accepted:, Published:

More information

Improper Integrals, and Differential Equations

Improper 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 information

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: 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 information

A Framework for Efficient Representative Summarization of RDF Graphs

A Framework for Efficient Representative Summarization of RDF Graphs A Frmework for Efficient Representtive Summriztion of RDF Grphs Šejl Čebirić, Frnçois Gosdoué, Ion Mnolescu To cite this version: Šejl Čebirić, Frnçois Gosdoué, Ion Mnolescu. A Frmework for Efficient Representtive

More information

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)

More information

1 The Lagrange interpolation formula

1 The Lagrange interpolation formula Notes on Qudrture 1 The Lgrnge interpoltion formul We briefly recll the Lgrnge interpoltion formul. The strting point is collection of N + 1 rel points (x 0, y 0 ), (x 1, y 1 ),..., (x N, y N ), with x

More information

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Riemann is the Mann! (But Lebesgue may besgue to differ.) Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >

More information

Euler, Ioachimescu and the trapezium rule. G.J.O. Jameson (Math. Gazette 96 (2012), )

Euler, 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 information

Recitation 3: More Applications of the Derivative

Recitation 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 information

Week 10: Line Integrals

Week 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 information

Riemann Integrals and the Fundamental Theorem of Calculus

Riemann Integrals and the Fundamental Theorem of Calculus Riemnn Integrls nd the Fundmentl Theorem of Clculus Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University September 16, 2013 Outline Grphing Riemnn Sums

More information

The practical version

The 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 information

arxiv:math/ v2 [math.ho] 16 Dec 2003

arxiv: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 information

New Expansion and Infinite Series

New 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 information

Theoretical foundations of Gaussian quadrature

Theoretical 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 information

We partition C into n small arcs by forming a partition of [a, b] by picking s i as follows: a = s 0 < s 1 < < s n = b.

We partition C into n small arcs by forming a partition of [a, b] by picking s i as follows: a = s 0 < s 1 < < s n = b. Mth 255 - Vector lculus II Notes 4.2 Pth nd Line Integrls We begin with discussion of pth integrls (the book clls them sclr line integrls). We will do this for function of two vribles, but these ides cn

More information

Bernoulli Numbers Jeff Morton

Bernoulli 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 information

Nondeterminism and Nodeterministic Automata

Nondeterminism 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 information

Classical Mechanics. From Molecular to Con/nuum Physics I WS 11/12 Emiliano Ippoli/ October, 2011

Classical Mechanics. From Molecular to Con/nuum Physics I WS 11/12 Emiliano Ippoli/ October, 2011 Clssicl Mechnics From Moleculr to Con/nuum Physics I WS 11/12 Emilino Ippoli/ October, 2011 Wednesdy, October 12, 2011 Review Mthemtics... Physics Bsic thermodynmics Temperture, idel gs, kinetic gs theory,

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, 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 information

Introduction to the Calculus of Variations

Introduction 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 information

On Odd and Even Cycles in Normal Logic Programs

On Odd and Even Cycles in Normal Logic Programs On Odd nd Even Cycles in Norml Logic Progrms Fngzhen Lin Deprtment of Computer Science Hong Kong University of Science nd Technology Cler Wter By, Kowloon, Hong Kong flin@cs.hst.hk Xishun Zho Institute

More information

Introduction to Group Theory

Introduction 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 information

ECO 317 Economics of Uncertainty Fall Term 2007 Notes for lectures 4. Stochastic Dominance

ECO 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 information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite 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 information

arxiv: v1 [math.ra] 1 Nov 2014

arxiv: v1 [math.ra] 1 Nov 2014 CLASSIFICATION OF COMPLEX CYCLIC LEIBNIZ ALGEBRAS DANIEL SCOFIELD AND S MCKAY SULLIVAN rxiv:14110170v1 [mthra] 1 Nov 2014 Abstrct Since Leibniz lgebrs were introduced by Lody s generliztion of Lie lgebrs,

More information

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams Chpter 4 Contrvrince, Covrince, nd Spcetime Digrms 4. The Components of Vector in Skewed Coordintes We hve seen in Chpter 3; figure 3.9, tht in order to show inertil motion tht is consistent with the Lorentz

More information

Math 360: A primitive integral and elementary functions

Math 360: A primitive integral and elementary functions Mth 360: A primitive integrl nd elementry functions D. DeTurck University of Pennsylvni October 16, 2017 D. DeTurck Mth 360 001 2017C: Integrl/functions 1 / 32 Setup for the integrl prtitions Definition:

More information

Math 8 Winter 2015 Applications of Integration

Math 8 Winter 2015 Applications of Integration Mth 8 Winter 205 Applictions of Integrtion Here re few importnt pplictions of integrtion. The pplictions you my see on n exm in this course include only the Net Chnge Theorem (which is relly just the Fundmentl

More information

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions Physics 6C Solution of inhomogeneous ordinry differentil equtions using Green s functions Peter Young November 5, 29 Homogeneous Equtions We hve studied, especilly in long HW problem, second order liner

More information

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system.

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system. Section 24 Nonsingulr Liner Systems Here we study squre liner systems nd properties of their coefficient mtrices s they relte to the solution set of the liner system Let A be n n Then we know from previous

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Lerning Tom Mitchell, Mchine Lerning, chpter 13 Outline Introduction Comprison with inductive lerning Mrkov Decision Processes: the model Optiml policy: The tsk Q Lerning: Q function Algorithm

More information

Quadratic Forms. Quadratic Forms

Quadratic 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 information

Notes on length and conformal metrics

Notes on length and conformal metrics Notes on length nd conforml metrics We recll how to mesure the Eucliden distnce of n rc in the plne. Let α : [, b] R 2 be smooth (C ) rc. Tht is α(t) (x(t), y(t)) where x(t) nd y(t) re smooth rel vlued

More information

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015 Advnced Clculus: MATH 410 Uniform Convergence of Functions Professor Dvid Levermore 11 December 2015 12. Sequences of Functions We now explore two notions of wht it mens for sequence of functions {f n

More information

Lecture 9: LTL and Büchi Automata

Lecture 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 information

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Session Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

CALCULUS WITHOUT LIMITS

CALCULUS WITHOUT LIMITS CALCULUS WITHOUT LIMITS The current stndrd for the clculus curriculum is, in my opinion, filure in mny spects. We try to present it with the modern stndrd of mthemticl rigor nd comprehensiveness but of

More information

Math 61CM - Solutions to homework 9

Math 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 information

f(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

f(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 information

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity Volume 2, Number, July 204, 65-82 ISSN Print: 2345-5853 Online: 2345-586 Dully qusi-de Morgn Stone semi-heyting lgebrs II. Regulrity Hnmntgoud P. Snkppnvr Abstrct. This pper is the second of two prt series.

More information

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

New data structures to reduce data size and search time

New data structures to reduce data size and search time New dt structures to reduce dt size nd serch time Tsuneo Kuwbr Deprtment of Informtion Sciences, Fculty of Science, Kngw University, Hirtsuk-shi, Jpn FIT2018 1D-1, No2, pp1-4 Copyright (c)2018 by The Institute

More information

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

More information

The Henstock-Kurzweil integral

The Henstock-Kurzweil integral fculteit Wiskunde en Ntuurwetenschppen The Henstock-Kurzweil integrl Bchelorthesis Mthemtics June 2014 Student: E. vn Dijk First supervisor: Dr. A.E. Sterk Second supervisor: Prof. dr. A. vn der Schft

More information

Applicable Analysis and Discrete Mathematics available online at

Applicable Analysis and Discrete Mathematics available online at Applicble Anlysis nd Discrete Mthemtics vilble online t http://pefmth.etf.rs Appl. Anl. Discrete Mth. 4 (2010), 23 31. doi:10.2298/aadm100201012k NUMERICAL ANALYSIS MEETS NUMBER THEORY: USING ROOTFINDING

More information

Parse trees, ambiguity, and Chomsky normal form

Parse 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 information

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility) CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if

More information

Heat flux and total heat

Heat flux and total heat Het flux nd totl het John McCun Mrch 14, 2017 1 Introduction Yesterdy (if I remember correctly) Ms. Prsd sked me question bout the condition of insulted boundry for the 1D het eqution, nd (bsed on glnce

More information

How 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?

How 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 information

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

Exam 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 information

CS 275 Automata and Formal Language Theory

CS 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 information

Lecture 13 - Linking E, ϕ, and ρ

Lecture 13 - Linking E, ϕ, and ρ Lecture 13 - Linking E, ϕ, nd ρ A Puzzle... Inner-Surfce Chrge Density A positive point chrge q is locted off-center inside neutrl conducting sphericl shell. We know from Guss s lw tht the totl chrge on

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State 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 information

Bisimulation. R.J. van Glabbeek

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 information

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

ODE: Existence and Uniqueness of a Solution

ODE: Existence and Uniqueness of a Solution Mth 22 Fll 213 Jerry Kzdn ODE: Existence nd Uniqueness of Solution The Fundmentl Theorem of Clculus tells us how to solve the ordinry differentil eqution (ODE) du = f(t) dt with initil condition u() =

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = 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 information

LECTURE. INTEGRATION AND ANTIDERIVATIVE.

LECTURE. INTEGRATION AND ANTIDERIVATIVE. ANALYSIS FOR HIGH SCHOOL TEACHERS LECTURE. INTEGRATION AND ANTIDERIVATIVE. ROTHSCHILD CAESARIA COURSE, 2015/6 1. Integrtion Historiclly, it ws the problem of computing res nd volumes, tht triggered development

More information

Continuous Random Variables

Continuous 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 information

MATH 144: Business Calculus Final Review

MATH 144: Business Calculus Final Review MATH 144: Business Clculus Finl Review 1 Skills 1. Clculte severl limits. 2. Find verticl nd horizontl symptotes for given rtionl function. 3. Clculte derivtive by definition. 4. Clculte severl derivtives

More information

Numerical Integration

Numerical Integration Chpter 5 Numericl Integrtion Numericl integrtion is the study of how the numericl vlue of n integrl cn be found. Methods of function pproximtion discussed in Chpter??, i.e., function pproximtion vi the

More information

Lecture 2: Fields, Formally

Lecture 2: Fields, Formally Mth 08 Lecture 2: Fields, Formlly Professor: Pdric Brtlett Week UCSB 203 In our first lecture, we studied R, the rel numbers. In prticulr, we exmined how the rel numbers intercted with the opertions of

More information

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

NUMERICAL 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 information

Zero-Sum Magic Graphs and Their Null Sets

Zero-Sum Magic Graphs and Their Null Sets Zero-Sum Mgic Grphs nd Their Null Sets Ebrhim Slehi Deprtment of Mthemticl Sciences University of Nevd Ls Vegs Ls Vegs, NV 89154-4020. ebrhim.slehi@unlv.edu Abstrct For ny h N, grph G = (V, E) is sid to

More information

Best Approximation in the 2-norm

Best Approximation in the 2-norm Jim Lmbers MAT 77 Fll Semester 1-11 Lecture 1 Notes These notes correspond to Sections 9. nd 9.3 in the text. Best Approximtion in the -norm Suppose tht we wish to obtin function f n (x) tht is liner combintion

More information

Stuff You Need to Know From Calculus

Stuff You Need to Know From Calculus Stuff You Need to Know From Clculus For the first time in the semester, the stuff we re doing is finlly going to look like clculus (with vector slnt, of course). This mens tht in order to succeed, you

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

ACCESS 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 information

4 7x =250; 5 3x =500; Read section 3.3, 3.4 Announcements: Bell Ringer: Use your calculator to solve

4 7x =250; 5 3x =500; Read section 3.3, 3.4 Announcements: Bell Ringer: Use your calculator to solve Dte: 3/14/13 Objective: SWBAT pply properties of exponentil functions nd will pply properties of rithms. Bell Ringer: Use your clcultor to solve 4 7x =250; 5 3x =500; HW Requests: Properties of Log Equtions

More information

II. Integration and Cauchy s Theorem

II. Integration and Cauchy s Theorem MTH6111 Complex Anlysis 2009-10 Lecture Notes c Shun Bullett QMUL 2009 II. Integrtion nd Cuchy s Theorem 1. Pths nd integrtion Wrning Different uthors hve different definitions for terms like pth nd curve.

More information

A 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. 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 information