# Fictional price-basis arithmetic — 28 November 2026

Anant Mishra. Prepared with AI assistance. Five authored records, executed offline with Python standard library. No network or credentials.

Save fixture.json and reproduce.py together. Run `python3 reproduce.py > new-record.json`. Compare results, boundary_checks and sha256 with execution-record.json. Actual UTC time and Python version may differ. An independent rerun matched those fields.

Local contract: exact listed fields; quantities, price, base and stated amount are nonnegative plain decimal strings; base must exceed zero; explicit unit strings must agree; currency is AED. Unit and currency code lists are not validated. Numeric JSON values, signs, exponents, whitespace and nonfinite strings are unsupported. Negative quantities/prices are outside this toy, not declared invalid for all invoices. Missing fields raise an error. Zero base, unit disagreement and unsupported currency produce local holds. No implicit base or conversion is invented.

For supported records calculate quantity * price / base with exact rational arithmetic. Return unrounded result, stated amount and exact stated-minus-calculated difference. Five hand-authored expectations and twelve named boundary assertions ran. No rounding or tolerance pass/fail is implemented. The fractional example returns 1.015 against stated 1.02, difference 0.005; it is not a standards rejection.

Reviewed OpenPeppol PINT-AE v1.0.5 IBT-149, IBR-087, IBR-088 and IBR-147-AE on 28 November 2026. The latter includes line allowances/charges and a 0.02 tolerance; this reference does not implement that full rule or its tolerance verdict. The fixture excludes tax, discounts and line adjustments. No XML, Schematron, unit conversion, provider exchange, ERP mapping or compliance validation ran.

Operational evidence still needed: authorized source prices and quantities, actual field meanings, product/unit conversions, effective commercial agreement, rounding/precision policy, complete applicable validation and provider receipts. No client, deployment, savings, DGX/model experiment, peer review, DOI or scholarly release is claimed.
