MENTAL
 Main Menu
 Language
 Principles
 Hypersyntax


Hypersintax
 HYPERSYNTAX

Generic Syntax

"Is mathematics the syntax of language?" (Gödel).

"Mathematics is the logical syntax of language" (Carnap).



Concept

MENTAL is based on expressions that have a generic syntax, which we call hypersyntax, because it transcends particular syntaxes.

The syntax of MENTAL expressions falls into two categories:
  1. Those using explicit operators, such as: + (addition), / (qualitative particularization), = (substitution), and so on. Operators can only be of two types: monadic and dyadic. Their corresponding expressions are called, respectively, monadic and dyadic. Operators act on operands, which are expressions.

  2. Those using delimiting parentheses: serial expression (sequence), parallel expression (set), distribution and generic expression. This type of syntax aligns with the philosophy of the so-called "Boundary Mathematics" [see Applications - Mathematics - Laws of Form].
MENTAL uses both systems (operators and delimiters). Operators can be considered shallow because they "touch" or are in contact with arguments. Delimiters are of the deep type.


Symbols

Symbols are used as explicit operators, one symbol for each semantic primitive. The use of symbols is justified by offering the following advantages:
  1. It simplifies the specification as much as possible. The code is very compact, but readable.

  2. Facilitates combinatorics.

  3. It makes the language independent of particular languages. There are no keywords, unlike traditional programming languages.

  4. They try to evoke universal concepts, going beyond the sign. Signs are of a superficial type and require interpretation. Symbols are of a deep, universal type and possess meaning.

Monadic Operator

Syntax

In general, a monadic operator is placed after the argument x. It is the postfix notation: x⊥


Justification

The object-action model is used, i.e., the argument is specified first and then the operation to be performed on it.


Examples
Exploring properties

To determine the possible properties of a monadic operator , let's explore the following syntactic forms:
Creative criteria (exploration of possible new semantics)

In order to search for possible new semantics, we will explore alternative syntactic forms.
Diadic Operator

Sintaxis

When an operator acts on two arguments, the infix notation is used: x⊥y


Justification
Examples
Exploring properties

To determine the possible properties of a dyadic operator , let's explore the following syntactic forms:
Creative criteria (exploration of possible new semantics)

In order to explore possible new semantics, we will explore alternative syntactic forms.
Polyadic operator

In MENTAL there are no polyadic operators, but there are indirect ways for a operator to act on n arguments:
Types of Delimiters

Curved parentheses
Examples:

xyz // represents (x and z)

(a b c) // sequence

a+b // rep. (a + b)

ab+cd // rep. (ab + cd)

a*(b+c) // rep. (a * (b + c))

x(y-1)z // rep. (x y-1 z)

(((a))) // evaluates as a

a*((((b+c)))) // equals a*(b+c)

( abc ) // equals ( (a b c) ) (loose sequence containing a sequence



Curly braces
Angle brackets
Square brackets