How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Balanced bracket words, defined by the recursive grammar
Definition
Let and let be the set of all finite words over , the words of length being the functions (Finite words, contiguous factors, avoidance and proper-prefix states). Write for the empty word and for concatenation.
Call a set grammatical when and for all . The set itself is grammatical, so the family of grammatical subsets is a nonempty subfamily of (The power set ), and we may define
the balanced bracket words. Thus is itself grammatical, and it is contained in every grammatical set.
Structural induction, which is what the definition is for. If is grammatical then , since is contained in every grammatical set. So to prove that every balanced bracket word has a property it suffices to prove it for and to prove it for whenever it holds for and for .
Every nonempty balanced word factors as . Put . Then because is grammatical, and is itself grammatical: it contains , and if then , so by construction. By the previous paragraph , which is the assertion.
Lengths. Every has even length: this holds for , and if and have even lengths then so does , whose length is . So put, for ,
Then , since a balanced word of length is and ; and for every ,
by the factorisation clause together with the additivity of lengths. In particular and .
Each is finite, being a subset of the set of words of length , which is finite with elements (The set of functions between finite sets is finite, with , A subset of a finite set is finite, with , and equality holds if and only if , The cardinality of a finite set).
Remarks
-
The grammar is the definition, and that is deliberate. The set could instead have been defined by the counting condition — every prefix has at least as many as , with equal totals — and then the theorem that follows would be a tautology. Taking the recursive description as the definition makes the equivalence of the two descriptions something to prove, and it is that equivalence that the counting arguments use.
-
No parser and no stack. The definition quantifies over subsets of and takes an intersection. Nothing about reading a word left to right is assumed; the left-to-right characterisation is the content of the next item.
-
Why the graded pieces are indexed by half the length. A balanced word has even length, and every count on this page is stated in the number of bracket pairs. The displayed recursion for is the same shape as the first-return decomposition of a Dyck path, which is why the two families have the same counts.
Depends on
- Finite words, contiguous factors, avoidance and proper-prefix states
- The cardinality $\lvert A\rvert$ of a finite set
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- The power set $\mathcal{P}(x) = \{\, z : z \subseteq x \,\}$
- The principle of mathematical induction
- The set $A^{B}$ of functions $B \to A$ between finite sets is finite, with $\lvert A^{B}\rvert = \lvert A\rvert^{\lvert B\rvert}$
Used by
Dependency tree · two levels
25 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- D. Guichard, An Introduction to Combinatorics and Graph Theory, §3.5 (standard reference, not scraped)