What is the Definition of a Sequence in Formal Language Theory?

  • Context: Undergrad 
  • Thread starter Thread starter qqGlebqq
  • Start date Start date
  • Tags Tags
    Language System
Click For Summary

Discussion Overview

The discussion revolves around the definition of a "sequence" in the context of formal language theory, particularly how it relates to the concept of a "word." Participants explore whether a sequence should be understood as a function or simply as an ordered collection of symbols, and how this understanding fits within the framework of formal languages without relying on set theory.

Discussion Character

  • Exploratory
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants propose that a sequence is an ordered collection of symbols, emphasizing that order matters, as illustrated by examples like "tied" versus "tide."
  • Others argue that defining a sequence as a function introduces circularity, especially when formal language theory has not yet established set theory.
  • A participant suggests that the concept of a set can be understood without delving into formal set theory, viewing it as a collection of elements.
  • Definitions of a sequence are presented, including that it is an enumerated collection where order matters and repetitions are allowed, though some definitions exclude the function aspect.
  • There is mention of the variability in definitions and notations across different authors and sources in formal language theory.

Areas of Agreement / Disagreement

Participants express differing views on whether a sequence should be defined as a function or simply as an ordered collection of symbols. The discussion remains unresolved, with multiple competing definitions and interpretations presented.

Contextual Notes

There are limitations regarding the assumptions about the foundational concepts of set theory and formal language theory, as well as the potential circularity in definitions. The discussion highlights the need for clarity in terminology and the context in which these concepts are applied.

qqGlebqq
Messages
2
Reaction score
0
I've been trying to study formal systems and so what i do not understand about formal languages is why we can define a "word" as a sequence of symbols. Some sources say a sequence here is a function, but we don't have set theory yet. So my question is what is a sequence in the definition of a "word". Is it a function or something else? By something else I mean that in some books, like in Kleene's Intro to maths it seems to me like sequence is just a bunch of signs written on paper
 
Physics news on Phys.org
qqGlebqq said:
... it seems to me like sequence is just a bunch of signs written on paper
Yes, with the constraint that order matters. It is an ordered bunch of signs: ##\text{tied}\neq \text{tide}.##

I use the word word informally as a finite ordered set of letters, which I call the alphabet. To make it a language, we need a set of acceptable words among all possible bunches of signs ##\Sigma##, e.g. ##\text{teid} \not\in \text{English}## and a transition function ##\delta : S\times \Sigma \longrightarrow \Sigma## where ##S## is the finite set of possible states in which are automaton that accepts the language can be. I suspect that you are currently confusing this transition function with the term word.

The investigation of formal languages requires many very formal definitions to get rid of the ambiguity spoken languages intrinsically have.
 
Thank you!
You use the transition function (so you use set theory) in definition of formal language (and also "ordered set") , but as we didn't have FL, we didn't have set theory, so it becomes circular, no? I think I don't get from what we start and what we have in the beginning. Maybe you could advice me a book which would also help me with this confusion?
 
qqGlebqq said:
Thank you!
You use the transition function (so you use set theory) in definition of formal language (and also "ordered set") , but as we didn't have FL, we didn't have set theory, so it becomes circular, no? I think I don't get from what we start and what we have in the beginning. Maybe you could advice me a book which would also help me with this confusion?

I wouldn't call it set theory. We have to use the fundamental concept of a set without bothering any logical fallacies like Russel's paradox. Just the way you learned about the set of integers or the set of rational numbers. You can add numbers without knowing about set theory, can't you? Accepting a set as a collection of elements is sufficient in this context. Of course, some fundamental terms like empty set, subset, power set, union, intersection, and complement will be useful. That is Venn diagrams, not set theory.

And, yes, we need order very much because of the examples I gave. But that's just an enumeration. A set isn't ordered: ##\{1,2,3\} = \{3,2,1\}## but the (ordered / enumerated) sequences ##(1,2,3)\neq (3,2,1).## That is basically it.

My book is not in English, and I don't have other recommendations. My approach would be to find lecture notes on the internet. E.g. a search by "formal language + pdf" brought me to
https://www.its.caltech.edu/~matilde/FormalLanguageTheory.pdf
on the Caltech server. This should be a reliable reference.

Note that definitions and notations can vary between authors and sources. My book defines an automaton as a quintuple. Others might have less or more.

Don't think about set theory for too long, unless it will be necessary. We only need sets as a container for things - unordered, and sequences if ordered. I can't rule out that logical subtleties of set theory won't become an issue at some stage in the theory of formal languages, but certainly not at the beginning.
 
Last edited:
  • Like
Likes   Reactions: Klystron
A sequence is an enumerated collection of objects in which repetitions are allowed and order matters. (From Wikipedia.)
Although in this case the word function is excluded from the definition, a sequence is still a function whose domain is an interval of integers.

There are other definitions of a sequence.
A sequence is a list of elements with a particular order. (From Wikipedia.)
A sequence is an arrangement of two or more things in a successive order. (From …)
A sequence is the following of one thing after another. (From …)
 

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
8K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 0 ·
Replies
0
Views
8K