{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "division",
    "version": "1.0.5",
    "title": "Division Calculator",
    "formula_family": "division",
    "capability_id": "math.divide",
    "verification_revision": "2026-09-08.exact-contract"
  },
  "profile": "core",
  "status": "VERIFIED",
  "runner": {
    "name": "cvp-runner",
    "version": "1.0.0"
  },
  "environment": {
    "runtime": "node",
    "runtime_version": "20.19.2",
    "numeric_model": "IEEE-754 binary64",
    "os": "darwin"
  },
  "suite": {
    "id": "division",
    "version": "1.0.5",
    "uri": "https://www.calculatorx.com/evidence/math.divide/1.0.5.json",
    "verification_revision": "2026-09-08.exact-contract"
  },
  "obligation_set": [
    "CVP-PROV-01",
    "CVP-MODEL-01",
    "CVP-SCOPE-01",
    "CVP-UNIT-01",
    "CVP-REF-01",
    "CVP-GOLD-01",
    "CVP-BND-01",
    "CVP-INV-01",
    "CVP-NUM-01",
    "CVP-COV-01",
    "CVP-CONTRACT-01",
    "CVP-DEP-01",
    "CVP-ART-01",
    "CVP-PROD-01",
    "CVP-PROP-01",
    "CVP-META-01",
    "CVP-ROUND-01",
    "CVP-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "ECMAScript Language Specification",
        "kind": "standard",
        "reference": "Number.prototype.toFixed ( fractionDigits )",
        "url": "https://tc39.es/ecma262/#sec-number.prototype.tofixed"
      },
      {
        "label": "ECMAScript Language Specification",
        "kind": "standard",
        "reference": "Number type (IEEE-754 binary64)",
        "url": "https://tc39.es/ecma262/#sec-ecmascript-language-types-number-type"
      },
      {
        "label": "IEEE Std 754-2019",
        "kind": "standard",
        "reference": "IEEE Standard for Floating-Point Arithmetic",
        "url": "https://standards.ieee.org/ieee/754/6210/"
      },
      {
        "label": "Division theorem (Euclidean division)",
        "kind": "other",
        "reference": "For integers a and b > 0 there exist unique q, r with a = bq + r and 0 ≤ r < b",
        "url": "https://proofwiki.org/wiki/Division_Theorem"
      }
    ]
  },
  "controls": {
    "CVP-PROV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Sources present on evidence"
    },
    "CVP-MODEL-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "a ÷ b quotient; long mode Euclidean q,r with a = bq + r, 0 ≤ r < b"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "quotient or long integer division"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "dimensionless"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O3 mpmath a/b and Python int divmod + O2 live identities (O2 shares V8 binary64 with the IUT)"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "25/25 legacy golden; 10/10 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "9/9 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "9 invalid-domain cases"
    },
    "CVP-NUM-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "≤2 ULP vs O3 applies to the published tabulated quotient vectors (1/3, 100/7, 1.005/1, 1/1e-300, (2^53−1)/7). Long-division vectors are exact integer q,r (Python int divmod). This is not a whole-domain guarantee. Legacy Evidence `tol` is not this policy."
    },
    "CVP-COV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Declared partitions: quotient-normal, quotient-rounding, quotient-boundary, long-normal, long-large-integer, long-boundary, invalid-domain. Counts alone are not the claim."
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "1/1 contract checks"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine divide; Node binary64"
    },
    "CVP-ART-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "release_integrity.status=verified · evidence_digest=CVP verification fingerprint v2 (canonical inputs, expected/actual/status, policy, versions; independent of generated_at) · evidence_bundle_sha256=legacy Evidence JSON bytes · production_sha256=bound production attestation report"
    },
    "CVP-PROD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "CURRENT · site report pass · local checks pass · attestation_id=00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c · CURRENT · Public schema 1.0.5 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.0.5 · report output-const=pass · evidence-sha256=pass · semantic-contract=pass · capability-html-public-origin-agree=pass · cvp-manifest-public-origin-agree=pass · cvp-reproduce-manifest-agree=pass · calculator-html-cvp-projection=pass · evidence-html-cvp-projection=pass · attested_evidence_sha256=9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20"
    },
    "CVP-DIM-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "Unitless core calculator — no physical dimension algebra"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "8/8 property"
    },
    "CVP-META-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "2/2 metamorphic"
    },
    "CVP-ROUND-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "2/2 round-trips"
    },
    "CVP-XCAL-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No related calculator in the same formula family / no related-identity peers declared — control not in obligation set"
    },
    "CVP-IFACE-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
    },
    "CVP-ORACLE-01": {
      "result": "PASS",
      "applicability": "higher_assurance",
      "notes": "O3 9/9 tabulated vectors vs IUT · ≤2 ULP vs O3 applies to the published tabulated quotient vectors (1/3, 100/7, 1.005/1, 1/1e-300, (2^53−1)/7). Long-division vectors are exact integer q,r (Python int divmod). This is not a whole-domain guarantee."
    },
    "CVP-EXP-01": {
      "result": "SKIP",
      "applicability": "optional",
      "notes": "expert_reviewed=false"
    }
  },
  "interfaces": {
    "compared": [
      "ui-ssr",
      "rest",
      "mcp"
    ],
    "result": "PASS",
    "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
  },
  "artifacts": {
    "evidence_bundle_sha256": "e6537e5e860cd9fcd1e2218debd473c3e7ad21ec9e1e63174b147c9c00765714",
    "evidence_digest": "e5997fd9b998e67a19b72a2ce8fd476b13bc2a7ab9245887e75079f4978ce1d2",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "math.divide:output-const",
        "status": "pass",
        "detail": "output const 1.0.5 vs capability 1.0.5",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:evidence-sha256",
        "status": "pass",
        "detail": "63f0d3cfbd6d",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:semantic-contract",
        "status": "pass",
        "detail": "34/34",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.0.5 vs origin 1.0.5",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "math.divide/1.0.5/2026-09-08.exact-contract/core/e5997fd9b998",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z",
        "projection_compared": false,
        "observed_live_projection_at_attestation": "VERIFIED"
      },
      {
        "id": "math.divide:cvp-reproduce-manifest-agree",
        "status": "pass",
        "detail": "2026-09-08.exact-contract · efdad939a92a",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:calculator-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.divide:evidence-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      }
    ]
  },
  "dependencies": [
    {
      "name": "divide-engine",
      "version": "1.0.5"
    },
    {
      "name": "divide-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "divide-o3-mpmath-table",
      "version": "math-mpmath-o3"
    },
    {
      "name": "node",
      "version": "20.19.2"
    }
  ],
  "attestation": {
    "status": "CURRENT",
    "href": "/.well-known/calculatorx-production-attestation.json",
    "id": "00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c",
    "attested_at": "2026-09-10T02:52:51.379Z"
  },
  "domain_review": {
    "status": "ABSENT",
    "spec_version": "1.0.5"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:50.164Z",
    "generated_at": "2026-09-10T03:41:50.164Z"
  },
  "tests": {
    "golden": {
      "passed": 10,
      "total": 10,
      "failed": 0
    },
    "boundary": {
      "passed": 9,
      "total": 9,
      "failed": 0
    },
    "invalid": {
      "passed": 9,
      "total": 9,
      "failed": 0
    },
    "property": {
      "passed": 8,
      "total": 8,
      "failed": 0
    },
    "round_trip": {
      "passed": 2,
      "total": 2,
      "failed": 0
    },
    "metamorphic": {
      "passed": 2,
      "total": 2,
      "failed": 0
    },
    "contract": {
      "passed": 1,
      "total": 1,
      "failed": 0
    },
    "cross_interface": {
      "passed": 2,
      "total": 2,
      "failed": 0
    },
    "o3": {
      "passed": 9,
      "total": 9,
      "failed": 0,
      "claim_scope": "≤2 ULP vs O3 applies to the published tabulated quotient vectors (1/3, 100/7, 1.005/1, 1/1e-300, (2^53−1)/7). Long-division vectors are exact integer q,r (Python int divmod). This is not a whole-domain guarantee.",
      "max_error_ulp": 0,
      "table_sha256": "efdad939a92a67df1f3995db36c52bb87f428a59fc73568f789c02540f4372ee"
    }
  },
  "numerical": {
    "representation": "IEEE-754 binary64 a/b (quotient); exact BigInt Euclidean q,r (long)",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Quotient ieee_value ≤2 ULP vs O3/O2. Long quotient/remainder are exact integer identity (0 ULP). Declared a priori.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "claim_scope": "≤2 ULP vs O3 applies to the published tabulated quotient vectors (1/3, 100/7, 1.005/1, 1/1e-300, (2^53−1)/7). Long-division vectors are exact integer q,r (Python int divmod). This is not a whole-domain guarantee."
  },
  "coverage": {
    "partitions": [
      {
        "id": "quotient-normal",
        "description": "Quotient mode, ordinary finite values",
        "exercised": true,
        "case_count": 15
      },
      {
        "id": "quotient-rounding",
        "description": "Quotient display rounding / repeating binary64",
        "exercised": true,
        "case_count": 14
      },
      {
        "id": "quotient-boundary",
        "description": "Quotient range edges: zero dividend, max safe integer, tiny divisor, unsafe integer tokens",
        "exercised": true,
        "case_count": 8
      },
      {
        "id": "long-normal",
        "description": "Long division ordinary integers, zero and non-zero remainder",
        "exercised": true,
        "case_count": 9
      },
      {
        "id": "long-large-integer",
        "description": "Long division integers larger than 2^53−1",
        "exercised": true,
        "case_count": 7
      },
      {
        "id": "long-boundary",
        "description": "Long division 48-digit product bound and INTEGER_TOO_LONG",
        "exercised": true,
        "case_count": 5
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs (division by zero, domain, range)",
        "exercised": true,
        "case_count": 9
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Division a÷b and Euclidean long division"
      },
      {
        "class": "O3",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Precomputed mpmath 1.4.1 divide (80 dps, python backend, round-to-nearest-binary64) — not Node Math.*",
        "engine": {
          "name": "divide-mpmath-o3",
          "library": "mpmath 1.4.1",
          "mpmath_dps": 80,
          "precision_bits": 265,
          "backend": "python",
          "rounding": "round-to-nearest-binary64",
          "independent_of_iut": true,
          "generator_version": "1.0.0",
          "generator_sha256": "3453ec60bd03738a1f1f3723baed7e617ff49466452efab1844fe68b8f654cea",
          "table_sha256": "efdad939a92a67df1f3995db36c52bb87f428a59fc73568f789c02540f4372ee"
        }
      },
      {
        "class": "O3",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O3 table vs IUT value; ≤2 ULP on tabulated vectors only, not the whole domain. Distinct from legacy Evidence case-level tol.",
        "engine": {
          "name": "divide-mpmath-o3",
          "library": "mpmath 1.4.1",
          "mpmath_dps": 80,
          "precision_bits": 265,
          "backend": "python",
          "rounding": "round-to-nearest-binary64",
          "independent_of_iut": true,
          "generator_version": "1.0.0",
          "generator_sha256": "3453ec60bd03738a1f1f3723baed7e617ff49466452efab1844fe68b8f654cea",
          "table_sha256": "efdad939a92a67df1f3995db36c52bb87f428a59fc73568f789c02540f4372ee"
        }
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module divide oracle — independent a÷b and BigInt Euclidean long division",
        "engine": {
          "name": "divide-reference",
          "precision_bits": 53,
          "independent_of_iut": true,
          "same_runtime_as_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP quotient comparison and exact long q,r vs IUT",
        "engine": {
          "name": "divide-reference",
          "precision_bits": 53,
          "independent_of_iut": true,
          "same_runtime_as_iut": true
        }
      }
    ]
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/math.divide/1.0.5.json",
    "evidence_page": "https://www.calculatorx.com/evidence/math.divide/1.0.5",
    "calculator": "https://www.calculatorx.com/calc/math/division",
    "schema": "https://www.calculatorx.com/developers/cvp/schema/cvp-evidence-1.0.json",
    "protocol": "https://www.calculatorx.com/developers/cvp/spec/1.0",
    "manifest": "https://www.calculatorx.com/evidence/math.divide/1.0.5.cvp.json",
    "manifest_immutable": "https://www.calculatorx.com/evidence/math.divide/1.0.5/2026-09-08.exact-contract.cvp.json",
    "reproduce": "https://www.calculatorx.com/evidence/math.divide/reproduce"
  },
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
