Rewriting - Term Rewriting Systems

Term Rewriting Systems

This section requires expansion.

A term rewriting system (TRS) is a rewriting system where the objects are terms, or expressions with nested sub-expressions. For example, the system shown under Logic above is a term rewriting system. The terms in this system are composed of binary operators and and the unary operator . Also present in the rules are variables, which are part of the rules themselves rather than the term; these each represent any possible term (though a single variable always represents the same term throughout a single rule).

The term structure in such a system is usually presented using a grammar. In contrast to string rewriting systems, whose objects are flat sequences of symbols, the objects of a term rewriting system form a term algebra, which can be visualized as a tree of symbols, the structure of the tree fixed by the signature used to define the terms.

The system given under Logic above is an example of a term rewriting system.

Read more about this topic:  Rewriting

Famous quotes containing the words term and/or systems:

    We now demand the light artillery of the intellect; we need the curt, the condensed, the pointed, the readily diffused—in place of the verbose, the detailed, the voluminous, the inaccessible. On the other hand, the lightness of the artillery should not degenerate into pop-gunnery—by which term we may designate the character of the greater portion of the newspaper press—their sole legitimate object being the discussion of ephemeral matters in an ephemeral manner.
    Edgar Allan Poe (1809–1845)

    The only people who treasure systems are those whom the whole truth evades, who want to catch it by the tail. A system is just like truth’s tail, but the truth is like a lizard. It will leave the tail in your hand and escape; it knows that it will soon grow another tail.
    Ivan Sergeevich Turgenev (1818–1883)