{
  "capability_id": "math.factorial",
  "tool_id": "factorial",
  "engine": "factorial",
  "calculation_version": "1.0.2",
  "generated_at": "2026-10-20T09:28:01.654Z",
  "engine_build": "2026-10-14",
  "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"
  ],
  "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:316d01876698831ff0c9b1d2d351d3c8c971e92e92f1898ee98f855297b07420",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 24,
      "total": 24,
      "golden": 8,
      "boundary": 7,
      "property": 9
    },
    "contract_checks": {
      "passed": 5,
      "total": 5
    }
  },
  "evidence_core_generated_at": "2026-10-14T02:50:33.742Z",
  "rendered_at": "2026-10-20T09:28:01.654Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.2",
    "artifacts": {
      "engine": "1.0.2",
      "page": "1.0.2",
      "capability": "1.0.2",
      "evidence": "1.0.2",
      "input_schema": "1.0.2",
      "output_schema": "1.0.2",
      "mcp_contract": "1.0.2"
    },
    "digests": {
      "input_schema_sha256": "8d6705e6f951df49c2cf9d961827b9ee167172c12789649142077d31552f61dc",
      "output_schema_sha256": "f041a1d2bd0b46c619498de4bd9adda7303f09e8f8fb1b5df8ba1f4695ca7f04",
      "evidence_sha256": "c50108b476ddb1f2ca0b71068f55e8d97d029ebd00e2eb16487bd72a9c1feebf",
      "evidence_core_sha256": "c50108b476ddb1f2ca0b71068f55e8d97d029ebd00e2eb16487bd72a9c1feebf",
      "capability_sha256": "0dba2d29a3c695043be75d95a394631d00c79cd73a109cd97b553e4ac8c82e35",
      "engine_sha256": "6ef38e64f6a7018cce0538e78ba57c8e2a141f11e8779e9e3f91408a668b7b71",
      "mcp_contract_sha256": "747143b6ec130a0cd81b312e1084d1efad2cf538516f0e4f0865e16dad656ff0"
    },
    "contract_checks": {
      "total": 5,
      "passed": 5,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.2"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "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"
  }
}
