Membership of in-range defaulted lookups #
A defaulted lookup l.getD i d at an index i < l.length returns an entry of l. Statements
that read lists with getD use this to apply a property of all entries; the general case, where
the lookup may return the default, is List.getD_mem_or.
Main results #
List.getD_mem:l.getD i d ∈ lfori < l.length.