Source/Packages

Std.Fin

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

55 lines10 declarations1.9 KiBSHA-256 56ed5c139b6d

field · lines 18–18

stdFinNextBound

Full file
Bounded indices (Language Platform PRD §28.2 Numerics, LP-801). `StdFin n` is a natural strictly below `n`, carried in the TYPE. An index that cannot exist cannot be built, so an out-of-range access is not a runtime error to handle: it is a program the checker rejects. The bound is erased, so nothing here costs anything at runtime.
18field erased stdFinNextBound : Nat

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.