{
  "id": "target-fraction-reference-v1",
  "version": "1.0.0",
  "published": "2026-11-12",
  "scope": "Fixed synthetic, nonexhaustive examples for the shipped target-margin pricing and unsigned bounded custom-fraction tools. English machine fields/explanations, ASCII raw input strings, exact integer-string rational quantities and generic amount units. No private inputs, live figures, currency inference, personalized advice, original empirical research, external certification, measured ranking or universal-correctness claim.",
  "review": {
    "method": "Expected values independently derived with exact rational mathematics and standalone Python standard-library Fraction operations; no application/helper execution supplied expectations. Implementation conformance is tested separately in release evidence.",
    "external": "not-verified",
    "nativeLanguage": "not-verified"
  },
  "provenance": {
    "sourceBaseline": "ab91afd13cfa4f4dba34751c8c0692c16943c4bc",
    "sourceScope": [
      "lib/target-margin.ts",
      "lib/custom-fraction.ts",
      "lib/fraction-equivalence.ts",
      "lib/nonnegative-amount.ts",
      "lib/pricing-workbench.ts"
    ],
    "meaning": "Baseline identifies the shipped contract read as source, not an observation of helper execution or production-browser acceptance.",
    "relatedEditions": [
      {
        "id": "percentage-reference-v1",
        "version": "1.0.0",
        "published": "2026-11-11",
        "sha256": {
          "json": "50a5d42ddd9f8b77a04869e03142062fb60f204fa45a7be9087a00268c58e5fd",
          "csv": "0badee580b058f4b5c7c94ee3954a28b866254f56f725f2dbad131192ca4cc3f"
        },
        "relationship": "Unchanged earlier edition; this companion neither edits nor replaces it."
      },
      {
        "id": "tool-reference-v1",
        "version": "1.0.0",
        "published": "2026-11-12",
        "sha256": {
          "json": "d3590f2eb3a8969e3147d2d6417d6acf850d01fcb63d3e2976fd2f2c32f02d8c",
          "csv": "d1ebdba27acebfe387727ac5165a536e1cb4e118b88160f2e555979455dc47c6"
        },
        "relationship": "Unchanged earlier edition; this companion neither edits nor replaces it."
      }
    ]
  },
  "format": {
    "machineLanguage": "en",
    "inputLocale": "en",
    "fileEncoding": "UTF-8. Inputs and numerical strings use ASCII digits; explanations and formulas may use ordinary UTF-8 text.",
    "inputs": "Raw strings are preserved verbatim, including intentionally rejected spellings. No JSON Number is used for an input quantity. These are fixed examples, never captured user inputs.",
    "rational": {
      "shape": {
        "numerator": "integer string",
        "denominator": "positive integer string"
      },
      "canonical": "Reduced to a greatest common divisor of 1, with a positive denominator; zero is 0/1. Use exact integer/rational arithmetic for equality, not binary floating-point conversions."
    },
    "units": "exactPrice is an amount in generic units. fraction is a dimensionless ratio. percent and observedMarginPercent are percentage-valued rationals: 20/1 means 20%, while the corresponding dimensionless ratio is 1/5. The input target string is also a percentage-valued number.",
    "undefined": "null in a valid target case denotes an undefined target price, attained margin, relation or display due to zero cost. It is not zero, an invalid-input status, missing observation, NaN or Infinity. A rejected zero fraction denominator instead has status:error.",
    "display": {
      "locale": "en",
      "meaning": "text contains ordinary ASCII decimal-point output; target observedMarginPercent text includes a percent sign, while fraction percentNumber text does not. An approximate flag means the displayed number differs from the exact quantity it represents; the approximation sign is not embedded in text.",
      "rounding": "Nonnegative half-up, with trailing fractional zeros removed. Target price: at most 6 fractional places; target attained margin: at most 4 percentage fractional places; fraction decimal: at most 4 fractional places; fraction percentage number: at most 2 fractional places.",
      "noninvertibility": "FR05 and FR06 intentionally share display text but have different exact fractions, expansion types and approximation flags; rounded text alone cannot recover a unique original."
    },
    "errors": "Expected invalid outcomes preserve the tool status and first failing field. Fraction reason is the current fixed zero/range/number reason. This finite corpus does not cover every lexical-invalid/empty/native-locale spelling, input order or resource case."
  },
  "tools": {
    "targetMargin": {
      "routeTemplate": "/{locale}/blog/margin-vs-markup/",
      "limits": {
        "costMin": "0",
        "costMax": "1000000000",
        "targetPercentMin": "0",
        "targetPercentExclusiveMax": "100",
        "originalFractionDigitsMax": 6,
        "rawInputLengthMax": 64
      },
      "contract": "For positive cost, cost / (1 - targetPercent/100) gives an exact rational price. Round only its displayed price to 6 places; compute attained margin from that displayed price and original cost exactly, then compare with the requested target before margin formatting. Zero cost has no target-price solution in the supported target interval. Derived price can exceed the input cost ceiling."
    },
    "fraction": {
      "routeTemplate": "/{locale}/",
      "limits": {
        "numeratorMin": "0",
        "numeratorMax": "2000",
        "denominatorMin": "1",
        "denominatorMax": "1000",
        "ratioMin": "0",
        "ratioMax": "2",
        "rawInputLengthMax": 16,
        "signs": "unsupported, including signed zero"
      },
      "contract": "Read unsigned integer digits within the raw, field and ratio limits, then reduce exactly. A reduced denominator with no prime factors except 2 and 5 gives a terminating base-ten expansion. Finite/repeating classification is distinct from displayed precision; no reverse recovery from rounded decimal input is offered."
    }
  },
  "cases": [
    {
      "id": "TM01",
      "tool": "targetMargin",
      "inputs": {
        "cost": "80",
        "target": "20"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "100",
          "denominator": "1"
        },
        "observedMarginPercent": {
          "numerator": "20",
          "denominator": "1"
        },
        "relation": "matches",
        "display": {
          "price": {
            "text": "100",
            "approximate": false
          },
          "observedMarginPercent": {
            "text": "20%",
            "approximate": false
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "An exact target price and exact attained margin.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 80/(1-20/100)=100; (100-80)/100*100=20."
    },
    {
      "id": "TM02",
      "tool": "targetMargin",
      "inputs": {
        "cost": "100",
        "target": "30"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "1000",
          "denominator": "7"
        },
        "observedMarginPercent": {
          "numerator": "4285714300",
          "denominator": "142857143"
        },
        "relation": "above",
        "display": {
          "price": {
            "text": "142.857143",
            "approximate": true
          },
          "observedMarginPercent": {
            "text": "30%",
            "approximate": true
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "The rounded price is slightly above its exact value; a displayed approximate 30% is not an exact equality.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 100/(7/10)=1000/7; rounded price142857143/1000000; attained margin4285714300/142857143%, differing from30% by10/142857143%."
    },
    {
      "id": "TM03",
      "tool": "targetMargin",
      "inputs": {
        "cost": "80",
        "target": "30"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "800",
          "denominator": "7"
        },
        "observedMarginPercent": {
          "numerator": "1714285700",
          "denominator": "57142857"
        },
        "relation": "below",
        "display": {
          "price": {
            "text": "114.285714",
            "approximate": true
          },
          "observedMarginPercent": {
            "text": "30%",
            "approximate": true
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "The rounded price misses the requested margin even though the margin display is approximately30%.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 80/(7/10)=800/7; rounded price57142857/500000; attained margin1714285700/57142857%, differing from30% by-10/57142857%."
    },
    {
      "id": "TM04",
      "tool": "targetMargin",
      "inputs": {
        "cost": "100",
        "target": "0"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "100",
          "denominator": "1"
        },
        "observedMarginPercent": {
          "numerator": "0",
          "denominator": "1"
        },
        "relation": "matches",
        "display": {
          "price": {
            "text": "100",
            "approximate": false
          },
          "observedMarginPercent": {
            "text": "0%",
            "approximate": false
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "Zero target is valid and is different from undefined price or margin.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 100/(1-0/100)=100; attained margin0/1%."
    },
    {
      "id": "TM05",
      "tool": "targetMargin",
      "inputs": {
        "cost": "0",
        "target": "30"
      },
      "expected": {
        "status": "valid",
        "exactPrice": null,
        "observedMarginPercent": null,
        "relation": null,
        "display": {
          "price": null,
          "observedMarginPercent": null
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "Zero cost has no valid target-price solution in the supported range: zero selling price has undefined margin; positive selling price gives100%.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: P=0 from the algebraic rearrangement is not a valid solution of margin=(P-C)/P; atC=P=0 the denominator is zero."
    },
    {
      "id": "TM06",
      "tool": "targetMargin",
      "inputs": {
        "cost": "0.000002",
        "target": "20"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "1",
          "denominator": "400000"
        },
        "observedMarginPercent": {
          "numerator": "100",
          "denominator": "3"
        },
        "relation": "above",
        "display": {
          "price": {
            "text": "0.000003",
            "approximate": true
          },
          "observedMarginPercent": {
            "text": "33.3333%",
            "approximate": true
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "Half-up at an exact half-micro-unit rounds upward and changes the attained margin.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: (2/1000000)/(4/5)=1/400000=0.0000025; displayed price3/1000000; attained margin100/3%."
    },
    {
      "id": "TM07",
      "tool": "targetMargin",
      "inputs": {
        "cost": "0.000001",
        "target": "0.000001"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "100",
          "denominator": "99999999"
        },
        "observedMarginPercent": {
          "numerator": "0",
          "denominator": "1"
        },
        "relation": "below",
        "display": {
          "price": {
            "text": "0.000001",
            "approximate": true
          },
          "observedMarginPercent": {
            "text": "0%",
            "approximate": false
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "A tiny positive target rounds back to cost; attained margin is exactly zero and below target.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: (1/1000000)/(99999999/100000000)=100/99999999; displayed price1/1000000 equals cost, so attained margin0/1%."
    },
    {
      "id": "TM08",
      "tool": "targetMargin",
      "inputs": {
        "cost": "0.000001",
        "target": "99.999999"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "100",
          "denominator": "1"
        },
        "observedMarginPercent": {
          "numerator": "99999999",
          "denominator": "1000000"
        },
        "relation": "matches",
        "display": {
          "price": {
            "text": "100",
            "approximate": false
          },
          "observedMarginPercent": {
            "text": "100%",
            "approximate": true
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "An exact attained margin below100% can display as approximate100%; the exact target remains99.999999%.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: (1/1000000)/(1/100000000)=100; attained margin99999999/1000000%."
    },
    {
      "id": "TM09",
      "tool": "targetMargin",
      "inputs": {
        "cost": "100",
        "target": "100"
      },
      "expected": {
        "status": "error",
        "field": "target"
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "A100% target is rejected; no finite price is manufactured.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: The permitted target is strictly below100%; this literal violates that target bound."
    },
    {
      "id": "TM10",
      "tool": "targetMargin",
      "inputs": {
        "cost": "-1",
        "target": "30"
      },
      "expected": {
        "status": "error",
        "field": "cost"
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "Negative nonzero cost is rejected before target calculation.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: The permitted cost is nonnegative; -1 violates the input amount contract."
    },
    {
      "id": "TM11",
      "tool": "targetMargin",
      "inputs": {
        "cost": "1000000000",
        "target": "99.999999"
      },
      "expected": {
        "status": "valid",
        "exactPrice": {
          "numerator": "100000000000000000",
          "denominator": "1"
        },
        "observedMarginPercent": {
          "numerator": "99999999",
          "denominator": "1000000"
        },
        "relation": "matches",
        "display": {
          "price": {
            "text": "100000000000000000",
            "approximate": false
          },
          "observedMarginPercent": {
            "text": "100%",
            "approximate": true
          }
        }
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "Derived exact price exceeds the cost-input ceiling and the binary safe-integer range; output is not recapped or converted through Number.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 1000000000/(1/100000000)=100000000000000000; attained margin99999999/1000000%."
    },
    {
      "id": "TM12",
      "tool": "targetMargin",
      "inputs": {
        "cost": "100",
        "target": "0.0000001"
      },
      "expected": {
        "status": "error",
        "field": "target"
      },
      "formula": "price = cost / (1 - targetPercent/100); attainedMarginPercent = (displayedPrice-cost) / displayedPrice * 100",
      "assumptions": [
        "Inputs are exact entered-decimal generic amount and percentage-valued target strings in English syntax.",
        "Only entered cost is included; no currency, accounting precision, tax, fee or pricing recommendation is inferred.",
        "Six-decimal displayed price is half-up; attained gross margin is computed exactly from that displayed price and then displayed to four percentage decimals."
      ],
      "limitation": "A seventh original fractional digit is rejected rather than rounded into a valid target.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: The amount parser accepts at most six original fractional digits;0.0000001 has seven."
    },
    {
      "id": "FR01",
      "tool": "fraction",
      "inputs": {
        "numerator": "3",
        "denominator": "4"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "3",
          "denominator": "4"
        },
        "fraction": {
          "numerator": "3",
          "denominator": "4"
        },
        "percent": {
          "numerator": "75",
          "denominator": "1"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "0.75",
            "approximate": false
          },
          "percentNumber": {
            "text": "75",
            "approximate": false
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "An exactly displayable three-quarter equivalence.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 3/4=0.75; exact percentage75/1%=75%."
    },
    {
      "id": "FR02",
      "tool": "fraction",
      "inputs": {
        "numerator": "6",
        "denominator": "8"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "6",
          "denominator": "8"
        },
        "fraction": {
          "numerator": "3",
          "denominator": "4"
        },
        "percent": {
          "numerator": "75",
          "denominator": "1"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "0.75",
            "approximate": false
          },
          "percentNumber": {
            "text": "75",
            "approximate": false
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Entered numerator and denominator remain distinct from their reduced result.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: gcd(6,8)=2, so6/8 reduces to3/4; exact percentage75/1%."
    },
    {
      "id": "FR03",
      "tool": "fraction",
      "inputs": {
        "numerator": "1",
        "denominator": "3"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "1",
          "denominator": "3"
        },
        "fraction": {
          "numerator": "1",
          "denominator": "3"
        },
        "percent": {
          "numerator": "100",
          "denominator": "3"
        },
        "expansion": "repeating",
        "display": {
          "decimal": {
            "text": "0.3333",
            "approximate": true
          },
          "percentNumber": {
            "text": "33.33",
            "approximate": true
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "A repeating exact fraction is not equal to either displayed rounded decimal or percentage number.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 1/3 repeats in base10; four-place display3333/10000; percentage100/3% displays33.33%."
    },
    {
      "id": "FR04",
      "tool": "fraction",
      "inputs": {
        "numerator": "1",
        "denominator": "32"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "1",
          "denominator": "32"
        },
        "fraction": {
          "numerator": "1",
          "denominator": "32"
        },
        "percent": {
          "numerator": "25",
          "denominator": "8"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "0.0313",
            "approximate": true
          },
          "percentNumber": {
            "text": "3.13",
            "approximate": true
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Terminating does not imply exact at displayed precision; this exact half-way case rounds upward.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 1/32=0.03125; four-place half-up gives0.0313; exact percentage25/8%=3.125% gives3.13%."
    },
    {
      "id": "FR05",
      "tool": "fraction",
      "inputs": {
        "numerator": "1",
        "denominator": "999"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "1",
          "denominator": "999"
        },
        "fraction": {
          "numerator": "1",
          "denominator": "999"
        },
        "percent": {
          "numerator": "100",
          "denominator": "999"
        },
        "expansion": "repeating",
        "display": {
          "decimal": {
            "text": "0.001",
            "approximate": true
          },
          "percentNumber": {
            "text": "0.1",
            "approximate": true
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "These display texts also occur forFR06, but this original fraction is different, repeating and approximate.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 1/999 repeats; four-place display0.001; exact percentage100/999% gives0.1%."
    },
    {
      "id": "FR06",
      "tool": "fraction",
      "inputs": {
        "numerator": "1",
        "denominator": "1000"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "1",
          "denominator": "1000"
        },
        "fraction": {
          "numerator": "1",
          "denominator": "1000"
        },
        "percent": {
          "numerator": "1",
          "denominator": "10"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "0.001",
            "approximate": false
          },
          "percentNumber": {
            "text": "0.1",
            "approximate": false
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Same display text asFR05 does not uniquely identify an original fraction; this case is finite and exact at display precision.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 1/1000=0.001 exactly; exact percentage1/10%=0.1%."
    },
    {
      "id": "FR07",
      "tool": "fraction",
      "inputs": {
        "numerator": "0",
        "denominator": "999"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "0",
          "denominator": "999"
        },
        "fraction": {
          "numerator": "0",
          "denominator": "1"
        },
        "percent": {
          "numerator": "0",
          "denominator": "1"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "0",
            "approximate": false
          },
          "percentNumber": {
            "text": "0",
            "approximate": false
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Zero numerator is a valid exact zero, unlike a zero denominator.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 0/999 reduces to0/1; exact percentage0/1%."
    },
    {
      "id": "FR08",
      "tool": "fraction",
      "inputs": {
        "numerator": "2000",
        "denominator": "1000"
      },
      "expected": {
        "status": "valid",
        "entered": {
          "numerator": "2000",
          "denominator": "1000"
        },
        "fraction": {
          "numerator": "2",
          "denominator": "1"
        },
        "percent": {
          "numerator": "200",
          "denominator": "1"
        },
        "expansion": "terminating",
        "display": {
          "decimal": {
            "text": "2",
            "approximate": false
          },
          "percentNumber": {
            "text": "200",
            "approximate": false
          }
        }
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "This is the inclusive two-whole ceiling of the current bounded slice, not a general bound on fractions.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 2000/1000 reduces to2/1; exact percentage200/1%."
    },
    {
      "id": "FR09",
      "tool": "fraction",
      "inputs": {
        "numerator": "1",
        "denominator": "0"
      },
      "expected": {
        "status": "error",
        "field": "denominator",
        "reason": "zero"
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Zero denominator is rejected, not represented as zero, Infinity or a rounded finite result.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: The denominator must be positive; denominator0 has the dedicatedzero error."
    },
    {
      "id": "FR10",
      "tool": "fraction",
      "inputs": {
        "numerator": "3",
        "denominator": "1"
      },
      "expected": {
        "status": "error",
        "field": "numerator",
        "reason": "range"
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "Both integers separately fit their fields, but the fraction exceeds the two-whole ratio ceiling.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: 3>2*1, so the ratio-bound error belongs to numerator."
    },
    {
      "id": "FR11",
      "tool": "fraction",
      "inputs": {
        "numerator": "-1",
        "denominator": "4"
      },
      "expected": {
        "status": "error",
        "field": "numerator",
        "reason": "number"
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "A negative signed numerator is unsupported by the unsigned-entry grammar.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: The minus sign violates the digits-only grammar before fraction arithmetic."
    },
    {
      "id": "FR12",
      "tool": "fraction",
      "inputs": {
        "numerator": "00000000000000000",
        "denominator": "4"
      },
      "expected": {
        "status": "error",
        "field": "numerator",
        "reason": "number"
      },
      "formula": "reducedFraction = numerator / denominator; exactPercent = reducedFraction * 100",
      "assumptions": [
        "Inputs are raw unsigned-integer strings, not decimal or percentage inputs.",
        "Accepted numerator0-2000, denominator1-1000 and numerator<=2*denominator; both raw fields are capped at16UTF-16 code units before normalization or coercion.",
        "The reduced fraction and percentage-valued rational are exact. Decimal and percent-number displays are separately half-up at four and two fractional places. A finite expansion may still need rounding."
      ],
      "limitation": "The seventeen-character raw numerator is rejected even though its numerical value would be zero.",
      "provenance": "Independent synthetic derivation using exact rational arithmetic, not a helper observation: Count the literal raw zeros:17 exceeds16 before trimming, normalization, locale work or numeric coercion."
    }
  ]
}
