| Name Sample | ||||
|---|---|---|---|---|
| Substitutions | ( x^2+x/(1+x) where x=(exp(y+sin(z)) ) | |||
| Partial Descriptions |
| Enumerated types
| Inequality
| Two notations: x!=y(C), x<>y (Pascal)
| |
Both forms bind values to abbreviations in a small area of text only.
Syntax of Substitution
Semantics of Substitution
Both forms bind values to abreviations for the range of a single expression.
Notice that in a tight binding it is not permitted to use the variable as part of the expression that represents its value. This implies that the variable can be replaced by the original without change of meaning.
A formula like
becomes
. . . . . . . . . ( end of section Substitutions) <<Contents | End>>
Partial Descriptions, Ellipsis, and Enthymemes
then we can quote as facts.
It is convenient to allow these to be valid input into a documentation system:
It is best to start from a specific, easily understood subset of the problem and progress to more general forms[Botting 84b]. The development of error handling is an ubiquitous example:
So is that of a compiler:
Thus given that
then we can quote the following
Again it should be possible to input a series of additional alternatives into a documentation processor, and have them, checked, appended, etc.
Formally a set of additional alternatives are combined into a single definition where the term is defined as the union of the separate alternatives.
It is incorrect to use more than one ellipsis on the same term.
These notations are conveniences. Formally they do not exist. They become a set of definitions that are created by either the intersection or union of all the descriptions.
An incomplete argument is called an enthymeme[Aristotle?]. In MATHS it is an argument with any contiguous set of steps replace by the ellipsis (...) symbol (see Chapter 5). Similarly the ellipsis can be used inside any set of documentation to hide a piece of irrelevant documentation from the reader/user. Online the three dots could react to being selected by expanding to show the details.
A third form of incompleteness occurs when part of a sequence is left out. Similar - but much more informal - is the use of the ellipsis "..." in mathematical expressions :
as in the design of bin.p above. These can only be verified if they are accompanied with a formal expression that makes clear what is meantSubstitutions
Finally, if the class of a structured object is given (C) and a tight enough condition(P) specified, then missing attributes can be predicted that make the object fit the class. Formally, suppose that C is a class with structure N and P a boolean expression containing variable of N then:
Similarly if C has identifers k and data d (C : @N(k)->(d)) then
The following syntax is a natural alternative:
. . . . . . . . . ( end of section Partial Descriptions, Ellipsis, and Enthymemes) <<Contents | End>>
direction::={east,north, west, south).
implies
direction::Sets.
east::direction.
north::direction.
west::direction.
south::direction.
|- direction = {east,north, west, south).
In general a defition of a new type as a set of new variables,
implicitly declares the variables.
. . . . . . . . . ( end of section Enumerated types) <<Contents | End>>
Inequality
The operator "=" indicates identity or equality. There are two traditional symbols
for inequality: "!=" and "<>". Both are (now) leagle in MATHS.
. . . . . . . . . ( end of section CONVENIENCES) <<Contents | End>>
Notes on MATHS Notation
Special characters are defined in
[ intro_characters.html ]
that also outlines the syntax of expressions and a document.
Proofs follow a natural deduction style that start with assumptions ("Let") and continue to a consequence ("Close Let") and then discard the assumptions and deduce a conclusion. Look here [ Block Structure in logic_25_Proofs ] for more on the structure and rules.
The notation also allows you to create a new network of variables
and constraints, and give them a name. The schema, formal system,
or an elementary piece of documentation starts with "Net" and finishes "End of Net".
For more, see
[ notn_13_Docn_Syntax.html ]
for these ways of defining and reusing pieces of logic and algebra
in your documents.
Notes on the Underlying Logic of MATHS
The notation used here is a formal language with syntax
and a semantics described using traditional formal logic
[ logic_0_Intro.html ]
plus sets, functions, relations, and other mathematical extensions.
For a complete listing of pages by topic see [ home.html ]