slovodefinícia
head normal form
(foldoc)
Head Normal Form

(HNF) A term describing a {lambda
expression} whose top level is either a variable, a data
value, a built-in function applied to too few arguments, or a
lambda abstraction whose body is not reducible. I.e. the
top level is neither a redex nor a lambda abstraction with a
reducible body.

An expression in HNF may contain redexes in argument postions
whereas a normal form may not.

Compare Weak Head Normal Form.

(2003-01-08)
podobné slovodefinícia
weak head normal form
(foldoc)
Weak Head Normal Form

(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)

Nenašli ste slovo čo ste hľadali ? Doplňte ho do slovníka.

na vytvorenie tejto webstránky bol pužitý dictd server s dátami z sk-spell.sk.cx a z iných voľne dostupných dictd databáz. Ak máte klienta na dictd protokol (napríklad kdict), použite zdroj slovnik.iz.sk a port 2628.

online slovník, sk-spell - slovníkové dáta, IZ Bratislava, Malé Karpaty - turistika, Michal Páleník, správy, údaje o okresoch V4