System F - System F Structures

System F Structures

System F allows recursive constructions to be embedded in a natural manner, related to that in Martin-Löf's type theory. Abstract structures (S) are created using constructors. These are functions typed as:

.

Recursivity is manifested when itself appears within one of the types . If you have of these constructors, you can define the type of as:

For instance, the natural numbers can be defined as an inductive datatype with constructors

The System F type corresponding to this structure is . The terms of this type comprise a typed version of the Church numerals, the first few of which are:

0 :=
1 :=
2 :=
3 :=

If we reverse the order of the curried arguments (i.e., ), then the Church numeral for is a function that takes a function f as argument and returns the th power of f. That is to say, a Church numeral is a higher-order function – it takes a single-argument function f, and returns another single-argument function.

Read more about this topic:  System F

Famous quotes containing the words system and/or structures:

    All who wish to hand down to their children that happy republican system bequeathed to them by their revolutionary fathers, must now take their stand against this consolidating, corrupting money power, and put it down, or their children will become hewers of wood and drawers of water to this aristocratic ragocracy.
    Andrew Jackson (1767–1845)

    The American who has been confined, in his own country, to the sight of buildings designed after foreign models, is surprised on entering York Minster or St. Peter’s at Rome, by the feeling that these structures are imitations also,—faint copies of an invisible archetype.
    Ralph Waldo Emerson (1803–1882)