EasyCrypt's big operators on bounds (theories/algebra/StdBigop) #
The facts EC's smt() uses on the bounds of fel and seq: a sum over EC's range 0 n (here
Finset.Ico (0 : ℤ) n) of a constant, the same sum over ℕ, and a real bound n%r * mu1 d v
as an ENNReal (ENNReal.ofReal). None needs 0 ≤ n: for a negative n both sides vanish.
big predT (fun _ => c) (range 0 n) = n * c.
A sum over EC's range 0 n of a function of i, as a sum over ℕ.
n%r * mu1 d v, the real bound, as an ENNReal: n times the mass of v.