Source/Packages

Std.Foundation

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

329 lines52 declarations12.3 KiBSHA-256 7818c29d5c7c

def · lines 168–175

stdBoolFromNatural

Full file
Zero is false, every other natural is true.
168def stdBoolFromNatural =
169  (lambda unrestricted value : Nat .
170    (nat-eliminate
171      (lambda unrestricted current : Nat . (family StdBool))
172      (constructor StdBool StdFalse)
173      (lambda unrestricted predecessor : Nat .
174        (lambda unrestricted induction : (family StdBool) . (constructor StdBool StdTrue)))
175      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.