{
  "capability_id": "math.factorial",
  "tool_id": "factorial",
  "engine": "factorial",
  "calculation_version": "1.0.4",
  "generated_at": "2026-10-23T01:27:11.446Z",
  "engine_build": "2026-10-20",
  "test_count": 24,
  "passed": 24,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 8,
      "total": 8
    },
    "boundary": {
      "passed": 7,
      "total": 7
    },
    "property": {
      "passed": 9,
      "total": 9
    }
  },
  "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/factorial",
  "api": "https://www.calculatorx.com/api/v1/calc/factorial",
  "schema_input": "https://www.calculatorx.com/schemas/math.factorial.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.factorial.output.json",
  "assumptions": [
    "n is an integer satisfying 0 ≤ n ≤ 5000.",
    "Ordinary (single) factorial only — not multifactorial and not the real Gamma function for non-integers."
  ],
  "limitations": [
    "Ordinary (single) factorial only — not multifactorial and not Γ(n+1) for non-integers",
    "Domain is 0 ≤ n ≤ 5000 (product/resource bound, not a mathematical bound)",
    "Missing n → MISSING_REQUIRED_INPUT",
    "Non-numeric or non-integer n → INVALID_NUMBER",
    "n < 0 → VALUE_MUST_BE_NON_NEGATIVE",
    "n > 5000 → VALUE_ABOVE_MAX",
    "Digits-only strings: trimmed length≤64; matching n/nInput aliases; string scientific notation rejected. JSON numeric finite rounding is permitted; raw nonzero underflow rejected.",
    "Scientific display uses the first12 digits without rounding; exact contains every digit.",
    "Unknown fields → UNKNOWN_INPUT; aliases disagree → INPUT_ALIAS_CONFLICT; excessive text → INPUT_TOO_LARGE"
  ],
  "boundary_conditions": [
    "Missing n → MISSING_REQUIRED_INPUT",
    "Non-numeric n → INVALID_NUMBER",
    "Non-integer n (for example 5.5) → INVALID_NUMBER",
    "n < 0 → VALUE_MUST_BE_NON_NEGATIVE",
    "n > 5000 → VALUE_ABOVE_MAX"
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 5",
      "section": "Gamma Function",
      "url": "https://dlmf.nist.gov/5",
      "supports": "Ordinary factorial of a nonnegative integer; n! = Γ(n+1)",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §5.4",
      "section": "Special values and extrema",
      "url": "https://dlmf.nist.gov/5.4",
      "supports": "n! = Γ(n+1), including 0! = 1. This calculator publishes ordinary factorial only; non-integer Gamma values are out of scope.",
      "kind": "reference",
      "publisher": "National Institute of Standards and Technology"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Domain 0 ≤ n ≤ 5000; exact BigInt n!",
      "supports": "Matches the on-page contract. Permutation count P(n,n)=n! is an interpretation, not a second engine.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:af9f396fcf6579934d52a37116e2049d5dc0d2117adb2b97c8f46b655e744695",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 24,
      "total": 24,
      "golden": 8,
      "boundary": 7,
      "property": 9
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-10-20T10:40:00.133Z",
  "rendered_at": "2026-10-23T01:27:11.446Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.4",
    "artifacts": {
      "engine": "1.0.4",
      "page": "1.0.4",
      "capability": "1.0.4",
      "evidence": "1.0.4",
      "input_schema": "1.0.4",
      "output_schema": "1.0.4",
      "mcp_contract": "1.0.4"
    },
    "digests": {
      "input_schema_sha256": "65b528e8230052d58f33f790dc9d8eed93e982757269a75f1db13264fce18347",
      "output_schema_sha256": "dc7e95b6f3e83892b07fd746ded7cf1981c8091b887c07dfaa9757fe1269ca40",
      "evidence_sha256": "8258d5daec5d009f2e69091540bd012cd99685f90dbcd6658078b512aff715da",
      "evidence_core_sha256": "8258d5daec5d009f2e69091540bd012cd99685f90dbcd6658078b512aff715da",
      "capability_sha256": "93cdddc53d59aa9b39c77cf8afc8b63062daf3278f58a724241f3072354d5f9d",
      "engine_sha256": "a664ae25cd2134de7de43a99352933043215473589aec38c9416508150cb1008",
      "mcp_contract_sha256": "8defa770ea0b34118e3444b698842353896edfffa88b4ef1c34898f3f5378790"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.4"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "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"
  }
}
