Entailment-shaped goal decomposition for pre ⊑ rhs targets: unfolding Triple,
introducing excess state arguments and pure preconditions, reducing
exception-postcondition projections, and decomposing lattice connectives.
Unfold ⦃P⦄ x ⦃Q; E⦄ into the underlying entailment P ⊑ wp x Q E.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply precondition-intro rule rule to goal, then introduce the freed hypothesis,
leaving ⊤ as the residual precondition. Returns the new goal and the last introduced hypothesis,
or none when every conjunct is an equation that substEqHyp? leaves unused.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Decompose the head of the RHS of pre ⊑ rhs with its split in latticeOps or a registered
@[frameproc] operator: saturate it with the split's rewrites, close it with its terminal, and
build a frame for any excess state arguments. Returns none if no split applies.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Reduce a precondition that is the bare top applied to the state arguments introduced by
le_of_forall_le, (⊤ : σ₁ → … → σₙ → Prop) s₁ … sₙ, to the bare (⊤ : Prop), rewriting goal's
target pre ⊑ rhs to ⊤ ⊑ rhs. The equation pre = ⊤ is built on demand by folding
Lean.Order.top_apply over the excess arguments and applied with replaceTargetEq.
The proof term is built directly with mkApp/mkConst and instances extracted from pre, avoiding
mkAppM/instance synthesis (both expensive and unable to unify max-of-universe-variable instance
levels in the abstract-monad setting). Returns none if pre is not the bare top applied to ≥ 1
argument, or its lattice instances are not in the expected instCompleteLatticePi shape (the caller
then falls through).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Reduce a Prop-lattice goal (⊤ : Prop) ⊑ φ to the bare proposition φ via top_le_prop,
returning any other goal unchanged. The match on Sort 0 keeps it to the Prop base lattice,
where the reduction is sound; entailments at an abstract lattice carrier pass through.
Equations
- One or more equations did not get rendered due to their size.