Functional programming and type systems ( MPRI 2 - 4 ) Mid - term exam 2010 - 2011
نویسنده
چکیده
A reduction relation m −→ is defined by the following reduction rules. This relation computes the simple substitution φ that can be applied to a pattern to match a particular value, or returns the undefined substitution ⊥ if no such simple substitution exists. {(p1, p2) 7→ (v1, v2)} m −→ {p1 7→ v1} ⊗ {p2 7→ v2} {K (p1, . . . , pn) 7→ K (v1, . . . , vn)} m −→ {p1 7→ v1} ⊗ . . .⊗ {pn 7→ vn} {K (p1, . . . , pn) 7→ K ′ (v1, . . . , vm)} m −→ ⊥ if K 6= K ′ or n 6= m ⊥⊗ S m −→ ⊥ φ⊗⊥ m −→ ⊥ Es[S] m −→ Es[S] if S m −→ S′
منابع مشابه
MPRI course 2-4 “Functional programming languages” Answers to the exercises
class Closure { abstract Object apply(Object arg); Object apply2(Object arg1, Object arg2) { return ((Closure)(apply(arg1))).apply(arg2); } } abstract class Closure2 extends Closure { Object apply(Object arg) { return new PartialApplication(this, arg); } abstract Object apply2(Object arg1, Object arg2); } class PartialApplication extends Closure { Closure2 fn; Object arg1;
متن کاملNormalisation and Approximation results for typeable Term Rewriting Systems (with abstraction and β-rule) Summary
There are essentially three paradigms in common use for the design of functional programming languages: the λ-calculus (LC for short), Term Rewriting Systems (TRS), and Term Graph Rewriting Systems (TGRS). The LC, or rather combinator systems, forms the underlying model for the functional programming language Miranda1 [35], TRS are used in the language OBJ [24], and TGRS form the base model for...
متن کاملReproducibility of adenosine stress cardiovascular magnetic resonance in multi-vessel symptomatic coronary artery disease
PURPOSE First-pass perfusion cardiovascular magnetic resonance (CMR) is increasingly being utilized in both clinical practice and research. However, the reproducibility of this technique remains incompletely evaluated, particularly in patients with severe coronary artery disease (CAD). The purpose of this study was to determine the inter-study reproducibility of adenosine stress CMR in patients...
متن کاملDiagnostic value of myocardial radionuclide imaging in patients with multivessel coronary disease.
BACKGROUND Myocardial perfusion radionuclide imaging (MPRI) is a noninvasive method extremely useful for evaluating ischemia in patients with coronary disease. However, the idea that this method would not be effective for patients with multivessel coronary disease is still entertained. OBJECTIVE Assess the value of MPRI with gated-SPECT for tracing pharmacological stress-induced ischemia in p...
متن کاملDecidable Problems for Counter Systems
2 This document contains a revised version of lecture notes for the advanced course " Decidable problems for counter systems " that has been delivered during ESSLLI'2010, Copenhagen, August 2010. A similar course (level M2) has been given at Département d'Informatique de l'Institut Galilée (Université Paris-Nord) for the master " Modélisation Informatique des Connaissances et du Raisonnement " ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012