Skip to main content

lemma_disjoint_option_end

Function lemma_disjoint_option_end 

Source
pub broadcast proof fn lemma_disjoint_option_end<P: Productive, A: SpecParser>(
    p: P,
    opt: OptionalEnd<A>,
)
Expand description
requires
p.productive_inv(),
p.safe_inv(),
disjoint_domains(p, opt.0),
ensures
#[trigger] disjoint_domains(p, opt),

An OptionalEnd<A> parser is disjoint from another parser if its inner parser is

  • productive and safe, and
  • disjoint from the other parser.