Xnumbers
Xnumbers are a conceptual extension of numerical values that pair a numeric magnitude with an extra context tag. They are designed to encode not only the value itself but also ancillary information such as units, provenance, or qualitative context, allowing arithmetic that respects this additional structure.
An Xnumber is formally a pair (n, t), where n is a numeric value and t is
The collection of Xnumbers can form algebraic structures such as rings or semirings under suitable tag operations.
Applications include units-aware numerical calculations, dimensional analysis, and provenance tracking in simulations. They provide a formal
See also: units, dimensional analysis, unit-safe arithmetic, provenance tracking.