# A general framework for the derivation of regular expressions

Pascal Caron; Jean-Marc Champarnaud; Ludovic Mignot

RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications (2014)

- Volume: 48, Issue: 3, page 281-305
- ISSN: 0988-3754

## Access Full Article

top## Abstract

top## How to cite

topCaron, Pascal, Champarnaud, Jean-Marc, and Mignot, Ludovic. "A general framework for the derivation of regular expressions." RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications 48.3 (2014): 281-305. <http://eudml.org/doc/273046>.

@article{Caron2014,

abstract = {The aim of this paper is to design a theoretical framework that allows us to perform the computation of regular expression derivatives through a space of generic structures. Thanks to this formalism, the main properties of regular expression derivation, such as the finiteness of the set of derivatives, need only be stated and proved one time, at the top level. Moreover, it is shown how to construct an alternating automaton associated with the derivation of a regular expression in this general framework. Finally, Brzozowski’s derivation and Antimirov’s derivation turn out to be a particular case of this general scheme and it is shown how to construct a DFA, a NFA and an AFA for both of these derivations.},

author = {Caron, Pascal, Champarnaud, Jean-Marc, Mignot, Ludovic},

journal = {RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications},

keywords = {regular expressions; alternating automata; derivation; partial derivation},

language = {eng},

number = {3},

pages = {281-305},

publisher = {EDP-Sciences},

title = {A general framework for the derivation of regular expressions},

url = {http://eudml.org/doc/273046},

volume = {48},

year = {2014},

}

TY - JOUR

AU - Caron, Pascal

AU - Champarnaud, Jean-Marc

AU - Mignot, Ludovic

TI - A general framework for the derivation of regular expressions

JO - RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications

PY - 2014

PB - EDP-Sciences

VL - 48

IS - 3

SP - 281

EP - 305

AB - The aim of this paper is to design a theoretical framework that allows us to perform the computation of regular expression derivatives through a space of generic structures. Thanks to this formalism, the main properties of regular expression derivation, such as the finiteness of the set of derivatives, need only be stated and proved one time, at the top level. Moreover, it is shown how to construct an alternating automaton associated with the derivation of a regular expression in this general framework. Finally, Brzozowski’s derivation and Antimirov’s derivation turn out to be a particular case of this general scheme and it is shown how to construct a DFA, a NFA and an AFA for both of these derivations.

LA - eng

KW - regular expressions; alternating automata; derivation; partial derivation

UR - http://eudml.org/doc/273046

ER -

## References

top- [1] V. Antimirov, Partial derivatives of regular expressions and finite automaton constructions. Theoret. Comput. Sci.155 (1996) 291–319. Zbl0872.68120MR1379579
- [2] V.M. Antimirov and P.D. Mosses, Rewriting extended regular expressions. Theoret. Comput. Sci.143 (1995) 51–72. Zbl0873.68104MR1330673
- [3] G. Berry and R. Sethi, From regular expressions to deterministic automata. Theoret. Comput. Sci.48 (1986) 117–126. Zbl0626.68043MR889664
- [4] J.A. Brzozowski, Derivatives of regular expressions. J. Assoc. Comput. Mach.11 (1964) 481–494. Zbl0225.94044MR174434
- [5] J.A. Brzozowski, Quotient complexity of regular languages. J. Automata, Languages and Combinatorics 15 (2010) 71–89.
- [6] J.A. Brzozowski and E.L. Leiss, On equations for regular languages, finite automata, and sequential networks. Theoret. Comput. Sci.10 (1980) 19–35. Zbl0415.68023MR549752
- [7] P. Caron, J.-M. Champarnaud and L. Mignot, Partial derivatives of an extended regular expression, in LATA, vol. 6638 of Lect. Notes Comput. Sci. Edited by A.H. Dediu, S. Inenaga and C. Martín-Vide. Springer (2011) 179–191. Zbl1330.68148
- [8] J.-M. Champarnaud, F. Ouardi and D. Ziadi, An efficient computation of the equation K-automaton of a regular K-expression. Fundam. Inform.90 (2009) 1–16. Zbl1161.68518MR2494599
- [9] J.-M. Champarnaud and D. Ziadi, Canonical derivatives, partial derivatives, and finite automaton constructions. Theoret. Comput. Sci.239 (2002) 137–163. Zbl1061.68109MR1932893
- [10] J. Clarke, An algorithm for RELAX NG validation. Implementation Report (2002).
- [11] J.-H. Conway, Regular algebra and finite machines. Chapman and Hall (1971). Zbl0231.94041
- [12] A. Ginzburg, A procedure for checking equality of regular expressions. J. ACM14 (1967) 355–362. Zbl0155.34501
- [13] L. Ilie and S. Yu, Follow automata. Inf. Comput.186 (2003) 140–162. Zbl1059.68063MR2001743
- [14] D. Krob, Differentation of K-rational expressions. Internat. J. Algebra Comput.2 (1992) 57–87. Zbl0785.68065MR1167528
- [15] S. Lombardy and J. Sakarovitch, Derivatives of rational expressions with multiplicity. Theoret. Comput. Sci.332 (2005) 141–177. Zbl1070.68074MR2122501
- [16] M. Might, D. Darais and D. Spiewak, Parsing with derivatives: a functional pearl, in ICFP, edited by M.M.T. Chakravarty, Zh. Hu and O. Danvy. ACM (2011) 189–195.
- [17] J. Myhill, Finite automata and the representation of events. WADD TR-57-624 (1957) 112–137.
- [18] A. Nerode, Linear automata transformation, in Proc. of AMS9 (1958) 541–544. Zbl0089.33403
- [19] S. Owens, J.H. Reppy and A. Turon, Regular-expression derivatives re-examined. J. Funct. Program.19 (2009) 173–190. Zbl1163.68317MR2486568
- [20] J. Sakarovitch, The language, the expression, and the (small) automaton, in CIAA, vol. 3845 of Lect. Notes Comput. Sci. Edited by J. Farré, I. Litovsky and S. Schmitz. Springer (2005) 15–30. Zbl1172.68526MR2214022
- [21] M. Sulzmann and K.Z.M. Lu, Partial derivative regular expression pattern matching. Manuscript (2007).
- [22] K. Thompson, Regular expression search algorithm. Comm. ACM11 (1968) 419–422. Zbl0164.46205

## NotesEmbed ?

topTo embed these notes on your page include the following JavaScript code on your page where you want the notes to appear.