{
  "capability_id": "math.ratio",
  "tool_id": "ratio",
  "engine": "ratio",
  "calculation_version": "1.0.3",
  "generated_at": "2026-10-28T03:01:57.865Z",
  "engine_build": "2026-10-21",
  "test_count": 26,
  "passed": 26,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 11,
      "total": 11
    },
    "boundary": {
      "passed": 7,
      "total": 7
    },
    "property": {
      "passed": 8,
      "total": 8
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/math/ratio",
  "api": "https://www.calculatorx.com/api/v1/calc/ratio",
  "schema_input": "https://www.calculatorx.com/schemas/math.ratio.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.ratio.output.json",
  "assumptions": [
    "Finite rationals: integers, terminating decimals, or simple fractions a/b.",
    "Proportion denominators in A/B or C/D must be nonzero when used.",
    "Simplify / proportion / compare allow negative terms. Split does not."
  ],
  "limitations": [
    "Integers, terminating decimals, and simple a/b fractions only (no mixed numbers or scientific notation)",
    "Simplify / proportion / compare allow negative terms",
    "All-zero simplify → ALL_ZERO",
    "Proportion needs exactly one blank among A,B,C,D → PROPORTION_ONE_BLANK",
    "Expert review pending — L1 engine-tested / source-checked",
    "Each token≤128 characters;48 digits per integer/decimal or fraction component. Binary64 JSON numbers may already round; unsafe integer numbers rejected; exact strings recommended.",
    "Aliases must agree; unknown and nonempty inactive fields rejected.",
    "Proportion requires a unique solution and nonzero B,D including solved denominators.",
    "Split terms and total must be nonnegative, sum of terms positive.",
    "Bars approximate; tiny percentages may be invisible, exact text retained."
  ],
  "boundary_conditions": [
    "Cannot simplify an all-zero ratio → ALL_ZERO",
    "Proportion needs exactly one blank among A,B,C,D → PROPORTION_ONE_BLANK",
    "Split requires every ratio term ≥ 0 → SPLIT_NEGATIVE_TERM",
    "Split requires Σ terms > 0 → SPLIT_ZERO_SUM",
    "Scale divide-by-zero → DIVISION_BY_ZERO"
  ],
  "sources": [
    {
      "title": "Encyclopedia of Mathematics — Greatest common divisor",
      "section": "Pairwise Euclidean GCF used after clearing denominators",
      "url": "https://encyclopediaofmath.org/wiki/Greatest_common_divisor",
      "supports": "Computation of the GCF of the integerized ratio terms after clearing denominators; multiple-term GCF is obtained iteratively (GCF(a,b,c)=GCF(GCF(a,b),c))",
      "kind": "reference"
    },
    {
      "title": "CalculatorX split convention",
      "section": "Nonnegative parts only",
      "supports": "Split requires every term ≥ 0 and Σ terms > 0, so shares are nonnegative allocations of a total",
      "kind": "definition"
    },
    {
      "title": "Margaret Stevens — The Maths Workbook (University of Oxford)",
      "section": "Chapter 1, §1: Algebraic Expressions and Fractions; §3: Equations",
      "url": "https://www.some.ox.ac.uk/wp-content/uploads/2024/08/Maths-Workbook.pdf",
      "supports": "Algebraic addition/subtraction, multiplication/division, distributive rules, equivalent fractions, common denominators and reciprocals. Ratios are interpreted as quotients. Equality of ratios with nonzero denominators permits cross multiplication, and solving a proportion uses the chapter’s equation transformations. A zero divisor is excluded; integer quotient/remainder uses the separately cited Euclidean-division reference. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.",
      "kind": "reference",
      "publisher": "University of Oxford, Department of Economics; hosted by Somerville College"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:b5c8199f4079f3b276a5da86a61b6f2a2339f5bd95d8868bb0627a885ea69bf2",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 26,
      "total": 26,
      "golden": 11,
      "boundary": 7,
      "property": 8
    },
    "contract_checks": {
      "passed": 10,
      "total": 10
    }
  },
  "evidence_core_generated_at": "2026-10-21T04:48:56.569Z",
  "rendered_at": "2026-10-28T03:01:57.865Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.3",
    "artifacts": {
      "engine": "1.0.3",
      "page": "1.0.3",
      "capability": "1.0.3",
      "evidence": "1.0.3",
      "input_schema": "1.0.3",
      "output_schema": "1.0.3",
      "mcp_contract": "1.0.3"
    },
    "digests": {
      "input_schema_sha256": "0560f35cdf32bb784bf21fadc9c84c7f47dcdd2ea831eeaacf60a55e90210d44",
      "output_schema_sha256": "fd4566914572b7c5cd66567757cd4cd599ac0b8652f79ecdaba4de553d8ff975",
      "evidence_sha256": "8d312e56a26b7219889d5ddb8351de9c22f87aa4eff32dc32f3dca401951bf7a",
      "evidence_core_sha256": "8d312e56a26b7219889d5ddb8351de9c22f87aa4eff32dc32f3dca401951bf7a",
      "capability_sha256": "f003ae9b4a38c6d27e9c6ae2397cfe97f246695173b62192c488456cd197d004",
      "engine_sha256": "c6ebd8436f08b413e1ac6317b2d48550f2e6639a90dff254244e3aa562158b8d",
      "mcp_contract_sha256": "5898d9426fe62990b5c5eed0b7ac18076acb83b29b083b5b4dd52f28efe79ae5"
    },
    "contract_checks": {
      "total": 10,
      "passed": 10,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.3"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "explanation-formula-n-term",
          "status": "pass",
          "detail": "r₁:⋯:rₙ → (r₁′÷g):⋯:(rₙ′÷g), rᵢ′=L·rᵢ, L=LCM(dᵢ), g=GCF(|rᵢ′|)"
        },
        {
          "id": "explanation-steps-match-result",
          "status": "pass"
        },
        {
          "id": "explanation-inputs-summary",
          "status": "pass"
        },
        {
          "id": "explanation-calculation-version",
          "status": "pass",
          "detail": "1.0.3"
        },
        {
          "id": "explanation-arity",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
