He informally describes a neat algorithm for deciding equivalence of regular expressions r and s: incrementally construct the relation of all (Dw(r), Dw(s)) between
Previous PDF | Next PDF |
[PDF] Equivalence of Regular Expressions and Regular Languages
12 sept 2018 · In this lecture we will formalize the equivalence between regular expressions and reg- ular languages To do so, we first need to formalize the
[PDF] 1 Equivalence of Finite Automata and Regular Expressions 2
1 Equivalence of Finite Automata and Regular Expressions Given regular expression R, will construct NFA N such that L(N) = L(R) • Given DFA M, will
[PDF] Equivalence of DFA and Regular Expressions - CUHK CSE
If R asd S are regular expressions, so are R + S, RS and R∗ Page 8 8/19 General method regular expression =⇒ NFA ∅ q0 ε q0 a ∈ Σ q0 q1 a Page 9 9/19
[PDF] Regular Expressions and the Equivalence of Programs - CORE
simple fashion For example, consider the following regular expression representation of the elemental program in Fig 1: f (~-~(p ~ r) g(~-/pg)* ,~ ~p)*(p ~ r) g,
[PDF] Proof Pearl: Regular Expression Equivalence and Relation Algebra
He informally describes a neat algorithm for deciding equivalence of regular expressions r and s: incrementally construct the relation of all (Dw(r), Dw(s)) between
[PDF] Equivalence of Regular Languages and FSMs
Do Homework 8 Theorem: The set of languages expressible using regular expressions (the regular languages) equals the class of languages recognizable by
[PDF] Lecture 2: Regular Expression
8 jan 2015 · thus equivalent to DFA, NFA) Proof (Regular expression ⇒ NFA with ϵ-moves) We will prove, if L is accepted by a regular expression, then
[PDF] erasmus 2020/21
[PDF] erasmus application example
[PDF] erasmus darwin
[PDF] erasmus definition
[PDF] erasmus exchange program
[PDF] erasmus huis training centre
[PDF] erasmus motivation letter sample
[PDF] erasmus mundus interview
[PDF] erasmus mundus mechanical engineering
[PDF] erasmus mundus scholarship how to apply
[PDF] erasmus of rotterdam
[PDF] erasmus plus apply
[PDF] erasmus plus courses
[PDF] erasmus programme post 2020
Noname manuscript No.
(will be inserted by the editor)Proof Pearl: Regular Expression Equivalence and Relation AlgebraAlexander Krauss and Tobias Nipkow
the date of receipt and acceptance should be inserted later AbstractWe describe and verify an elegant equivalence checker for regular expres- sions. It works by constructing a bisimulation relation between (derivatives of) regular expressions. By mapping regular expressions to binary relations, an automatic and complete proof method for (in)equalities of binary relations over union, composition and (re exive) transitive closure is obtained. The verication is carried out in the theorem prover Isabelle/HOL, yielding a practically useful decision procedure.1 Introduction
The equational theory of regular expressions is convenient for reasoning about binary relations. For example, the theories of Thiemann and Sternagel [ 12 ] contain the lemmaS(SSR[R)SSR,
followed by a long-winded low-level proof. Here,RandSare binary relations,is re- lation composition and is the re exive transitive closure. However, this is just an in- equality of regular expressions (interpreted over relations instead of regular languages), which is a decidable theory. The purpose of this proof pearl is to a verify a simple decision procedure for regular expression equivalences, and to show how to reduce equations between binary relations to equations over languages. Put together, this yields an automatic proof procedure for relation algebra equalities (and inequalities, sinceABis equivalent toA[B=B) that proves statements like the one above automatically. We formalized and veried the procedure in the theorem prover Isabelle/HOL. The background of this research is the desire for completely formalized and veried decision procedures that do not rely on any unveried components or informal pen- and-paper proofs. This level of perfection has become the standard in the interactive theorem proving community but can be non-trivial to achieve. Therefore, our contri- bution is not the presentation of a new algorithm or proof but the concise, elegant, and fully mechanized presentation of a known algorithm (though probably not yet as widely known as it deserves) and its direct application to interactive theorem proving.The standard equivalence test for two regular expressions goes like this:Institut fur Informatik, Technische Universitat Munchen
2 1. Con vertb othregular expressions in tonite automata. 2. Mak ethe automata deterministic, and p ossiblyminimize them, and then compare them for language equality. This proves that the two expressions denote the same regular language. Due to Kozen's theorem [ 7 ], the equality must then be a theorem in all Kleene Algebras, since regular languages are the initial model of Kleene Algebras. Thus, to apply the procedure to relations, one can 3.