Struct lamcal::NormalOrder[][src]

pub struct NormalOrder<A> { /* fields omitted */ }

Normal-Order β-reduction to normal form.

  • Reduces the leftmost outermost redex first.
  • In an application (e1 e2) the function term e1 is reduced using the call-by-name strategy (CallByName).
  • Any redex that is contracted is the leftmost one not contained in any other redex.
  • Reductions are performed also under lambda abstractions.

This strategy is a hybrid as it uses call-by-name for the reduction of the expression e1 in function position in applications (e1 e2).

Trait Implementations

impl<A: Default> Default for NormalOrder<A>
[src]

Returns the "default value" for a type. Read more

impl<A: Debug> Debug for NormalOrder<A>
[src]

Formats the value using the given formatter. Read more

impl<A: Clone> Clone for NormalOrder<A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: Copy> Copy for NormalOrder<A>
[src]

impl<A: PartialEq> PartialEq for NormalOrder<A>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<A> BetaReduce for NormalOrder<A> where
    A: AlphaRename
[src]

Performs β-reduction allowing to inspect the current term before each contraction. Read more

Performs β-reduction on the given Term and returns the result. Read more

Performs one step of β-reduction on the given Term and returns the result. Read more

Auto Trait Implementations

impl<A> Send for NormalOrder<A> where
    A: Send

impl<A> Sync for NormalOrder<A> where
    A: Sync