Codification of a formal language in set theory.How to define the class of terms of a formal language?Some questions concerning set-theoretic models of first-order theoriesFinding a grammar for a formal languageHow to avoid perceived circularity when defining a formal language?Is it possible to formalize all mathematics in terms of ordinals only?Why is an alphabet a subset of the set of strings that it generates?Formally proving the consistency of a formal theoryFoundations of mathematics , proof theory and analogies with internal mechanism of programming languageA formal language problemAxiomatic formal language theoryConnecting models of Set Theory in Jech's text with Model Theory (pages 161-167)
The meaning of the "at the of"
Want to switch to tankless, but can I use my existing wiring?
Need some help with my first LaTeX drawing…
Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?
How is the Swiss post e-voting system supposed to work, and how was it wrong?
Welcoming 2019 Pi day: How to draw the letter π?
What does it mean when multiple 々 marks follow a 、?
What has been your most complicated TikZ drawing?
Make a transparent 448*448 image
Unreachable code, but reachable with exception
What is the likely impact on flights of grounding an entire aircraft series?
When were linguistics departments first established
Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?
What is the difference between "shut" and "close"?
Life insurance that covers only simultaneous/dual deaths
"One can do his homework in the library"
Best mythical creature to use as livestock?
What is the blue range indicating on this manifold pressure gauge?
Is it ok to include an epilogue dedicated to colleagues who passed away in the end of the manuscript?
Can infringement of a trademark be pursued for using a company's name in a sentence?
Coworker uses her breast-pump everywhere in the office
What is the dot in “1.2.4."
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
How does Dispel Magic work against Stoneskin?
Codification of a formal language in set theory.
How to define the class of terms of a formal language?Some questions concerning set-theoretic models of first-order theoriesFinding a grammar for a formal languageHow to avoid perceived circularity when defining a formal language?Is it possible to formalize all mathematics in terms of ordinals only?Why is an alphabet a subset of the set of strings that it generates?Formally proving the consistency of a formal theoryFoundations of mathematics , proof theory and analogies with internal mechanism of programming languageA formal language problemAxiomatic formal language theoryConnecting models of Set Theory in Jech's text with Model Theory (pages 161-167)
$begingroup$
Starting with an arbitrary class of sets $Gamma$, can you generate a free semigroup $Gamma^*$ over $Gamma$ with the group operation of concatenation ($frown$)?
The goal here is to codify a formal language in terms of set theory.
The difficulty is in coming up with a set-theoretic operation that corresponds to concatenation such that it makes every new element resulting from concatenation unique, and is associative.
Given $a,b in Gamma$, the first thought would be to represent $a frown bfrown c$ as a 3-tuple $<a,b,c>$. I know I can define tuples set-theoretically via $<a,b>:=a,a,b$ but this will violate associativity in concatenation:
$$a frown(b frown c)=<a,<b,c>> ne <<a,b>,c>=(a frown b)frown c$$
I have tried other variants but I haven't been able to come up with a set-theoretic description of concatenation that respects associativity, any ideas?
EDIT: This is a related question: https://mathoverflow.net/questions/12190/set-theoretic-foundations-for-formal-language-theory
unfortunately none of the answers provide an explicit definition of concatenation in set-theoretic terms.
logic set-theory formal-languages formal-systems formal-grammar
$endgroup$
|
show 5 more comments
$begingroup$
Starting with an arbitrary class of sets $Gamma$, can you generate a free semigroup $Gamma^*$ over $Gamma$ with the group operation of concatenation ($frown$)?
The goal here is to codify a formal language in terms of set theory.
The difficulty is in coming up with a set-theoretic operation that corresponds to concatenation such that it makes every new element resulting from concatenation unique, and is associative.
Given $a,b in Gamma$, the first thought would be to represent $a frown bfrown c$ as a 3-tuple $<a,b,c>$. I know I can define tuples set-theoretically via $<a,b>:=a,a,b$ but this will violate associativity in concatenation:
$$a frown(b frown c)=<a,<b,c>> ne <<a,b>,c>=(a frown b)frown c$$
I have tried other variants but I haven't been able to come up with a set-theoretic description of concatenation that respects associativity, any ideas?
EDIT: This is a related question: https://mathoverflow.net/questions/12190/set-theoretic-foundations-for-formal-language-theory
unfortunately none of the answers provide an explicit definition of concatenation in set-theoretic terms.
logic set-theory formal-languages formal-systems formal-grammar
$endgroup$
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
1
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
1
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01
|
show 5 more comments
$begingroup$
Starting with an arbitrary class of sets $Gamma$, can you generate a free semigroup $Gamma^*$ over $Gamma$ with the group operation of concatenation ($frown$)?
The goal here is to codify a formal language in terms of set theory.
The difficulty is in coming up with a set-theoretic operation that corresponds to concatenation such that it makes every new element resulting from concatenation unique, and is associative.
Given $a,b in Gamma$, the first thought would be to represent $a frown bfrown c$ as a 3-tuple $<a,b,c>$. I know I can define tuples set-theoretically via $<a,b>:=a,a,b$ but this will violate associativity in concatenation:
$$a frown(b frown c)=<a,<b,c>> ne <<a,b>,c>=(a frown b)frown c$$
I have tried other variants but I haven't been able to come up with a set-theoretic description of concatenation that respects associativity, any ideas?
EDIT: This is a related question: https://mathoverflow.net/questions/12190/set-theoretic-foundations-for-formal-language-theory
unfortunately none of the answers provide an explicit definition of concatenation in set-theoretic terms.
logic set-theory formal-languages formal-systems formal-grammar
$endgroup$
Starting with an arbitrary class of sets $Gamma$, can you generate a free semigroup $Gamma^*$ over $Gamma$ with the group operation of concatenation ($frown$)?
The goal here is to codify a formal language in terms of set theory.
The difficulty is in coming up with a set-theoretic operation that corresponds to concatenation such that it makes every new element resulting from concatenation unique, and is associative.
Given $a,b in Gamma$, the first thought would be to represent $a frown bfrown c$ as a 3-tuple $<a,b,c>$. I know I can define tuples set-theoretically via $<a,b>:=a,a,b$ but this will violate associativity in concatenation:
$$a frown(b frown c)=<a,<b,c>> ne <<a,b>,c>=(a frown b)frown c$$
I have tried other variants but I haven't been able to come up with a set-theoretic description of concatenation that respects associativity, any ideas?
EDIT: This is a related question: https://mathoverflow.net/questions/12190/set-theoretic-foundations-for-formal-language-theory
unfortunately none of the answers provide an explicit definition of concatenation in set-theoretic terms.
logic set-theory formal-languages formal-systems formal-grammar
logic set-theory formal-languages formal-systems formal-grammar
edited Mar 10 at 21:19
Mike
asked Mar 10 at 20:28
MikeMike
759415
759415
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
1
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
1
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01
|
show 5 more comments
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
1
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
1
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
1
1
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
1
1
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01
|
show 5 more comments
1 Answer
1
active
oldest
votes
$begingroup$
There are a couple ways to address this. Equivalence classes give the most algebraically natural treatment:
Taking the naive definition of concatenation-as-ordered-pair, we get the free magma $hatGamma$ on $Gamma$.
Now the free semigroup will just be the free magma modulo the "associativity relation" - basically, we just need to whip up the binary relation $sim$ describing when two elements of $hatGamma$ "should be" equal. It's a bit messy to describe $sim$ "explicitly" - this winds up being an inductive construction - but we can also define it as the smallest equivalence relation on $hatGamma$ such that (or, the intersection of all equivalence relations on $hatGamma$ such that) for all $a,b,c,dinhatGamma$ we have:
$asim b$ and $csim d$ implies $langle a,cranglesimlangle b,drangle$, and
$langle a,langle b,crangleranglesim langlelangle a,brangle, crangle$.
It's now easy to define the semigroup operation $cdot$ as $$[a]_simcdot[b]_sim=[langle a,brangle_sim$$ (after, of course, checking that this is in fact well-defined). Or if you want to be really pedantic about it, given $sim$-classes $E,F$, their product $Ecdot F$ is the unique $sim$-class $G$ such that there are elements $ain E$ and $bin F$ such that $langle a,branglein G$.
Another approach, less algebraically natural but perhaps more concrete, is via tuples as functions.
Specifically:
An element of $Gamma^*$ will be a function $f$ such that $(1)$ the domain of $f$ is some natural number $n$, and $(2)$ the range of $f$ is $subseteqGamma$. A function with domain $n$ is "morally" an $n$-tuple.
We can now define a fully associative version of concatenation using arithmetic. Specifically, suppose $f,gin Gamma^*$ with domains $m,n$ respectively. We let $f^smallfrown g$ be the function $h$ given by: $dom(h)=m+n$, for $k<m$ we have $h(k)=f(k)$, and for $mle k<n$ we have $h(k)=g(k-m)$.
- So for example if $dom(f)=2, dom(g)=1$, $f$ sends $0$ to $0$ and $1$ to $1$, and $g$ sends $0$ to $3$, then $f^smallfrown g$ has domain $3$, sends $0$ to $0$, sends $1$ to $1$, and sends $2$ to $3$.
(Remember that in set theory a natural number is just a finite ordinal, and in particular is just the set of smaller natural number; so e.g. "$dom(f)=5$" makes perfect sense.)
The only thing this relies on is arithmetic of finite ordinals, which is straightforward to develop.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3142852%2fcodification-of-a-formal-language-in-set-theory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
There are a couple ways to address this. Equivalence classes give the most algebraically natural treatment:
Taking the naive definition of concatenation-as-ordered-pair, we get the free magma $hatGamma$ on $Gamma$.
Now the free semigroup will just be the free magma modulo the "associativity relation" - basically, we just need to whip up the binary relation $sim$ describing when two elements of $hatGamma$ "should be" equal. It's a bit messy to describe $sim$ "explicitly" - this winds up being an inductive construction - but we can also define it as the smallest equivalence relation on $hatGamma$ such that (or, the intersection of all equivalence relations on $hatGamma$ such that) for all $a,b,c,dinhatGamma$ we have:
$asim b$ and $csim d$ implies $langle a,cranglesimlangle b,drangle$, and
$langle a,langle b,crangleranglesim langlelangle a,brangle, crangle$.
It's now easy to define the semigroup operation $cdot$ as $$[a]_simcdot[b]_sim=[langle a,brangle_sim$$ (after, of course, checking that this is in fact well-defined). Or if you want to be really pedantic about it, given $sim$-classes $E,F$, their product $Ecdot F$ is the unique $sim$-class $G$ such that there are elements $ain E$ and $bin F$ such that $langle a,branglein G$.
Another approach, less algebraically natural but perhaps more concrete, is via tuples as functions.
Specifically:
An element of $Gamma^*$ will be a function $f$ such that $(1)$ the domain of $f$ is some natural number $n$, and $(2)$ the range of $f$ is $subseteqGamma$. A function with domain $n$ is "morally" an $n$-tuple.
We can now define a fully associative version of concatenation using arithmetic. Specifically, suppose $f,gin Gamma^*$ with domains $m,n$ respectively. We let $f^smallfrown g$ be the function $h$ given by: $dom(h)=m+n$, for $k<m$ we have $h(k)=f(k)$, and for $mle k<n$ we have $h(k)=g(k-m)$.
- So for example if $dom(f)=2, dom(g)=1$, $f$ sends $0$ to $0$ and $1$ to $1$, and $g$ sends $0$ to $3$, then $f^smallfrown g$ has domain $3$, sends $0$ to $0$, sends $1$ to $1$, and sends $2$ to $3$.
(Remember that in set theory a natural number is just a finite ordinal, and in particular is just the set of smaller natural number; so e.g. "$dom(f)=5$" makes perfect sense.)
The only thing this relies on is arithmetic of finite ordinals, which is straightforward to develop.
$endgroup$
add a comment |
$begingroup$
There are a couple ways to address this. Equivalence classes give the most algebraically natural treatment:
Taking the naive definition of concatenation-as-ordered-pair, we get the free magma $hatGamma$ on $Gamma$.
Now the free semigroup will just be the free magma modulo the "associativity relation" - basically, we just need to whip up the binary relation $sim$ describing when two elements of $hatGamma$ "should be" equal. It's a bit messy to describe $sim$ "explicitly" - this winds up being an inductive construction - but we can also define it as the smallest equivalence relation on $hatGamma$ such that (or, the intersection of all equivalence relations on $hatGamma$ such that) for all $a,b,c,dinhatGamma$ we have:
$asim b$ and $csim d$ implies $langle a,cranglesimlangle b,drangle$, and
$langle a,langle b,crangleranglesim langlelangle a,brangle, crangle$.
It's now easy to define the semigroup operation $cdot$ as $$[a]_simcdot[b]_sim=[langle a,brangle_sim$$ (after, of course, checking that this is in fact well-defined). Or if you want to be really pedantic about it, given $sim$-classes $E,F$, their product $Ecdot F$ is the unique $sim$-class $G$ such that there are elements $ain E$ and $bin F$ such that $langle a,branglein G$.
Another approach, less algebraically natural but perhaps more concrete, is via tuples as functions.
Specifically:
An element of $Gamma^*$ will be a function $f$ such that $(1)$ the domain of $f$ is some natural number $n$, and $(2)$ the range of $f$ is $subseteqGamma$. A function with domain $n$ is "morally" an $n$-tuple.
We can now define a fully associative version of concatenation using arithmetic. Specifically, suppose $f,gin Gamma^*$ with domains $m,n$ respectively. We let $f^smallfrown g$ be the function $h$ given by: $dom(h)=m+n$, for $k<m$ we have $h(k)=f(k)$, and for $mle k<n$ we have $h(k)=g(k-m)$.
- So for example if $dom(f)=2, dom(g)=1$, $f$ sends $0$ to $0$ and $1$ to $1$, and $g$ sends $0$ to $3$, then $f^smallfrown g$ has domain $3$, sends $0$ to $0$, sends $1$ to $1$, and sends $2$ to $3$.
(Remember that in set theory a natural number is just a finite ordinal, and in particular is just the set of smaller natural number; so e.g. "$dom(f)=5$" makes perfect sense.)
The only thing this relies on is arithmetic of finite ordinals, which is straightforward to develop.
$endgroup$
add a comment |
$begingroup$
There are a couple ways to address this. Equivalence classes give the most algebraically natural treatment:
Taking the naive definition of concatenation-as-ordered-pair, we get the free magma $hatGamma$ on $Gamma$.
Now the free semigroup will just be the free magma modulo the "associativity relation" - basically, we just need to whip up the binary relation $sim$ describing when two elements of $hatGamma$ "should be" equal. It's a bit messy to describe $sim$ "explicitly" - this winds up being an inductive construction - but we can also define it as the smallest equivalence relation on $hatGamma$ such that (or, the intersection of all equivalence relations on $hatGamma$ such that) for all $a,b,c,dinhatGamma$ we have:
$asim b$ and $csim d$ implies $langle a,cranglesimlangle b,drangle$, and
$langle a,langle b,crangleranglesim langlelangle a,brangle, crangle$.
It's now easy to define the semigroup operation $cdot$ as $$[a]_simcdot[b]_sim=[langle a,brangle_sim$$ (after, of course, checking that this is in fact well-defined). Or if you want to be really pedantic about it, given $sim$-classes $E,F$, their product $Ecdot F$ is the unique $sim$-class $G$ such that there are elements $ain E$ and $bin F$ such that $langle a,branglein G$.
Another approach, less algebraically natural but perhaps more concrete, is via tuples as functions.
Specifically:
An element of $Gamma^*$ will be a function $f$ such that $(1)$ the domain of $f$ is some natural number $n$, and $(2)$ the range of $f$ is $subseteqGamma$. A function with domain $n$ is "morally" an $n$-tuple.
We can now define a fully associative version of concatenation using arithmetic. Specifically, suppose $f,gin Gamma^*$ with domains $m,n$ respectively. We let $f^smallfrown g$ be the function $h$ given by: $dom(h)=m+n$, for $k<m$ we have $h(k)=f(k)$, and for $mle k<n$ we have $h(k)=g(k-m)$.
- So for example if $dom(f)=2, dom(g)=1$, $f$ sends $0$ to $0$ and $1$ to $1$, and $g$ sends $0$ to $3$, then $f^smallfrown g$ has domain $3$, sends $0$ to $0$, sends $1$ to $1$, and sends $2$ to $3$.
(Remember that in set theory a natural number is just a finite ordinal, and in particular is just the set of smaller natural number; so e.g. "$dom(f)=5$" makes perfect sense.)
The only thing this relies on is arithmetic of finite ordinals, which is straightforward to develop.
$endgroup$
There are a couple ways to address this. Equivalence classes give the most algebraically natural treatment:
Taking the naive definition of concatenation-as-ordered-pair, we get the free magma $hatGamma$ on $Gamma$.
Now the free semigroup will just be the free magma modulo the "associativity relation" - basically, we just need to whip up the binary relation $sim$ describing when two elements of $hatGamma$ "should be" equal. It's a bit messy to describe $sim$ "explicitly" - this winds up being an inductive construction - but we can also define it as the smallest equivalence relation on $hatGamma$ such that (or, the intersection of all equivalence relations on $hatGamma$ such that) for all $a,b,c,dinhatGamma$ we have:
$asim b$ and $csim d$ implies $langle a,cranglesimlangle b,drangle$, and
$langle a,langle b,crangleranglesim langlelangle a,brangle, crangle$.
It's now easy to define the semigroup operation $cdot$ as $$[a]_simcdot[b]_sim=[langle a,brangle_sim$$ (after, of course, checking that this is in fact well-defined). Or if you want to be really pedantic about it, given $sim$-classes $E,F$, their product $Ecdot F$ is the unique $sim$-class $G$ such that there are elements $ain E$ and $bin F$ such that $langle a,branglein G$.
Another approach, less algebraically natural but perhaps more concrete, is via tuples as functions.
Specifically:
An element of $Gamma^*$ will be a function $f$ such that $(1)$ the domain of $f$ is some natural number $n$, and $(2)$ the range of $f$ is $subseteqGamma$. A function with domain $n$ is "morally" an $n$-tuple.
We can now define a fully associative version of concatenation using arithmetic. Specifically, suppose $f,gin Gamma^*$ with domains $m,n$ respectively. We let $f^smallfrown g$ be the function $h$ given by: $dom(h)=m+n$, for $k<m$ we have $h(k)=f(k)$, and for $mle k<n$ we have $h(k)=g(k-m)$.
- So for example if $dom(f)=2, dom(g)=1$, $f$ sends $0$ to $0$ and $1$ to $1$, and $g$ sends $0$ to $3$, then $f^smallfrown g$ has domain $3$, sends $0$ to $0$, sends $1$ to $1$, and sends $2$ to $3$.
(Remember that in set theory a natural number is just a finite ordinal, and in particular is just the set of smaller natural number; so e.g. "$dom(f)=5$" makes perfect sense.)
The only thing this relies on is arithmetic of finite ordinals, which is straightforward to develop.
edited Mar 10 at 21:56
answered Mar 10 at 21:46
Noah SchweberNoah Schweber
127k10151290
127k10151290
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3142852%2fcodification-of-a-formal-language-in-set-theory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
I'm pretty sure you're going to have issues avoiding both the Axiom of Infinity and the Axiom of Power Sets. Many concepts in formal language theory are inductively defined. There are two approaches to characterizing inductively defined sets: we can say that they are the smallest sets satisfying some condition, or we can that they are the union of an (countably) infinite number of "stages". The former is impredicative and thus requires something like powersets, while the latter relies the existence of naturals.
$endgroup$
– Derek Elkins
Mar 10 at 21:16
$begingroup$
@DerekElkins Just to make the task easier, let me remove that restriction from the question. If someone can provide insight about the definition of concatenation in terms of set theory at this point I'll be happy no matter what axioms of set theory they assume.
$endgroup$
– Mike
Mar 10 at 21:19
1
$begingroup$
Foundation has nothing to do with that. Neither does infinity nor power set. You just need enough to prove there are infinitely many ordinals, then you can isolate the finite ones (no need for any of the aforementioned axioms). Then just define the sequences in the obvious way.
$endgroup$
– Asaf Karagila♦
Mar 10 at 21:19
$begingroup$
@AsafKaragila You mean define $a frown b frown c$ as the sequence $a,b,c$? Wouldn't that cause the same problem with associativity that the tuples cause in my question?
$endgroup$
– Mike
Mar 10 at 21:22
1
$begingroup$
Mike, I've posted an answer there by the time I saw this comment. Do note that it might be very helpful to understand how PA encodes first-order logic, since this is almost the same thing.
$endgroup$
– Asaf Karagila♦
Mar 11 at 0:01