{
  "controller": "clamp",
  "name": "Saturating clamp (output bounded to [-1, 1])",
  "kind": "controller",
  "label": "",
  "source": {
    "eml": "examples/clamp_bounded.eml",
    "sha256": "602c87f60a2a9b9b"
  },
  "emitted": [
    {
      "target": "c",
      "category": "software",
      "file": "emit/clamp_bounded.c",
      "lines": 26,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "cpp",
      "category": "software",
      "file": "emit/clamp_bounded.cpp",
      "lines": 31,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "csharp",
      "category": "software",
      "file": "emit/ClampBounded.cs",
      "lines": 37,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "gdscript",
      "category": "software",
      "file": "emit/clamp_bounded.gd",
      "lines": 20,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "go",
      "category": "software",
      "file": "emit/clamp_bounded.go",
      "lines": 23,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "java",
      "category": "software",
      "file": "emit/ClampBounded.java",
      "lines": 28,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "javascript",
      "category": "software",
      "file": "emit/clamp_bounded.mjs",
      "lines": 23,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "kotlin",
      "category": "software",
      "file": "emit/clamp_bounded.kt",
      "lines": 22,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "luau",
      "category": "software",
      "file": "emit/clamp_bounded.luau",
      "lines": 23,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "matlab",
      "category": "software",
      "file": "emit/clamp_bounded.m",
      "lines": 26,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "python",
      "category": "software",
      "file": "emit/clamp_bounded.py",
      "lines": 19,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "rust",
      "category": "software",
      "file": "emit/clamp_bounded.rs",
      "lines": 21,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "swift",
      "category": "software",
      "file": "emit/clamp_bounded.swift",
      "lines": 19,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "wasm",
      "category": "software",
      "file": "emit/clamp_bounded.wasm.ll",
      "lines": 18,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "glsl",
      "category": "gpu shader",
      "file": "emit/clamp_bounded.glsl",
      "lines": 28,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "glsl-es",
      "category": "gpu shader",
      "file": "emit/clamp_bounded.glsles",
      "lines": 30,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "hlsl",
      "category": "gpu shader",
      "file": "emit/clamp_bounded.hlsl",
      "lines": 36,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "metal",
      "category": "gpu shader",
      "file": "emit/clamp_bounded.metal",
      "lines": 36,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "wgsl",
      "category": "gpu shader",
      "file": "emit/clamp_bounded.wgsl",
      "lines": 26,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "llvm",
      "category": "compiler IR",
      "file": "emit/clamp_bounded.ll",
      "lines": 17,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "coq",
      "category": "proof",
      "file": "emit/clamp_bounded.v",
      "lines": 22,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "isabelle",
      "category": "proof",
      "file": "emit/clamp_bounded.thy",
      "lines": 23,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "lean",
      "category": "proof",
      "file": "emit/clamp_bounded.lean",
      "lines": 35,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "aadl",
      "category": "safety-critical",
      "file": "emit/clamp_bounded.aadl",
      "lines": 35,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "ada/spark",
      "category": "safety-critical",
      "file": "emit/clamp_bounded.adb",
      "lines": 20,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "autosar",
      "category": "safety-critical",
      "file": "emit/clamp_bounded.autosar.c",
      "lines": 50,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "ros2",
      "category": "safety-critical",
      "file": "emit/clamp_bounded_pkg",
      "lines": 0,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "solidity",
      "category": "blockchain",
      "file": "emit/clamp_bounded.sol",
      "lines": 31,
      "ok": true,
      "tier": "LOCAL"
    },
    {
      "target": "zkproof",
      "category": "blockchain",
      "file": "emit/clamp_bounded.zk.json",
      "lines": 14,
      "ok": true,
      "tier": "LOCAL"
    }
  ],
  "proof": {
    "theorem": "clamp_in_unit_interval",
    "claim": "clamp_unit(x) is always within [-1, 1] for every input x",
    "trail_file": "proof/clamp_in_unit_interval.axioms.txt",
    "clean": true,
    "forbidden_axioms_found": [],
    "rederived": "2026-07-02T04:37:24Z",
    "source_artifact": "examples/clamp_bounded.eml  ->  eml-compile --target lean   (the artifact the zoo ships; NOT a probe)",
    "reverify": "make verify-proof",
    "tier": "REPLAY (re-derive: TOOLCHAIN \u2014 Lean)"
  },
  "sim": {
    "input": "2.5\u00b7sin(t) (overshoots \u00b11)",
    "samples": 400,
    "trace_csv": "trace.csv",
    "plot_png": "clamp.png",
    "check": {
      "quantity": "max|clamp_unit(x)|",
      "value": 1.0,
      "relation": "\u2264",
      "bound": 1.0,
      "holds": true,
      "context": "clamp band [-1.0, 1.0]"
    },
    "tier": "LOCAL"
  },
  "hardware": {
    "tier": "none",
    "note": "\u2014 (pure clamp primitive; the same saturation backs the PID / aerospace guards that were run on silicon)"
  }
}