logic

Definition

Term Language

A term langauge is built from variables and function symbols. They are a general representation of hierarchical structures.

The set , short is the smallest set of terms over and , such that:

Note that denotes the arity of .

Semantics

Interpretation of a Term Language

Semantics are introduced using an interpretation .

The interpretation over a domain , called the universe, maps each function symbol of to a function :

Note that denotes the arity of .

The values of variable symbols depend on the current value assignments.

Notations

Prefix Notation

Definition

Prefix Notation

Prefix notation is a notation for expressions of a term languages where the operators are placed before the terms.

Example:

where are terms and is an operator.

The prefix notation is primarily used for functions and predicates.

Link to original

Postfix Notation

Definition

Postfix Notation

Postfix notation is a notation for expressions of a term languages where the operators are placed after the terms.

Example:

where are terms and is an operator.

Link to original

Infix Notation

Definition

Infix Notation

Infix notation is a notation for expressions of a term languages where the operators are placed between the terms.

Example:

where are terms and is an operator.

The infix notation is primarily used for operators.

Link to original