Cactus Language • Stylistics 4

The present patch of discussion is concerned with describing a family of formal languages whose typical representative is the painted cactus language \mathfrak{L} = \mathfrak{C} (\mathfrak{P}).  Once we have the abstract forms of cactus languages well enough in hand to grasp their application, the next order of business is to interpret them for propositional logic, thus producing a sentential calculus, an order of reasoning which constitutes an active ingredient and a significant component of all logical reasoning.

The standard devices of formal grammars and formal language theory are adequate to describe the language of interest from an external point of view but the ultimate desire is for something more exacting, to turn the tables on the order of description and enter on a process of eversion which evolves to the point of asking:  To what extent can the language capture the essential features and laws of its own grammar and describe the active principles of its own generation?  In other words:  How well can the language be described by using the language itself to do so?

To address the above questions, we have to express what a grammar says about a language in terms of what a language can say on its own.  In effect, it is necessary to analyze the kinds of meaningful statements grammars are capable of making about languages in general and to relate them to the kinds of meaningful statements the sentences of the cactus language might be interpreted as making about the same topics.  So far in the present discussion, the sentences of the cactus language make no meaningful statements at all, much less any meaningful statements about languages and their constitutions.  As of yet, those sentences subsist in the form of purely abstract, formal, and uninterpreted combinatorial constructions.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Stylistics 3

As a rough illustration of the difference between rhetorical and logical orders, consider the contrasting types of order appearing in the following conjunction of conditionals.

X \Rightarrow Y ~\mathrm{and}~ Y \Rightarrow Z

The formula exhibits a happy conformity between its rhetorical form and its logical content, in such a way one hardly notices the difference between them.  The rhetorical form is given by the order of sentences in the conditionals and the order of conditionals in the conjunction.  The logical content is given by the order of propositions in the following extended implicational sequence.

X ~ \le ~ Y ~ \le ~ Z

To see the difference between rhetorical form and logical content, or manner and matter, it is enough to observe a few ways the expression can be varied without changing its meaning.  For example, the following expression is logically equivalent to the one at the top.

Z \Leftarrow Y ~\mathrm{and}~ Y \Leftarrow X

Any style of declarative programming, or logic programming, depends on a capacity, as embodied in a programming language or other formal system, to describe the relation between problems and solutions in logical terms.  A recurring problem in building such a capacity is in bridging the gap between ostensibly non‑logical orders and the logical orders used to describe and represent them.

For example, to mention just two of the most pressing cases and the ones currently proving to be the most resistant to a complete analysis, one has the orders of dynamic evolution and rhetorical transition which manifest themselves in the process of inquiry and in the communication of its results.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Stylistics 2

In looking at what seems like an incidental issue, the discussion arrives at a critical point.  The question is:  What decides the issue of style?  Taking a given language as the object of discussion, what factors enter into and determine the choice of a style for its presentation, that is, a particular way of arranging and selecting the materials involved in a description, a grammar, or a theory of the language?  To what degree is the determination accidental, empirical, pragmatic, rhetorical, or stylistic, and to what extent is the choice essential, logical, and necessary?  For that matter, what determines the order of signs in a word, a sentence, a text, or a discussion?  All the corresponding parallel questions about the character of the choice can be posed with regard to the constituent part as well as with regard to the main constitution of the formal language.

Answering the question of choice, at any level of articulation, requires an inquiry into the type of distinction it invokes, between arrangements and orders which are essential, logical, and necessary and orders and arrangements which are accidental, rhetorical, and stylistic.

A logical order, if it resides in a subject at all, can be approached by considering all the ways of saying the same things, in all the languages capable of saying roughly the same things about the subject in question.  Naturally, the all appearing in that rule of thumb has to be interpreted as a fittingly qualified universal.  For all practical purposes, it simply means all the ways a person can think of and all the languages a person can conceive of, with all things being relative to the person and the particular moment of investigation.  For all those reasons, the rule must stand as little more than a rough idea of how to approach its object.

If it is demonstrated that a given formal language can be presented in any one of several styles of formal grammar then the choice is accidental, optional, and stylistic to the very extent it is free.  But if it can be shown that a particular language cannot be successfully presented in a particular style of grammar then the issue of style is no longer free and rhetorical but becomes to that very degree essential, necessary, and obligatory, in other words, a question of the objective logical order which can be found to reside in the object language.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Stylistics 1

As a result, we can hardly conceive of how many possibilities there are for what we call objective reality.  Our sharp quills of knowledge are so narrow and so concentrated in particular directions that with science there are myriads of totally different real worlds, each one accessible from the next simply by slight alterations — shifts of gaze — of every particular discipline and subspecialty.

Herbert J. Bernstein • “Idols of Modern Science”

