A Program That Simplifies Regular Expressions (Tool paper)

07/12/2023
by   Baudouin Le Charlier, et al.
0

This paper presents the main features of a system that aims to transform regular expressions into shorter equivalent expressions. The system is also capable of computing other operations useful for simplification, such as checking the inclusion of regular languages. The main novelty of this work is that it combines known but distinct ways of representing regular languages into a global unified data structure that makes the operations more efficient. In addition, representations of regular languages are dynamically reduced as operations are performed on them. Expressions are normalized and represented by a unique identifier (an integer). Expressions found to be equivalent (i.e. denoting the same regular language) are grouped into equivalence classes from which a shortest representative is chosen. The article briefly describes the main algorithms working on the global data structure. Some of them are direct adaptations of well-known algorithms, but most of them incorporate new ideas, which are really necessary to make the system efficient. Finally, to show its usefulness, the system is applied to some examples from the literature. Statistics on randomly generated sets of expressions are also provided.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/17/2021

Games for Succinctness of Regular Expressions

We present a version of so called formula size games for regular express...
research
09/07/2017

Beyond ωBS-regular Languages: ωT-regular Expressions and Counter-Check Automata

In the last years, various extensions of ω-regular languages have been p...
research
12/08/2022

Technical Report: Match-reference regular expressions and lenses

A lens is a single program that specifies two data transformations at on...
research
08/30/2017

Model Checking Regular Language Constraints

Even the fastest SMT solvers have performance problems with regular expr...
research
06/30/2020

An Approach to Regular Separability in Vector Addition Systems

We study the problem of regular separability of languages of vector addi...
research
02/18/2021

Regular Expressions for Fast-response COVID-19 Text Classification

Text classifiers are at the core of many NLP applications and use a vari...
research
10/30/2022

gMeta: Template-based Regular Expression Generation over Noisy Examples

Regular expressions (regexes) are widely used in different fields of com...

Please sign up or login with your details

Forgot password? Click here to reset