Compare two naturals, answering with an order rather than a flag.
206def stdOrderCompareNatural =
207 (lambda unrestricted left : Nat . unrestricted right : Nat .
208 eliminate
209 StdBool
210 (lambda unrestricted current : (family StdBool) . family StdOrder)
211 (stdBoolFromNatural (nat-less-than left right))
212 (branch StdTrue . constructor StdOrder StdLess)
213 (branch
214 StdFalse
215 .
216 eliminate
217 StdBool
218 (lambda unrestricted current : (family StdBool) . family StdOrder)
219 (stdBoolFromNatural (nat-less-than right left))
220 (branch StdTrue . constructor StdOrder StdGreater)
221 (branch StdFalse . constructor StdOrder StdEqual)))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.