pack_conditions_to_spec

Function pack_conditions_to_spec 

Source
pub proof fn pack_conditions_to_spec<T>(
    spec: TempPred<T>,
    c: TempPred<T>,
    p: TempPred<T>,
    q: TempPred<T>,
)
Expand description
requires
spec.entails(p.and(c).leads_to(q)),
ensures
spec.and(always(c)).entails(p.leads_to(q)),

Pack the conditions from the right to the left side of .

§Preconditions

  • spec ⊧ p ∧ c ⇝ q

§Postconditions

  • spec ∧ □c ⊧ p ⇝ q