Page actions
instrument / verified-clean
Unit Conversion Cost Comparator
The current ledger marks this instrument verified clean within the source-bound verification corpus.
Inspectable records
Ledger state
The current ledger marks this instrument verified clean within the source-bound verification corpus.
- Area
- Finance, Economics & Business (educational only — never individualized investment, tax, or legal advice)
- Tranche
- tranche-5
- Evidence ID
- t5-227
- Ledger rows
- 1
No ledger note is attached.
Review findings
The core arithmetic is standard, but the specification needs explicit unit metadata and conversion rules, currency and price-treatment assumptions, validation constraints, rounding behavior, and tie handling before it can be approved.
Formula and scope findings
- The algebraic formula unit_price=price/quantity is correct only after quantity has been converted to the target unit.
- The specification does not define source units, conversion factors, or the normalization procedure, so the phrase quantity(normalized to common unit) is ambiguous.
- The specification does not define whether cheapest-option comparisons use exact values or rounded displayed unit prices, nor how ties are reported.
- The formula is not valid for incompatible quantity types, such as comparing weight to count, unless an explicit equivalence is provided.
Unit assumptions
- All prices in a comparison are denominated in the same currency, here assumed to be USD.
- Prices are assumed to include the same treatment of taxes, discounts, deposits, and fees; otherwise the comparison may be misleading.
- Quantity units are explicitly supplied and converted to the target unit before division.
- Currency-per-target-unit outputs are shown to at least two decimal places, while cheapest-option selection should use unrounded values.
- Mass conversions use 1000 g = 1 kg; volume conversions use 1000 mL = 1 L; ounce examples use the same ounce definition for both products.
Boundary hardening
BREAK_CLAIMED · SELF_FLAGGED
A zero quantity makes the unit-price formula undefined. A naive plain-arithmetic implementation may emit Infinity instead of rejecting the item, allowing an invalid comparison or misleading output.
Errata and corrections
No applied erratum is attached to this unique-name record.
Inspectable example
4 review vectors are recorded. One source-bound sample is shown below.
{
"inputs": {
"currency": "USD",
"target_unit": "kg",
"items": [
{
"name": "Item A",
"price": 2.49,
"quantity": 500,
"unit": "g"
},
{
"name": "Item B",
"price": 3.3,
"quantity": 750,
"unit": "g"
}
]
},
"expected_outputs": {
"unit_prices": {
"Item A": 4.98,
"Item B": 4.4
},
"unit_price_units": "USD/kg",
"cheapest_option": "Item B"
},
"working": "Item A: 500 g ÷ 1000 = 0.5 kg; $2.49 ÷ 0.5 kg = $4.98/kg. Item B: 750 g ÷ 1000 = 0.75 kg; $3.30 ÷ 0.75 kg = $4.40/kg. Since $4.40/kg < $4.98/kg, Item B is cheapest."
}Related workflows
No source-defined multi-instrument workflow membership is recorded.
Sources and evidence
These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.
VERIFIED_LEDGER.json · VERIFIED_CLEANevidence-tranche5/tranche5-results.jsonBOUNDARY_HAZARD_CATALOG.json