Changes between Version 3 and Version 4 of TypeNats/Naturals
- Timestamp:
- 02/04/11 12:38:47 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TypeNats/Naturals
v3 v4 20 20 For example, subtracting a larger number from a smaller one results in the undefined value of type ''Natural''. 21 21 22 We also provide some functions for converting ''Inte rger'' values into their corresponding ''Natural'' ones.22 We also provide some functions for converting ''Integer'' values into their corresponding ''Natural'' ones. 23 23 We do this by using an intermediate representation for integers in terms of naturals, ''NaturalInteger''. This type 24 24 is intended to be used only for the conversion. While, in principle, we could provide numeric instances for the type,
