Type Arithmetics: Computation based on the theory of types

dc.creatorKiselyov, Oleg
dc.date2001-04-03
dc.date.accessioned2026-07-07T03:17:04Z
dc.date.available2026-07-07T03:17:04Z
dc.descriptionThe present paper shows meta-programming turn programming, which is rich enough to express arbitrary arithmetic computations. We demonstrate a type system that implements Peano arithmetics, slightly generalized to negative numbers. Certain types in this system denote numerals. Arithmetic operations on such types-numerals - addition, subtraction, and even division - are expressed as type reduction rules executed by a compiler. A remarkable trait is that division by zero becomes a type error - and reported as such by a compiler.
dc.description1 HTML page, 1 C++ source code file
dc.identifierhttps://arxiv.org/abs/cs/0104010
dc.identifierhttp://arxiv.org/abs/cs/0104010
dc.identifier.urihttp://salesiana.dossiersoluciones.com/handle/123456789/30586
dc.subjectComputation and Language
dc.subjectF.3.3; F.4.2; D.3.3
dc.titleType Arithmetics: Computation based on the theory of types
dc.typetext

Files

Collections