Arrow Research search
Back to Highlights

Highlights 2022

Checking Regular Invariance under Tightly-Controlled String Modifications

Conference Abstract Program Logic in Computer Science ยท Theoretical Computer Science

Abstract

We introduce a model for transforming strings, that provides fine control over what modifications are allowed. The model consists of actions, each of which is enabled only when the input string conforms to a predefined template. A template can break the input up into multiple fields, and constrain the contents of each of the fields to be from pre-defined regular languages. The template can also constrain two fields to be duplicates of each other. If the input string conforms to the template, the action can be performed to modify the string. The output consists of the contents of the fields, possibly in a different order, possibly with different numbers of occurrences. Optionally, the action can also apply transductions on the contents of the fields before outputting. For example, the sentence "DLT will be held <cap: 1>online</cap: 1> if <cap: 2>covid-19</cap: 2> cases surge. " conforms to the template x<cap: y>z</cap: y>w}. The output of the action can be defined as xf(z)w, where f is defined by a transducer. If f just capitalises its input, then we can perform this action twice to get the output "DLT will be held ONLINE if COVID-19 cases surge. " Notice that, if we did not have the identifiers specified by y, then it will capitalise parts of the input text not intended to be capitalised. We want to check that whenever the input comes from a given regular language, the output of any action also belongs to that language. We call this problem regular invariance checking. We show that this problem is decidable and is PSPACE-complete in general. For some restricted cases where there are no variable repetitions in the source and target templates (or patterns) and the regular language is given by a DFA, we show that this problem is co-NP-complete. We show that even in this restricted case, the problem is W[1]-hard with the length of the pattern as the parameter. This work is in collaboration with C. Aiswarya and M. Praveen from Chennai Mathematical Institute and is accepted to be published in May at DLT 2022.

Authors

Keywords

No keywords are indexed for this paper.

Context

Venue
Highlights of Logic, Games and Automata
Archive span
2013-2025
Indexed papers
1236
Paper id
634960430350008080