Source/Packages

Model.Word64

packages/foundation/standard/src/Model/Word64.alpha

555 lines53 declarations22.7 KiBSHA-256 a47b672b4018

def · lines 488–529

modelWord64FromNaturalTruncated

Full file
488def modelWord64FromNaturalTruncated =
489  (lambda unrestricted value : Nat .
490    app
491      (lambda unrestricted quotient1 : Nat .
492        app
493          (lambda unrestricted quotient2 : Nat .
494            app
495              (lambda unrestricted quotient3 : Nat .
496                app
497                  (lambda unrestricted quotient4 : Nat .
498                    app
499                      (lambda unrestricted quotient5 : Nat .
500                        app
501                          (lambda unrestricted quotient6 : Nat .
502                            app
503                              (lambda unrestricted quotient7 : Nat .
504                                constructor
505                                  ModelWord64
506                                  ModelWord64Value
507                                  (nat-to-byte
508                                    (naturalModuloUnchecked value byteNaturalTwoHundredFiftySix))
509                                  (nat-to-byte
510                                    (naturalModuloUnchecked quotient1 byteNaturalTwoHundredFiftySix))
511                                  (nat-to-byte
512                                    (naturalModuloUnchecked quotient2 byteNaturalTwoHundredFiftySix))
513                                  (nat-to-byte
514                                    (naturalModuloUnchecked quotient3 byteNaturalTwoHundredFiftySix))
515                                  (nat-to-byte
516                                    (naturalModuloUnchecked quotient4 byteNaturalTwoHundredFiftySix))
517                                  (nat-to-byte
518                                    (naturalModuloUnchecked quotient5 byteNaturalTwoHundredFiftySix))
519                                  (nat-to-byte
520                                    (naturalModuloUnchecked quotient6 byteNaturalTwoHundredFiftySix))
521                                  (nat-to-byte
522                                    (naturalModuloUnchecked quotient7 byteNaturalTwoHundredFiftySix)))
523                              (naturalDivideUnchecked quotient6 byteNaturalTwoHundredFiftySix))
524                          (naturalDivideUnchecked quotient5 byteNaturalTwoHundredFiftySix))
525                      (naturalDivideUnchecked quotient4 byteNaturalTwoHundredFiftySix))
526                  (naturalDivideUnchecked quotient3 byteNaturalTwoHundredFiftySix))
527              (naturalDivideUnchecked quotient2 byteNaturalTwoHundredFiftySix))
528          (naturalDivideUnchecked quotient1 byteNaturalTwoHundredFiftySix))
529      (naturalDivideUnchecked value byteNaturalTwoHundredFiftySix))

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.