Source/Packages

Std.Foundation

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

325 lines52 declarations11.6 KiBSHA-256 3dcbd3fa87ff

def · lines 163–170

stdBoolFromNatural

Full file
Zero is false, every other natural is true.
163def stdBoolFromNatural =
164  (lambda unrestricted value : Nat .
165    nat-eliminate
166      (lambda unrestricted current : Nat . family StdBool)
167      (constructor StdBool StdFalse)
168      (lambda unrestricted predecessor : Nat . unrestricted induction : (family StdBool) .
169        constructor StdBool StdTrue)
170      value)

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.