Metakit / @doeixd/metakit/prove

policy

function · packages/metakit/src/prove/policy.ts:15

function policy<Shape extends Readonly<Record<string, Schema.Top>>>(
  shape: Shape,
  goal: Expr.Expr<Path.EnvOf<Shape>, boolean>,
  options?: ProveOptions & {
    readonly hypotheses?: ReadonlyArray<Expr.Expr<Path.EnvOf<Shape>, boolean>>
  },
): Effect.Effect<Proof, SolverUnavailableError>

Prove that goal holds of every environment the Schemas of shape accept and every rule of options.hypotheses holds of.