The discussion to follow highlights a question of style arising in describing a formal language.  In formal contexts, style refers to a loosely specified family of formal systems, typically ones with a set of distinctive features in common.  For example, a style of proof system dictates one or more rules of inference acknowledged as conforming to the style in question.  When it comes to formal languages, style is a natural choice to characterize the varieties of formal grammars or other kinds of formal systems contemplated for deriving the sentences of the language in view.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 3 Comments

Generalities About Formal Grammars • 3

Derivations

An immediate derivation in \mathfrak{G} is an ordered pair (W, W^\prime) of sentential forms in \mathfrak{G} such that the following conditions hold.

\begin{array}{lll}  W = Q_1 \cdot X \cdot Q_2, & W' = Q_1 \cdot Y \cdot Q_2, & \text{and}~ (X, Y) \in \mathfrak{K}.  \end{array}

As noted above, it is usual to express the condition (X, Y) \in \mathfrak{K} by writing X :> Y ~\text{in}~ \mathfrak{G}.

The immediate derivation relation is indicated by saying that W immediately derives W', by saying that W' is immediately derived from W in \mathfrak{G}, and also by writing the following form.

W ::> W'.

A derivation in \mathfrak{G} is a finite sequence (W_1, \ldots, W_k) of sentential forms over \mathfrak{G} such that each adjacent pair (W_j, W_{j+1}) of sentential forms in the sequence is an immediate derivation in \mathfrak{G}, in other words, such that the following holds.

W_j ::> W_{j+1}, ~\text{for all}~ j = 1 ~\text{to}~ k - 1.

If there exists a derivation (W_1, \ldots, W_k) in \mathfrak{G}, one says that W_1 derives W_k in \mathfrak{G} or that W_k is derivable from W_1 in \mathfrak{G} and one typically summarizes the derivation by writing the following.

W_1 :\!*\!:> W_k.

