Theoria.Rewrite.Proof (theoria v0.5.0)

Copy Markdown View Source

Proof construction helpers for structural rewrite steps.

Summary

Functions

Attaches proof status and a checked proof to a rewrite step when possible.

Returns a checked proof for a rewrite step when currently supported.

Instantiates a realized or proof-backed rule proof with the rewrite substitution.

Functions

attach(env, step)

Attaches proof status and a checked proof to a rewrite step when possible.

for_step(env, step)

@spec for_step(Theoria.Env.t(), Theoria.Rewrite.Step.t()) :: Theoria.Term.t() | nil

Returns a checked proof for a rewrite step when currently supported.

instantiate_rule(rule, substitution)

@spec instantiate_rule(
  Theoria.Rewrite.Rule.t(),
  Theoria.Rewrite.Match.substitution() | nil
) ::
  Theoria.Term.t() | nil

Instantiates a realized or proof-backed rule proof with the rewrite substitution.