Source/Packages

Std.List

packages/foundation/standard/src/Std/List.alpha

428 lines21 declarations14.7 KiBSHA-256 1d350bdfe159

def · lines 362–372

stdListNaturalsBelow

Full file
A list of the naturals below a bound, in increasing order: `[0, 1, ..., n-1]`.
362def stdListNaturalsBelow =
363  (lambda unrestricted bound : Nat .
364    nat-eliminate
365      (lambda unrestricted current : Nat . family StdList Nat)
366      (constructor StdList StdListEmpty Nat)
367      (lambda unrestricted predecessor : Nat . unrestricted induction : (family StdList Nat) .
368        stdListAppend
369          Nat
370          induction
371          (constructor StdList StdListCons Nat predecessor (constructor StdList StdListEmpty Nat)))
372      bound)

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.