Universalis¶
Definitions¶
Strings (\(s\), \(t\), \(u\)): A lowercase English \(s\), \(t\), or \(u\) denotes a string.
Characters (\(\mathfrak{a}\), \(\mathfrak{b}\), \(\mathfrak{c}\), etc. ): Lowercase Fraktur letters represent characters. Subscripts will occassionally be used in conjunction with Fraktur letters to denote characters at specific positions within strings, (\(\mathfrak{a}_1\), \(\mathfrak{a}_2\), … ).
Empty Character (\(\varepsilon\)): The lowercase Greek letter epsilon, \(\varepsilon\), represents the empty Character.
Delimiter (\(\sigma\)): The lowercase Greek letter sigma, \(\sigma\), represents the delimiter character, e.g. spaces.
Words (\(a\), \(b\), \(c\), etc.): Lowercase English letters represent words. Subscripts will occassionally be used to denote words at specific positions within sentences, (\(a_1\), \(a_2\), … )
Sentences (\(\zeta\)): The lowercase Greek letter zeta, \(\zeta\), represents sentences. Subscripts will occasionally be used to enumerate sentences in a language (\(\zeta_1\), \(\zeta_2\), …)
Alphabets (\(\Sigma\)): The uppercase Greek letter sigma, \(\Sigma\), represents alphabets.
Language (\(L\)): The uppercase English letter \(L\) represents a language.
Corpus (\(C_L\)): The uppercase English letter \(C_L\) with a subscript \(L\) represents a corpus of sentences within a given language.
Alphabet¶
The aggregate of all characters is called an alphabet and is denoted by an uppercase sigma, \(\Sigma\),
Language¶
A language \(L\) is a set of strings constructed through concatenation on an alphabet \(\Sigma\) wherein each construction is assigned semantic content,
Corpus¶
A corpus \(C_L\) is a set of strings constructed by inserting a delimiter between words in language \(L\) and assigning semantic meaning,
Linguistic Hierarchy¶
Strings: \(\iota\), \(a\), \(\zeta\)
Sets: \(\Sigma\), \(L\), \(C_L\)
Character Membership: \(\iota \in \Sigma\)
Word Membership: \(a \in L\)
Sentence Membership: \(\zeta \in C_L\)
To clarify the relationship between strings, characters, alphabets, words, languages, sentences and corpi in plain language,
All characters, words and sentences are strings.
All alphabets, languages and corpuses are sets of strings.
All characters belong to an alphabet.
All words belong to a language.
All sentences belong to a corpus.
Character-level Set Representations¶
Let t be a string with characters \(\mathfrak{a}_i\). The character-level set representation of \(t\), denoted by uppercase letter \(T\), is defined as the ordered set of characters obtained by removing each empty character, \(\varepsilon\).
Example
Let a string be given by,
Then its character-level set representation is given by,
String Length¶
Let \(t`\) be a string. Let T be the character-level set representation of \(t\). The string length of \(t\), denoted \(l(t)\), is the natural number which satisfies the following formula,
Character Index Notation
Let \(t\) be a string with character-level representation \(T\),
Then for any \(i\) such that \(1 \leq i \leq l(t)\), \(t[i]\) is defined as \(\mathfrak{a}_i\), where \((i, \mathfrak{a}_i) \in T\).
Relations¶
Containment¶
Let \(t\) and \(u\) be Strings. \(t\) is said to be contained in \(u\), denoted by,
If and only if there exists a strictly increasing and consecutive function \(f: N_{l(t)} \to N_{l(u)}\) such that:
Operations¶
Concatenation¶
The result of concatenating any two characters \(\iota\) and \(\nu\) is denoted \(\iota\nu\). To make the operands of concatenation clear, parenthesis will sometimes be used to separate the characters being concatenated, e.g. \(\iota(\nu) = (\iota)\nu = (\iota)(\nu) = \iota\nu\). Character concatenation is defined inductively through the following schema,
Basic Clause: \(\forall \iota \in \Sigma : \iota \varepsilon = \iota\)
Inductive Clause: \(\forall \iota, \nu \in \Sigma : \forall s \in S: \iota(\nu s) = (\iota \nu)s\)
Uniqueness Clause: \(\forall \iota, \nu, \omicron, \rho \in \Sigma : (\iota \nu = \omicron \rho) \to ((\iota = \omicron) \land (\nu = \rho))\)
Comprehension Clause: \(\forall \iota \in \Sigma : \forall s \in S: \iota \in S\)
Inversion¶
\(t\) is called the inverse of \(s\) and is denoted \(\text{inv}(s)\) if it satisfies the following conditions,
\(l(t) = l(s)\)
\(\forall i \in N_{l(s)}: t[i] = s[l(s) - i + 1]\)
Reduction¶
A string reduction, \(\varsigma(s)\), is an operation that removes all delimiters from a string, but preserves the relative order of characters.
Example
Note
Reduction and inversion are commutative,
Axioms¶
Axiom C.0: The Equality Axiom
\(\forall \iota \in \Sigma : \iota = \iota\)
\(\forall \iota, \nu \in \Sigma : \iota = \nu \leftrightarrow \nu = \iota\)
\(\forall \iota, \nu, \omicron \in \Sigma : (\iota = \nu \land \nu = \omicron) \to (\iota = \omicron)\)
Axiom C.1: The Character Axiom
Axiom W.1: The Discovery Axiom
Axiom S.1: The Duality Axiom
Axiom S.2: The Extraction Axiom
Axiom S.3: The Finite Axiom