Aller au contenu principal

Harrop formula


Harrop formula


In intuitionistic logic, the Harrop formulae, named after Ronald Harrop, are the class of formulae inductively defined as follows:

  • Atomic formulae are Harrop, including falsity (⊥);
  • A B {\displaystyle A\wedge B} is Harrop provided A {\displaystyle A} and B {\displaystyle B} are;
  • ¬ F {\displaystyle \neg F} is Harrop for any well-formed formula F {\displaystyle F} ;
  • F A {\displaystyle F\rightarrow A} is Harrop provided A {\displaystyle A} is, and F {\displaystyle F} is any well-formed formula;
  • x . A {\displaystyle \forall x.A} is Harrop provided A {\displaystyle A} is.

By excluding disjunction and existential quantification (except in the antecedent of implication), non-constructive predicates are avoided, which has benefits for computer implementation.

Discussion

Harrop formulae are "well-behaved" also in a constructive context. For example, in Heyting arithmetic H A {\displaystyle {\mathsf {HA}}} , Harrop formulae satisfy a classical equivalence not generally satisfied in constructive logic:

¬ ¬ A A . {\displaystyle \neg \neg A\leftrightarrow A.}

There are however Π 1 {\displaystyle \Pi _{1}} -statements that are P A {\displaystyle {\mathsf {PA}}} -independent, meaning these are simple x . A {\displaystyle \forall x.A} statements for which excluded middle is not H A {\displaystyle {\mathsf {HA}}} -provable. Indeed, while intuitionistic logic proves ¬ ¬ ( P ¬ P ) {\displaystyle \neg \neg (P\lor \neg P)} for any P {\displaystyle P} , the disjunction wont be Harrop.

Hereditary Harrop formulae and logic programming

A more complex definition of hereditary Harrop formulae is used in logic programming as a generalisation of Horn clauses, and forms the basis for the language λProlog. Hereditary Harrop formulae are defined in terms of two (sometimes three) recursive sets of formulae. In one formulation:

  • Rigid atomic formulae, i.e. constants r {\displaystyle r} or formulae r ( t 1 , . . . , t n ) {\displaystyle r(t_{1},...,t_{n})} , are hereditary Harrop;
  • A B {\displaystyle A\wedge B} is hereditary Harrop provided A {\displaystyle A} and B {\displaystyle B} are;
  • x . A {\displaystyle \forall x.A} is hereditary Harrop provided A {\displaystyle A} is;
  • G A {\displaystyle G\rightarrow A} is hereditary Harrop provided A {\displaystyle A} is rigidly atomic, and G {\displaystyle G} is a G-formula.

G-formulae are defined as follows:

  • Atomic formulae are G-formulae, including truth(⊤);
  • A B {\displaystyle A\wedge B} is a G-formula provided A {\displaystyle A} and B {\displaystyle B} are;
  • A B {\displaystyle A\vee B} is a G-formula provided A {\displaystyle A} and B {\displaystyle B} are;
  • x . A {\displaystyle \forall x.A} is a G-formula provided A {\displaystyle A} is;
  • x . A {\displaystyle \exists x.A} is a G-formula provided A {\displaystyle A} is;
  • H A {\displaystyle H\rightarrow A} is a G-formula provided A {\displaystyle A} is, and H {\displaystyle H} is hereditary Harrop.

History

Harrop formulae were introduced around 1956 by Ronald Harrop and independently by Helena Rasiowa. Variations of the fundamental concept are used in different branches of constructive mathematics and logic programming.

See also

  • Realizability

References

Giuseppe Zanotti Luxury Sneakers

Text submitted to CC-BY-SA license. Source: Harrop formula by Wikipedia (Historical)