or_leads_to_combine

Function or_leads_to_combine 

Source
pub broadcast proof fn or_leads_to_combine<T>(
    spec: TempPred<T>,
    p: TempPred<T>,
    q: TempPred<T>,
    r: TempPred<T>,
)
Expand description
requires
spec.entails(p.leads_to(r)),
spec.entails(q.leads_to(r)),
ensures
#[trigger] spec.entails(p.or(q).leads_to(r)),

Combine the premises of two using .

§Preconditions

  • spec ⊧ p ⇝ r
  • spec ⊧ q ⇝ r

§Postconditions

  • spec ⊧ (p ∨ q) ⇝ r