Predicate mapping

from Wikipedia, the free encyclopedia

A predicate mapping is a mathematical function that maps a logical truth value ( true or false ) to the numbers 0 or 1. This allows disruptive case distinctions to be transformed in such a way that the resulting function can be used more easily in mathematical conclusions.

definition

The following definition is from Kenneth E. Iverson , 1962:

If is a predicate , then is defined as follows:

I.e. that this mapping maps a logical truth value to an integer value that can be reused in mathematical formulas, namely a true statement is mapped to a 1 and a false statement to a 0 (see example). With this illustration you can now turn complex formulas with case distinctions into a single formula.

example

The Fibonacci numbers are defined by the following recurrence equation:

With Iverson's mapping, this recurrence equation can be converted into a simple form:

The part corresponds to the recursive definition of the Fibonacci numbers. The factor removes this recursive part for all Fibonacci numbers with an index less than or equal to 1. And is 1 if and only if the index is 1. This makes the Fibonacci number with the index 1 equal to 1, and this ensures that the Fibonacci numbers with an index greater than 1 also have a value greater than 0.

With this formula it is now easier to determine the closed formula.

See also