Theoria.Kernel.EnvironmentCorpus (theoria v0.7.0)

Copy Markdown View Source

Deterministic environment fragments for kernel replay assurance.

Summary

Functions

Returns deterministic environment cases used by kernel differential assurance.

Builds a transparent definition chain ending in a theorem over the normalized endpoint.

Returns malformed deterministic environments expected to be rejected.

Builds definitions whose values contain lets that normalize to the previous declaration.

Builds a definition chain with theorem declarations at every step.

Builds a small universe-polymorphic identity chain.

Functions

cases(opts \\ [])

Returns deterministic environment cases used by kernel differential assurance.

definition_chain(depth)

@spec definition_chain(pos_integer()) :: Theoria.Kernel.EnvironmentCorpus.Case.t()

Builds a transparent definition chain ending in a theorem over the normalized endpoint.

invalid_cases(opts \\ [])

Returns malformed deterministic environments expected to be rejected.

let_chain(depth)

Builds definitions whose values contain lets that normalize to the previous declaration.

theorem_chain(depth)

Builds a definition chain with theorem declarations at every step.

universe_polymorphic_chain(depth)

@spec universe_polymorphic_chain(pos_integer()) ::
  Theoria.Kernel.EnvironmentCorpus.Case.t()

Builds a small universe-polymorphic identity chain.