The language \mathfrak{L} = \mathfrak{L} (\mathfrak{G}) = \langle \mathfrak{G} \rangle generated by the formal grammar \mathfrak{G} = ( ``S", \mathfrak{Q}, \mathfrak{A}, \mathfrak{K} ) is the set of strings over the terminal alphabet \mathfrak{A} derivable from the initial symbol ``S" by way of the intermediate symbols in \mathfrak{Q} according to the characterizations in \mathfrak{K}.  All that is summed up in the following form.

\mathfrak{L} (\mathfrak{G}) = \langle \mathfrak{G} \rangle = \{ W \in \mathfrak{A}^* : ``S" :\!*\!:> W \}.

Finally, a string W is called a word, a sentence, or so on, of the language generated by \mathfrak{G} if and only if W is in \mathfrak{L} (\mathfrak{G}).

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Generalities About Formal Grammars • 2

Characterizations

Recall that a formal grammar \mathfrak{G} is defined by a 4‑tuple \mathfrak{G} = ( ``S", \mathfrak{Q}, \mathfrak{A}, \mathfrak{K} ) where ``S" is the initial, special, start, or sentence symbol, \mathfrak{Q} is a finite set of intermediate symbols, \mathfrak{A} is a finite set of terminal symbols, also known as the alphabet of \mathfrak{G}, and \mathfrak{K} is a finite set of characterizations, variously described as covering rules, formations, productions, rewrite rules, subsumptions, transformations, or typing rules.

To describe the variety of elements in \mathfrak{K} it helps to define a few additional terms.

Augmented Alphabet
The symbols in \{ ``S" \} \cup \mathfrak{Q} \cup \mathfrak{A} form the augmented alphabet of \mathfrak{G}.
Non‑Terminal Symbols
The symbols in \{ ``S" \} \cup \mathfrak{Q} are the non‑terminal symbols of \mathfrak{G}.
Non‑Initial Symbols
The symbols in \mathfrak{Q} \cup \mathfrak{A} are the non‑initial symbols of \mathfrak{G}.
Augmented Strings
The strings in ( \{ ``S" \} \cup \mathfrak{Q} \cup \mathfrak{A} )^* are the augmented strings for \mathfrak{G}.
Sentential Forms
The strings in \{ ``S" \} \cup (\mathfrak{Q} \cup \mathfrak{A})^* are the sentential forms for \mathfrak{G}.

Each member of \mathfrak{K} is an ordered pair of strings (S_1, S_2) taking the following form.

\begin{matrix}  S_1 & = & Q_1 \cdot q \cdot Q_2  \\[8pt]  S_2 & = & Q_1 \cdot W \cdot Q_2  \end{matrix}

S_1 and S_2 are augmented strings for \mathfrak{G},  in particular, sentential forms with S_1 being a non‑empty string and S_2 being a possibly empty string.

The element q is a non‑terminal symbol, in other words, q \in \{ ``S" \} \cup \mathfrak{Q}.  The elements Q_1, Q_2, and W are possibly empty strings of non‑initial symbols, that is to say, Q_1, Q_2, W \in (\mathfrak{Q} \cup \mathfrak{A})^*.

In practice the couplets belonging to \mathfrak{K} are used to derive, generate, or produce sentences of the corresponding language \mathfrak{L} = \mathfrak{L} (\mathfrak{G}).  The language \mathfrak{L} is then said to be governed, licensed, or regulated by the grammar \mathfrak{G}, a circumstance expressed in the form \mathfrak{L} = \langle \mathfrak{G} \rangle.

Because it helps to focus our attention on the the more active dynamic aspects of using grammars to generate languages it is usual to write abstract characterizations like (S_1, S_2) and specific characterizations like (Q_1 \cdot q \cdot Q_2, \ Q_1 \cdot W \cdot Q_2) in the following forms.

\begin{matrix}  S_1 & :> & S_2  \\[8pt]  Q_1 \cdot q \cdot Q_2 & :> & Q_1 \cdot W \cdot Q_2  \end{matrix}

The characterization S_1 :> S_2 amounts to a grammatical license to transform a string of the form Q_1 \cdot q \cdot Q_2 into a string of the form Q_1 \cdot W \cdot Q_2, in effect, replacing the non‑terminal symbol q with the non‑initial string W in any selected, preserved, and closely adjoining context of the form Q_1 \cdot \underline{~~~} \cdot Q_2.  In that application the notation S_1 :> S_2 can be read to say that S_1 produces S_2 or that S_1 transforms into S_2.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Generalities About Formal Grammars • 1

It is fitting to wrap up the foregoing developments by summarizing the notion of a formal grammar which appeared to evolve in the analysis of cactus languages.  For the sake of future reference and further application it is useful to extract a scheme of formalization potentially holding for arbitrary formal languages.

The following presentation is adapted with minor modifications from the treatment in Denning, Dennis, and Qualitz (1978), Machines, Languages, and Computation, Prentice–Hall, Englewood Cliffs, NJ, (pp. 60–61).

Formal Grammar • Definition

A formal grammar \mathfrak{G} is defined by a four‑tuple \mathfrak{G} = ( ``S", \mathfrak{Q}, \mathfrak{A}, \mathfrak{K} ) of the following form.

  • ``S" is the initial, special, start, or sentence symbol.  The letter ``S" plays that role solely in a special setting, so its employment as such creates no conflict with its possible use as a string variable or a sentence variable.
  • \mathfrak{Q} = \{ q_1, \ldots, q_m \} is a finite set of intermediate symbols, all distinct from ``S".
  • \mathfrak{A} = \{ a_1, \dots, a_n \} is a finite set of terminal symbols, also known as the alphabet of \mathfrak{G}, all distinct from ``S" and disjoint from \mathfrak{Q}.  Depending on the particular conception of the language \mathfrak{L} covered, generated, governed, or ruled by the grammar \mathfrak{G}, that is, whether \mathfrak{L} is conceived to be a set of words, sentences, paragraphs, or more extended structures of discourse, it is usual to describe \mathfrak{A} as the alphabet, lexicon, vocabulary, liturgy, or phrase book of both the grammar \mathfrak{G} and the language \mathfrak{L} it regulates.
  • \mathfrak{K} is a finite set of characterizations.  Depending on how they come into play, the elements of \mathfrak{K} may be described as covering rules, formations, productions, rewrite rules, subsumptions, transformations, or typing rules.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Syntax 12

Grammar 6

Grammar 6 has the intermediate alphabet \mathfrak{Q} = \{ ``S'", ``F", ``R", ``T" \} with the set \mathfrak{K} of covering rules listed in the next display.

Cactus Language Grammar 6

Our exploration of the grammar space for the language \mathfrak{C} (\mathfrak{P}) shows how an initially effective and succinct definition of a formal language can be terse to the point of forcing its interpreters to spend exorbitant amounts of time developing its consequences, but that it can be converted to a form more efficient from the operational point of view, however ungainly in regard to its elegance.

The main idea behind the grammar‑grinding remains the same, to give concrete implementation to the following general rule.

Cactus Language General Rule

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Syntax 11

Grammar 5

With the foregoing array of considerations in mind, one is gradually led to a grammar for \mathfrak{L} = \mathfrak{C} (\mathfrak{P}) in which all of the covering productions have one of the following two forms.

\begin{array}{ccll}  S & :> & \varepsilon &  \\[6pt]  q & :> & W, & \text{with}~ q \in \{ ``S" \} \cup \mathfrak{Q} ~\text{and}~ W \in (\mathfrak{Q} \cup \mathfrak{A})^+  \end{array}

A grammar fitting that description is called a context‑free grammar.  The first type of rewrite rule is called a special production while the second type of rewrite rule is called an ordinary production.

An ordinary derivation is one composed solely of ordinary productions.  An ordinary production q :> W always replaces q with a non‑empty string W, so the lengths of the augmented strings or sentential forms which follow one another in an ordinary derivation never decrease at any stage of the process, up to and including the terminal string finally generated by the grammar.

The feature just described is known as the non‑contracting property of productions, derivations, and grammars.  A grammar is said to have the property if all of its covering productions, with the possible exception of S :> \varepsilon, are non‑contracting.

In particular, context‑free grammars are special cases of non‑contracting grammars.  The presence of the non‑contracting property in a grammar makes the length of the augmented string available as a parameter to figure into mathematical induction and motivate recursive proofs.  A handle like that on the generative process makes it possible to establish results about the generated language which are not easy to achieve in more general cases, nor even by other means in the context‑free case.

Grammar 5 is a context‑free grammar for the painted cactus language \mathfrak{L} = \mathfrak{C} (\mathfrak{P}) with the intermediate alphabet \mathfrak{Q} = \{ ``S'", ``T" \} and the set \mathfrak{K} of covering rules listed in the next display.

Cactus Language Grammar 5

Finally, it is worth trying to bring together the separate advantages of diverse styles of grammar, to the extent they are compatible.  To do that, a prospective grammar must be capable of maintaining a high level of intermediate organization, like that exhibited by Grammar 2, while respecting the principle of intermediate significance, thus accumulating the benefits of the context‑free style in Grammar 5.  A plausible synthesis of those features is given in Grammar 6.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Cactus Language • Syntax 10

Grammar 4 (concl.)

Cactus Language Grammar 4

As we have seen, Grammar 4 partitions the intermediate type T as T = \underline\varepsilon + T' in parallel fashion with the division of its overlying type as S = \underline\varepsilon + S'.  That is an option we will close off for now but leave open to consider at a later point, noting only the issues involved in choosing between grammars, and then moving on to the next alternative.

There does not appear to be anything radically wrong with trying the above approach to types.  It is reasonable and consistent in its underlying principle and it provides a rational and uniform strategy toward all parts of speech.  But it does require an extra amount of conceptual overhead in that every non‑trivial type has to be split into two parts and comprehended in two stages.  Consequently, in view of the largely practical difficulties of making the required distinctions for every intermediate symbol, it is a common convention, whenever possible, to restrict intermediate types to covering exclusively non‑empty strings.

It is convenient to refer to the above restriction on intermediate symbols as the intermediate significance constraint.  It may be given compact form as a condition on the relations between non‑terminal symbols q \in \{ ``S" \} \cup \mathfrak{Q} and sentential forms W \in \{ ``S" \} \cup (\mathfrak{Q} \cup \mathfrak{A})^*.

Cactus Language Grammar 4 Display 1

If that begins to sound like a monotone condition then it is not absurd to sharpen the resemblance and render the likeness more acute.  That is achieved by declaring a couple of ordering relations, denoting them under variant interpretations by the same sign, ``\!< \!".

  • The ordering ``\! < \!" on the collection of non‑terminal symbols q \in \{ ``S" \} \cup \mathfrak{Q} ordains the initial symbol ``S" to be strictly prior to every intermediate symbol.  That amounts to an axiom of the form ``S" < q for all q \in \mathfrak{Q}.
  • The ordering ``\! < \!" on the collection of sentential forms W \in \{ ``S" \} \cup (\mathfrak{Q} \cup \mathfrak{A})^* ordains the empty string to be strictly less than every other sentential form.  That amounts to an axiom of the form \varepsilon < W for every non‑empty sentential form W.

Given the above orderings, the constraint on intermediate significance may be stated as follows.

Cactus Language Grammar 4 Display 2

A grammar respecting intermediate significance will normally require a more detailed account of the initial setting of each type, both with regard to the type of context inciting its appearance and also with respect to the minimal strings arising under the type in question.  In order to find covering productions satisfying the intermediate significance condition, one must be prepared to consider a wider variety of calling contexts or inciting situations observed to surround each recognized type and also to enumerate a larger number of minimal cases observed to fall under the significant types.

Resources

cc: Academia.edu • BlueSky • Laws of FormMathstodonResearch Gate
cc: Conceptual GraphsCyberneticsStructural ModelingSystems Science

Posted in Automata, Boolean Algebra, Boolean Functions, C.S. Peirce, Cactus Graphs, Differential Logic, Equational Inference, Formal Grammars, Formal Languages, Graph Theory, Logic, Logical Graphs, Mathematics, Minimal Negation Operators, Painted Cacti, Propositional Calculus, Visualization | Tagged , , , , , , , , , , , , , , , , | 2 Comments