← Latest papers
💻 computer science

Characterization and Decidability of FC-Definable Regular Languages

This paper demonstrates that not all regular languages are definable in the first-order logic FC and provides a decidable characterization of the FC-definable regular languages using algebraic, automata-theoretic, and concise regular expression criteria.

Original authors: Sam M. Thompson, Nicole Schweikardt, Dominik D. Freydenberger

Published 2026-07-31
📖 5 min read🧠 Deep dive

Original authors: Sam M. Thompson, Nicole Schweikardt, Dominik D. Freydenberger

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Secret Life of Words and the Logic of Patterns

Imagine you are a detective trying to solve a mystery, but instead of fingerprints or alibis, your clues are made entirely of letters and words. In the world of computer science, there is a branch called "logic" that acts like a super-powered magnifying glass. It helps us ask questions about strings of text (like "Does this sentence contain a secret code?") and get a definite yes or no answer. For a long time, the most common tool for this job was a logic that treated words like a row of lockers, where you could check if locker #5 had a 'B' or if locker #10 was empty. This worked great for simple patterns.

But then, researchers invented a new, more adventurous tool called FC. Instead of looking at individual lockers, FC looks at the words themselves as building blocks. It can say things like, "Take this chunk of text, stick it next to that chunk, and see if they match." This is like having a magic glue that can snap pieces of a puzzle together to see if they form a specific shape. This is incredibly useful for modern technology, especially for "document spanners"—the smart systems that scan through massive piles of documents (like legal contracts or medical records) to pull out specific tables of information. The big question was: Is this new magic glue powerful enough to find every regular pattern we might want to look for, or are there some patterns it simply cannot see?

The Paper's Big Discovery: The "Loop-Step" Trap

In this paper, authors Sam Thompson, Nicole Schweikardt, and Dominik Freydenberger tackle that exact question. They wanted to know exactly which regular patterns (the kind of patterns computers are really good at spotting) can be described using this new FC logic. Their answer is a mix of "yes," "no," and "here is exactly how to tell the difference."

First, they proved that FC is not all-powerful. There are perfectly normal, regular patterns that FC simply cannot define. To visualize this, imagine a maze. Some mazes are simple loops you can walk through easily. But FC has a specific weakness: it gets confused by a very specific type of maze trap they call a "loop-step cycle."

Think of a "loop-step cycle" like a dance floor with a group of dancers standing in a circle.

  • The Loop: If you play a specific song (let's call it "Song A"), every dancer spins in place and ends up exactly where they started.
  • The Step: If you play a different song ("Song B"), every dancer moves one spot to the right, passing the person next to them.
  • The Trap: If the "Song A" and "Song B" are made of different basic rhythms (meaning they aren't just repeats of the same beat), FC logic gets stuck. It can't tell the difference between a word that follows this dance pattern and one that doesn't. The authors proved that if a pattern's underlying machine (a Minimal DFA) has this specific "loop-step" dance, FC cannot describe it.

The Three Ways to Spot the Difference

The authors didn't just say "some are impossible"; they gave us three different ways to check if a pattern is safe for FC or if it's trapped in the loop-step cycle. It's like having three different keys to the same door:

  1. The Algebra Key (Group Primitive): This is a mathematical way of looking at the pattern's "fingerprint." If the pattern's fingerprint is "group primitive," it means it's safe. If the fingerprint is too messy or complex, it's not safe.
  2. The Expression Key (Star-Free Closure): This is about how you write the pattern down. The authors found that FC can describe any pattern that can be built using "star-free" expressions (patterns without the infinite "repeat forever" star symbol, but with "not" and "and" allowed) plus the ability to repeat specific, fixed words. It's like saying you can build any valid FC pattern using Lego bricks, but you can only use the "repeat" button on specific, pre-made bricks, not on custom shapes you build yourself.
  3. The Machine Key (The Loop-Step Cycle): This is the most visual one. If you draw the machine that recognizes the pattern, and you see that "loop-step" dance (where one word keeps you in place and another moves you around a circle), then FC cannot define it.

Why This Matters and What's Next

The paper proves that these three keys are actually the same thing. If a pattern fails one test, it fails all three. This is a huge deal because it gives computer scientists a clear rulebook. If you are building a system to search through documents, you now know exactly which patterns you can write in this new FC language and which ones you'll need to use a different tool for.

The authors also showed that checking if a pattern has this "loop-step" trap is a very hard problem for computers to solve—it takes a lot of computing power (specifically, it is PSPACE-complete). This means that while we have a rulebook, actually checking a huge, complex pattern might be like trying to solve a massive jigsaw puzzle in the dark.

Finally, the paper settles a debate about whether we need "regular constraints" (extra rules that force a variable to be a specific type of word) to make FC useful. The answer is a definitive yes. Since FC can't even handle all the simple regular patterns on its own, those extra constraints are absolutely necessary for it to work as a powerful tool for text searching.

In short, the authors didn't just find a new toy; they mapped the entire playground. They showed us where the swings are, where the slides are, and exactly where the "do not enter" signs are for this new logic, ensuring that future developers don't waste time trying to build a rollercoaster on a foundation that can't support it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →