Skip to main content

lemma_nat_range_finite

Function lemma_nat_range_finite 

Source
pub proof fn lemma_nat_range_finite(l: nat, r: nat)
Expand description
requires
l <= r,
ensures
Set::<nat>::range(l, r).len() == (r - l) as nat,

The length of a set of natural numbers between l and r equals r - l.