Theoria.Inductive (theoria v0.5.0)

Copy Markdown View Source

Validation helpers for inductive specifications.

Summary

Types

validation_result()

@type validation_result() :: :ok | {:error, Theoria.Error.t()}

Functions

check_declarations(env, spec)

@spec check_declarations(Theoria.Env.t(), Theoria.Inductive.Spec.t()) ::
  validation_result()

check_spec(env, spec)

classify(spec)

complete(spec)

@spec complete(Theoria.Inductive.Spec.t()) ::
  {:ok, Theoria.Inductive.Spec.t()} | {:error, Theoria.Error.t()}

declarations(spec)

@spec declarations(Theoria.Inductive.Spec.t()) ::
  {:ok, [Theoria.Inductive.Declaration.t()]} | {:error, Theoria.Error.t()}

install(env, spec)

@spec install(Theoria.Env.t(), Theoria.Inductive.Spec.t()) ::
  {:ok, Theoria.Env.t()} | {:error, Theoria.Error.t()}

report(spec)

@spec report(Theoria.Inductive.Spec.t()) ::
  {:ok, Theoria.Inductive.Report.t()} | {:error, Theoria.Error.t()}

shape(spec)

validate(spec)

verify_env(env, spec)