2011
DOI: 10.4204/eptcs.49.2
|View full text |Cite
|
Sign up to set email alerts
|

On the Implementation of Dynamic Patterns

Abstract: The evaluation mechanism of pattern matching with dynamic patterns is modelled in the Pure Pattern Calculus by one single meta-rule. This contribution presents a refinement which narrows the gap between the abstract calculus and its implementation. A calculus is designed to allow reasoning on matching algorithms. The new calculus is proved to be confluent, and to simulate the original Pure Pattern Calculus. A family of new, matching-driven, reduction strategies is proposed.

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2018
2018
2018
2018

Publication Types

Select...
1

Relationship

0
1

Authors

Journals

citations
Cited by 1 publication
(2 citation statements)
references
References 7 publications
(12 reference statements)
0
2
0
Order By: Relevance
“…• H ∆ b (Γ, σ) τ contains all the anfs a such that b is a head subterm of a, and such that if b ∈ T(∆, σ) then a ∈ T(Γ + ∆, τ ). 1 It is worth noticing that, given Γ and σ, the set of anfs a such that there exists a derivation Π Γ a : σ is possibly infinite. However, the subset of those verifying a = A(Π) is finite; they are the minimal ones, those generated by the inhabitation algorithm (this is proved in Lemma 4.7).…”
Section: Inhabitation For System Pmentioning
confidence: 99%
See 1 more Smart Citation
“…• H ∆ b (Γ, σ) τ contains all the anfs a such that b is a head subterm of a, and such that if b ∈ T(∆, σ) then a ∈ T(Γ + ∆, τ ). 1 It is worth noticing that, given Γ and σ, the set of anfs a such that there exists a derivation Π Γ a : σ is possibly infinite. However, the subset of those verifying a = A(Π) is finite; they are the minimal ones, those generated by the inhabitation algorithm (this is proved in Lemma 4.7).…”
Section: Inhabitation For System Pmentioning
confidence: 99%
“…We define a pattern calculus with explicit pattern-matching called Λ p -calculus. The use of explicit pattern-matching becomes very appropriate to implement different evaluation strategies, thus giving rise to different languages with pattern-matching [11,12,1]. In all of them, an application (λp.t)u reduces to t[p/u], where the constructor [p/u] is an explicit matching, defined by means of suitable reduction rules, which are used to decide if the argument u matches the pattern p. If the matching is possible, the evaluation proceeds by computing a substitution which is applied to the body t. Otherwise, two cases may arise: either a successful matching is not possible at all, and then the term t[p/u] reduces to a failure, denoted by the constant fail, or pattern matching could potentially become possible after the application of some pertinent substitution to the argument u, in which case the reduction is simply blocked.…”
Section: Introductionmentioning
confidence: 99%