How do I help dafny see the obvious here?
13:11 12 Nov 2025

Obviously, the set of nonnegative integers below n has cardinality n. But dafny seemingly can't prove it:

method FirstNonnegatives(n: int) returns (s: set)
    requires n >= 0
    ensures |s| == n
{
    s := set k | 0 <= k < n;
}

What change would help the verifier with the method above?

dafny