Recursive definition

From Wikipedia, the free encyclopedia

A recursive definition or inductive definition is one that defines something in terms of itself (that is, recursively), albeit in a useful way. For it to work, the definition in any given case must be well-founded, avoiding an infinite regress.

Most recursive definition have three foundations: a basis, an inductive clause, and an extremal clause.

The difference between a circular definition and a recursive definition is that a recursive definition must have base cases, cases that satisfy the definition without being defined in terms of the definition itself, and all other cases comprising the definition must be "smaller" (closer to those base cases that terminate the recursion).

In contrast, a circular definition has no base cases and defines itself in terms of itself, rather than a version of itself closer to a base case. This leads to a vicious circle. Thus, the quip of "Recursive definition: see Recursive definition" is inaccurate: this is a circular definition.

Contents

[edit] Examples of recursive definitions

[edit] Prime numbers

The prime numbers can be defined as consisting of:

  • 2, the smallest prime;
  • each positive integer which is not evenly divisible by any of the primes smaller than itself.

The integer 2 is our base case; checking the primality of any larger integer X requires us to know the primality of every integer between X and 2, but each such integer is closer to our base case of 2 than X is.

[edit] Non-negative even numbers

The even numbers can be defined as consisting of

  • 0 is in the set N of non-negative evens (basis clause)
  • For any element x in the set N, x+2 is in N (inductive clause)
  • Nothing is in N unless it is obtained from the basis and inductive clauses (extremal clause)

[edit] Well formed Formula

It is chiefly in logic or computer programming that recursive definitions are found. For example, a well formed formula (wff) can be defined as:

  1. a symbol which stands for a proposition - like p means "Connor is a lawyer."
  2. The negation symbol, followed by a wff - like Np means "It is not true that Connor is a lawyer."
  3. Any of the four binary connectives (C, A, K, or E) followed by two wffs. The symbol K means "both are true", so Kpq may mean "Connor is a lawyer and Mary likes music."

The value of such a recursive definition is that it can be used to determine whether any particular string of symbols is "well formed".

  • Kpq is well formed, because it's K followed by the atomic wffs p and q.
  • NKpq is well formed, because it's N followed by Kpq, which is in turn a wff.
  • KNpNq is K followed by Np and Nq; and Np is a wff, etc.

[edit] Recursive definitions in hacker culture

The computer language LISP has a similar definition, and some fans of LISP have playfully constructed acronyms which are recursive but with an infinite regress. Hackers seem to find this a source of immense amusement. For example,

  • GNU means "GNU's Not Unix".

[edit] Recursive definitions in common parlance and philosophical terminology

In common parlance and philosophical terminology, definitions often contain recursive elements.

  • "Nothing" is defined by properties it does not have. "There's nothing in that room." describes that there is nothing notable in the room, most probably there is air in the room, but the air would be irrelevant as it does not correspond to the necessary properties that would have been defined or implied in the preceding sentence. The phrases "the nothing(ness)" and "absolute nothing(ness)" would describe something that lacks any property, something to which nothing can be described to, indeed something that does not exist, not in this universe, not in one's imagination, nowhere.
  • "Science" may be seen as the practice of describing the empirical or observable facts of nature (or at least trying to do so). As scientists only consider nature for as far as it can be observed, they tend to see non-observable things as supernatural and/or not existing in this universe. Supernatural or paranormal phenomena, if they exist, would only be described as thus because they go beyond how nature is commonly perceived.