Weak head normal form


reduction, lambda calculus
(WHNF) A lambda expression is in weak head normal form (WHNF) if it is a head normal form (HNF) or any lambda abstraction. I.e. the top level is not a redex.
The term was coined by Simon Peyton Jones to make explicit the difference between head normal form (HNF) and what graph reduction systems produce in practice. A lambda abstraction with a reducible body, e.g.
\ x . ((\ y . y+x) 2)
is in WHNF but not HNF. To reduce this expression to HNF would require reduction of the lambda body:
(\ y . y+x) 2 –> 2+x
Reduction to WHNF avoids the name capture problem with its need for alpha conversion of an inner lambda abstraction and so is preferred in practical graph reduction systems.
The same principle is often used in strict languages such as Scheme to provide call-by-name evaluation by wrapping an expression in a lambda abstraction with no arguments:
D = delay E = \ () . E
The value of the expression is obtained by applying it to the empty argument list:
force D = apply D () = apply (\ () . E) () = E
(1994-10-31)

Read Also:

  • Weakhearted

    adjective 1. without courage or fortitude; fainthearted.

  • Weak-hearted

    adjective 1. without courage or fortitude; fainthearted.

  • Weak-interaction

    noun, Physics. 1. the interaction between elementary particles and the intermediate vector bosons that carry the weak force from one particle to another. weak interaction noun 1. (physics) an interaction between elementary particles that is responsible for certain decay processes, operates at distances less than about 10–15 metres, and is 1012 times weaker than the […]

  • Weakish

    adjective 1. rather weak.

  • Weak-kneed

    adjective 1. yielding readily to opposition, pressure, intimidation, etc. adjective 1. (informal) yielding readily to force, persuasion, intimidation, etc


Disclaimer: Weak head normal form definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.