{
 "contract_needs": [
  {
   "dimension": "build",
   "why": "every program is built"
  },
  {
   "dimension": "execution",
   "why": "parameter refinements and requires are runtime checks, read where the program executes"
  },
  {
   "dimension": "differential",
   "why": "postconditions are checked on executed outputs, against the exact semantics"
  },
  {
   "dimension": "synthesis",
   "why": "a hardware realization (@target(fpga)) is requested"
  },
  {
   "dimension": "timing",
   "why": "the realization asks for 100 MHz (@target clock_mhz), which only timing evidence shows"
  },
  {
   "dimension": "hardware",
   "why": "the realization names a board (arty_a7), whose behaviour only a bench session on the part shows"
  }
 ],
 "derivation": {
  "applied": true,
  "derived": {
   "file": "build/pid_controller.eml",
   "kernel_digest": "sha256:773304d0bc505b2d7469435f2fb33773d81fd46f8f775b6622d2d71a2faf996f",
   "sha256": "sha256:0cfede08371707c087dcf9328932aba4032ca5e521ecef0d4da4f6698fab70f7"
  },
  "insertion": {
   "function": "pid",
   "line": "29",
   "placement": "one line, immediately before `fn pid` (the kernel's line 29); no other byte of the kernel changes",
   "text": "@target(fpga, board = \"arty_a7\", clock_mhz = 100)\n"
  },
  "original": {
   "file": "kernel/pid_controller.eml",
   "kernel_digest": "sha256:ed7dadd1788e9a1068f1cc12b5217ab4f8289787b97ab4dbd499cd158e171386",
   "sha256": "sha256:4d51cd9248714388324ff0b27d19b5ac015fdee9b0b490595765efdb48e17bda"
  },
  "reason": "The platform's abi.binding requires @target(fpga, ...) on the kernel function, and @target can change implementation selection and therefore numerical behaviour, so the source the members are compiled from is a distinct compilation input with its own digest.",
  "tool": {
   "distributions": [],
   "imports": {
    "files": "27",
    "sources": "sha256:6d28393d8f2d600db4f785c4c24e6406482c49ab811438a7a847cc4320e18538"
   },
   "module": "tools/platforms/derive.py",
   "sha256": "sha256:f3617362fccb152edcb3df7f1a9eb513c7a588ee8a4d27ce8ded1886770f952d"
  }
 },
 "establishes": [
  {
   "command": "build",
   "dimension": "build",
   "make": "make",
   "sentence": "The Verilog member elaborates under the required Verilator with no error (missing pin connections, multiple drivers, out-of-range selects and implicit nets promoted to errors) and is valid synthesis input (the required yosys reads it and resolves its hierarchy to the top unit), and the VHDL member analyses and elaborates under the required GHDL as VHDL-2008; it says nothing about the values either design computes."
  },
  {
   "command": "run",
   "dimension": "execution",
   "make": "make run",
   "sentence": "Each member's testbench ran to completion under its required simulator (Verilog under Verilator, VHDL under GHDL) on every input of the recorded set, produced exactly one valid output per input, and printed no runtime-check violation; it says nothing about whether those outputs are right."
  },
  {
   "command": "check",
   "dimension": "differential",
   "make": "make check",
   "sentence": "On every input of the recorded set (sampled evidence), each member's output lies within that member's contracted bound of the kernel's exact real value, computed from the kernel source by the exact-real oracle (240-bit, under the locked Python), and satisfies every declared postcondition, and every pair of members agrees under its recorded relation (bit-exact on every tested cycle, for two members at one format); it demonstrates agreement under the tested conditions, does not establish universal equivalence between the two HDL implementations, and never raises the kernel's mathematical assurance."
  },
  {
   "command": "synth",
   "dimension": "synthesis",
   "make": "make synth",
   "sentence": "The required yosys maps the Verilog member to Xilinx 7-series primitives (synth_xilinx -family xc7) with no multiple drivers, logic loops or undriven wires, and nothing simulation-only or initial-value-dependent left in the netlist. Yosys synthesis alone is not proof that the design fits the device, routes, or meets timing."
  },
  {
   "command": "timing",
   "dimension": "timing",
   "make": "make timing",
   "sentence": "Vivado 2025.2 placed and ROUTED the Verilog member out of context on the device its own reports name as xc7a100tcsg324-1, with the binding's clock on clk and every input and output constrained against it (a register-boundary budget), check_timing showing no unconstrained endpoint, port or clock, and every constraint met with non-negative worst setup, hold and pulse-width slack; written only from a recorded Vivado run on the bench, it is not the timing of an enclosing bench design and not a programmed part."
  },
  {
   "command": "hardware",
   "dimension": "hardware",
   "make": "make hardware",
   "sentence": "On the bench, Vivado 2025.2 built the program's Verilog member behind the bench wrapper IN CONTEXT on the board's pins, wrote its bitstream and programmed it into the xc7a100t on the board over JTAG, and the part, driven over the board's USB-UART, returned for every input of the recorded set, in order, exactly the word the program's Verilog member computed in simulation; recorded as four separate entries (bitstream, programming, physical_io, timing_closure: the programmed design's own routed timing), each with its own verdict. It is evidence about the inputs run, on this board, at this clock -- never a universal claim, never one label, and written only from a captured bench session."
  },
  {
   "command": "reproduce",
   "dimension": null,
   "make": "make reproduce",
   "sentence": "The manifest's input closure re-derives, every required tool is present at its required version, the interpreter and every distribution are the locked ones, and two rebuilds from the recorded inputs produce byte-identical emitted designs and synthesized netlists matching the recorded ones; INCOMPLETE, not a pass, when a required tool or a locked distribution is not what this machine has."
  }
 ],
 "evidence": {
  "fit": {
   "from": "vivado",
   "verdict": "PASS",
   "why": "Vivado routed 74 LUT, 80 FF, 2 DSP48E1, within the part"
  },
  "history": [],
  "vector": [
   {
    "applicability": "APPLICABLE",
    "command": "make",
    "dimension": "build",
    "establishes": "The Verilog member elaborates under the required Verilator with no error (missing pin connections, multiple drivers, out-of-range selects and implicit nets promoted to errors) and is valid synthesis input (the required yosys reads it and resolves its hierarchy to the top unit), and the VHDL member analyses and elaborates under the required GHDL as VHDL-2008; it says nothing about the values either design computes.",
    "evidence": "sha256:28686d3677c0bda1841a989103f212e278b16a6cd2cf10f9c688b195d040f990",
    "record": "evidence/records/build-05f0d7a9b32a1cca.json",
    "recorded_at": "2026-11-09T22:15:41.128878Z",
    "status": "PASS"
   },
   {
    "applicability": "APPLICABLE",
    "command": "make run",
    "dimension": "execution",
    "establishes": "Each member's testbench ran to completion under its required simulator (Verilog under Verilator, VHDL under GHDL) on every input of the recorded set, produced exactly one valid output per input, and printed no runtime-check violation; it says nothing about whether those outputs are right.",
    "evidence": "sha256:9eb42bdf12665224d1c2d8957bebe147859629c535dc876f5330abe21cd38fee",
    "record": "evidence/records/execution-2fea2521c6ad58e7.json",
    "recorded_at": "2026-11-09T22:15:39.652210Z",
    "status": "PASS"
   },
   {
    "applicability": "APPLICABLE",
    "command": "make check",
    "dimension": "differential",
    "establishes": "On every input of the recorded set (sampled evidence), each member's output lies within that member's contracted bound of the kernel's exact real value, computed from the kernel source by the exact-real oracle (240-bit, under the locked Python), and satisfies every declared postcondition, and every pair of members agrees under its recorded relation (bit-exact on every tested cycle, for two members at one format); it demonstrates agreement under the tested conditions, does not establish universal equivalence between the two HDL implementations, and never raises the kernel's mathematical assurance.",
    "evidence": "sha256:3ba8227b395e10d1c85dcab5f37ba5e8231a912a8916ff3cec0ca443222cadcc",
    "record": "evidence/records/differential-7a6d8dfe7ac3d696.json",
    "recorded_at": "2026-11-09T22:15:40.060864Z",
    "status": "PASS"
   },
   {
    "applicability": "APPLICABLE",
    "command": "make synth",
    "dimension": "synthesis",
    "establishes": "The required yosys maps the Verilog member to Xilinx 7-series primitives (synth_xilinx -family xc7) with no multiple drivers, logic loops or undriven wires, and nothing simulation-only or initial-value-dependent left in the netlist. Yosys synthesis alone is not proof that the design fits the device, routes, or meets timing.",
    "evidence": "sha256:66970412c23a36fd42c6ef8769922848c2dcb78860f340eab84d67c7443e9766",
    "record": "evidence/records/synthesis-6842462cab895946.json",
    "recorded_at": "2026-11-09T22:15:43.346495Z",
    "status": "PASS"
   },
   {
    "applicability": "APPLICABLE",
    "command": "make timing",
    "dimension": "timing",
    "establishes": "Vivado 2025.2 placed and ROUTED the Verilog member out of context on the device its own reports name as xc7a100tcsg324-1, with the binding's clock on clk and every input and output constrained against it (a register-boundary budget), check_timing showing no unconstrained endpoint, port or clock, and every constraint met with non-negative worst setup, hold and pulse-width slack; written only from a recorded Vivado run on the bench, it is not the timing of an enclosing bench design and not a programmed part.",
    "evidence": "sha256:5823e752ca867e99db212fa30cc58706f0b6f4732353cb945132bf417b0fb28b",
    "record": "evidence/records/timing-ceb2c8e50eaabdde.json",
    "recorded_at": "2026-11-10T05:01:56.996789Z",
    "status": "PASS"
   },
   {
    "applicability": "APPLICABLE",
    "command": "make hardware",
    "dimension": "hardware",
    "entries": [
     {
      "name": "bitstream",
      "status": "PASS"
     },
     {
      "name": "programming",
      "status": "PASS"
     },
     {
      "name": "physical_io",
      "status": "PASS"
     },
     {
      "name": "timing_closure",
      "status": "PASS"
     }
    ],
    "establishes": "On the bench, Vivado 2025.2 built the program's Verilog member behind the bench wrapper IN CONTEXT on the board's pins, wrote its bitstream and programmed it into the xc7a100t on the board over JTAG, and the part, driven over the board's USB-UART, returned for every input of the recorded set, in order, exactly the word the program's Verilog member computed in simulation; recorded as four separate entries (bitstream, programming, physical_io, timing_closure: the programmed design's own routed timing), each with its own verdict. It is evidence about the inputs run, on this board, at this clock -- never a universal claim, never one label, and written only from a captured bench session.",
    "evidence": "sha256:3955a4e6bb8c6ef61e9482fd12fe6e7e0850636f71b76d2a31920eea8581510a",
    "record": "evidence/records/hardware-98cc7a184a18f464.json",
    "recorded_at": "2026-11-10T05:05:33.642677Z",
    "status": "PASS"
   }
  ]
 },
 "generated_in": {
  "machine": "unlabelled"
 },
 "identity": {
  "artifact_files": [
   {
    "name": "build/pid_controller.eml",
    "sha256": "sha256:0cfede08371707c087dcf9328932aba4032ca5e521ecef0d4da4f6698fab70f7"
   },
   {
    "name": "rtl/pid_controller.v",
    "sha256": "sha256:d41bb46fa096945a5ff88e3a72b7eace66468e3c4c14b494b385570f203dadf7"
   },
   {
    "name": "rtl/pid_controller.verilog.plan.json",
    "sha256": "sha256:7606576d36e15c23a895ccdcbd418bbdb8ef93d6ab86c408bcccdb17f7610848"
   },
   {
    "name": "rtl/pid_controller.vhd",
    "sha256": "sha256:1aed3f94b95e5448321a2c5908da36de2581ba8db94f33450593203378073c76"
   },
   {
    "name": "rtl/pid_controller.vhdl.plan.json",
    "sha256": "sha256:d676e2464ccea794b43de81f7bfa174c29bac4fb8ae4c8943e1bcb3f4da27889"
   }
  ],
  "artifacts": "sha256:3f4a84f433f788abfce549166ecfb9666be4393a05cac0c8b3efd5f040e3f1e5",
  "closure": {
   "abi_version": "1",
   "build_configuration": {
    "derivation": {
     "annotation": "@target(fpga, board = \"arty_a7\", clock_mhz = 100)",
     "tool": {
      "distributions": [],
      "imports": {
       "files": "27",
       "sources": "sha256:6d28393d8f2d600db4f785c4c24e6406482c49ab811438a7a847cc4320e18538"
      },
      "module": "tools/platforms/derive.py",
      "sha256": "sha256:f3617362fccb152edcb3df7f1a9eb513c7a588ee8a4d27ce8ded1886770f952d"
     }
    },
    "members": [
     "verilog",
     "vhdl"
    ],
    "realization_plan": "auto: chosen afresh in an empty plan cache for every build",
    "scrub_environment": [
     {
      "name": "LC_ALL",
      "value": "C"
     },
     {
      "name": "PYTHONHASHSEED",
      "value": "0"
     },
     {
      "name": "SOURCE_DATE_EPOCH",
      "value": "0"
     },
     {
      "name": "TZ",
      "value": "UTC"
     }
    ]
   },
   "kernel": {
    "file": "kernel/pid_controller.eml",
    "function": "pid",
    "kernel_digest": "sha256:ed7dadd1788e9a1068f1cc12b5217ab4f8289787b97ab4dbd499cd158e171386",
    "sha256": "sha256:4d51cd9248714388324ff0b27d19b5ac015fdee9b0b490595765efdb48e17bda"
   },
   "modules": {
    "clock": {
     "clock_mhz": "100",
     "period_ns": "10.000"
    },
    "files": []
   },
   "platform": {
    "name": "fpga/arty-a7",
    "spec_digest": "sha256:8811bd97bde4095985931469c4ecfb58f188f99ca47b7ee141a44da5a1a00aff"
   },
   "scaffold": [
    {
     "name": "Makefile",
     "sha256": "sha256:037241365e242217c4e2e1e7db11855be3bae7ce51f8a43e9a70bcd2722def30"
    },
    {
     "name": "README.md",
     "sha256": "sha256:7bdea4ef977ad7f87f35baf837345a6358835b636135fdec899479cb6921da67"
    },
    {
     "name": "bench/hardware.tcl",
     "sha256": "sha256:3c7a8ee95c748ea4160fc6e3dea37bc4c2d29a69142b407945dd57182b2dd828"
    },
    {
     "name": "bench/timing.tcl",
     "sha256": "sha256:ce35c30a6eb8a9f41f327d24e7616ff43efaf4e6b4a843ae2480c847185cfe86"
    }
   ],
   "toolchain": {
    "compiler": {
     "distributions": [
      {
       "name": "eml-cost",
       "version": "0.26.0"
      },
      {
       "name": "mpmath",
       "version": "1.3.0"
      },
      {
       "name": "numpy",
       "version": "2.4.4"
      },
      {
       "name": "sympy",
       "version": "1.14.0"
      }
     ],
     "files": "130",
     "forge_version": "0.18.0",
     "sources": "sha256:097d91835a7a6077387c1ca871a5c5f35c85b770c6c9bb5eee8faa3ed1f6df74"
    },
    "python_lock": {
     "digest": "sha256:b15b0a2449b3cbd46f3de114ab482fa284707e04283f59d6fb91ddec50bab24d",
     "interpreter": {
      "implementation": "cpython",
      "version": "3.12.3"
     }
    },
    "requirements": [
     {
      "name": "make",
      "version": "4.3"
     },
     {
      "name": "verilator",
      "version": "5.024"
     },
     {
      "name": "g++",
      "version": "13.3.0"
     },
     {
      "name": "ghdl",
      "version": "4.1.0"
     },
     {
      "name": "yosys",
      "version": "0.40"
     },
     {
      "name": "vivado",
      "version": "2025.2"
     }
    ]
   }
  },
  "program": "sha256:382b2d473e6923b97478955dfe0c7f1018d6e4f323dfb7fa2a60a219f1d38d47"
 },
 "inputs": {
  "count": "2087",
  "definition": "box corners; per parameter (others at the box centre) its ends, one word inside each, the centre and one word either side, and zero; per postcondition `result OP C` and parameter, the two adjacent words where the exact value crosses C; seeded random words over the declared box; recipe v2 adds, per parameter (others at the box centre), zero, the least positive and least negative words and the format's greatest and least words, and the words beside each declared end, each only where the declared box holds it (a Q format has no -0, NaN or infinity); and seeded log-uniform words (a uniform bit length among those the range holds, then a uniform word of that length); then every input kept only where every declared relation admits it (a relation is evaluated by the reference interpreter), and every value left out counted with its reason in `excluded`: a value outside the declared domain is never fed, so no refusal is ever counted as a numerical failure",
  "digest": "sha256:d473261920331f900ef3318600620550c10c91e93edb56a260e13c847ee2cb0f",
  "file": "check/inputs.json",
  "format": "q9.16",
  "recipe": "v2"
 },
 "kernel": {
  "binding_applied": "@target(fpga, board = \"arty_a7\", clock_mhz = 100)",
  "build_kernel_digest": "sha256:773304d0bc505b2d7469435f2fb33773d81fd46f8f775b6622d2d71a2faf996f",
  "build_source": "build/pid_controller.eml",
  "file": "kernel/pid_controller.eml",
  "function": "pid",
  "kernel_digest": "sha256:ed7dadd1788e9a1068f1cc12b5217ab4f8289787b97ab4dbd499cd158e171386",
  "sha256": "sha256:4d51cd9248714388324ff0b27d19b5ac015fdee9b0b490595765efdb48e17bda",
  "status": {
   "index_digest": "sha256:9927e758fc72ea5037f18438d586bc10f4c4de0af415ea17022ff3cb4e184067",
   "lookup_status": "SUPPORTED",
   "note": "the kernel's own status; a program's evidence is shown beside it and never changes it",
   "resolution": "FOUND",
   "source": "evidence/verification_index.json",
   "summary": "PROVED: source_contracts[coq], source_contracts[isabelle], source_contracts[lean]; NOT_ESTABLISHED: 3"
  }
 },
 "lineage": [],
 "members": [
  {
   "contract": {
    "abs_error": "8866461766385669/9223372036854775808",
    "certificate": "9e99c8205eb68db2f07d1349aaedfdae7189639954971b60cc2a97a8f75d6885",
    "source": "the kernel's composed bound from its fixed-point evidence (error_certificate); the realization plan agrees where it records one"
   },
   "design": "rtl/pid_controller.v",
   "emitter": "verilog",
   "format": "q9.16",
   "frac": "16",
   "latency": "3",
   "plan": "rtl/pid_controller.verilog.plan.json",
   "ports": [
    "error",
    "integral",
    "derivative"
   ],
   "role": "synthesized",
   "simulator": "verilator",
   "top": "pid_pipeline",
   "width": "25"
  },
  {
   "contract": {
    "abs_error": "8866461766385669/9223372036854775808",
    "certificate": "9e99c8205eb68db2f07d1349aaedfdae7189639954971b60cc2a97a8f75d6885",
    "source": "the kernel's composed bound from its fixed-point evidence (error_certificate); the realization plan agrees where it records one"
   },
   "design": "rtl/pid_controller.vhd",
   "emitter": "vhdl",
   "format": "q9.16",
   "frac": "16",
   "latency": "3",
   "plan": "rtl/pid_controller.vhdl.plan.json",
   "ports": [
    "error",
    "integral",
    "derivative"
   ],
   "role": "co-simulated",
   "simulator": "ghdl",
   "top": "pid_pipeline",
   "width": "25"
  }
 ],
 "modules": {
  "clock_gate": {
   "checked": [],
   "clock_mhz": "100",
   "clock_source": "the platform's binding",
   "floor_mhz": null,
   "note": "no module in the closure (the owner's ruling of 2026-10-24: fix the module, never the constraint)",
   "part": "xc7a100tcsg324-1",
   "period_ns": "10.000",
   "requested_mhz": "100",
   "rule": "every module's slack at the clock at least +1.000 ns, from the critical delay its row measured (module_timing.slack_ns; FMAX_RULE)",
   "speed": "-1",
   "vivado": "2025.2"
  },
  "composed_bound": [
   {
    "abs_error": "8866461766385669/9223372036854775808",
    "abs_error_float": "0.0009613037109375005",
    "certificate": "9e99c8205eb68db2f07d1349aaedfdae7189639954971b60cc2a97a8f75d6885",
    "member": "verilog",
    "status": "VERIFIED",
    "why": "the reference conformance's bound is the evidence certificate's composed abs_error, exactly"
   },
   {
    "abs_error": "8866461766385669/9223372036854775808",
    "abs_error_float": "0.0009613037109375005",
    "certificate": "9e99c8205eb68db2f07d1349aaedfdae7189639954971b60cc2a97a8f75d6885",
    "member": "vhdl",
    "status": "VERIFIED",
    "why": "the reference conformance's bound is the evidence certificate's composed abs_error, exactly"
   }
  ],
  "designs": [
   {
    "language": "verilog-2005",
    "name": "rtl/pid_controller.v"
   },
   {
    "language": "vhdl-2008",
    "name": "rtl/pid_controller.vhd"
   }
  ],
  "file": "build/modules.json",
  "files": [],
  "fit": {
   "capacity": {
    "bram36": "135",
    "dsp48e1": "240",
    "ff": "126800",
    "lut": "63400"
   },
   "margin": {
    "dsp48e1": {
     "band": "margin",
     "excluded": "2",
     "margin": "1",
     "record": "module-timing-cf93654fc057cb09.json",
     "rows": "12",
     "worst": "1"
    },
    "ff": {
     "band": "margin",
     "excluded": "2",
     "margin": "1",
     "record": "module-timing-95e2e11598c43f19.json",
     "rows": "12",
     "worst": "1168/1765"
    },
    "lut": {
     "band": "margin",
     "excluded": "2",
     "margin": "1",
     "record": "module-timing-b669b3daafc9aa73.json",
     "rows": "12",
     "worst": "7353/8183"
    }
   },
   "parts": [
    {
     "dsp48e1": "2",
     "ff": "353",
     "format": null,
     "implementation": "(the kernel's own datapath)",
     "lut": "200"
    }
   ],
   "price": {
    "dsp48e1": "2",
    "ff": "353",
    "lut": "200"
   },
   "rule": "fit on structure (step 4 of the owner's brief of 2026-11-04): each library instance at its declared construction, the kernel's own datapath read off its elaborated netlist, against the part; NOT_ESTABLISHED only in the caution band (the owner's ruling of 2026-11-07: compliant calibration rows, the margin floored at 1, 10% of capacity below three rows) or where a part has no price",
   "verdict": "PASS",
   "vivado": {
    "none": "no bench run of this program yet: its timing record carries Vivado's utilization"
   },
   "why": "fits on structure: 2 of 240 DSP48E1, 200 of 63,400 LUT, 353 of 126,800 FF",
   "yosys": {
    "bram36": "0",
    "confirms": true,
    "dsp48e1": "2",
    "ff": "127",
    "lut": "118",
    "recipe": "the platform's synth step (synth_xilinx -family xc7, the whole Verilog member)"
   }
  },
  "fit_gate": {
   "capacity": {
    "bram36": "135",
    "dsp48e1": "240",
    "ff": "126800",
    "lut": "63400"
   },
   "counted": [],
   "rule": "the module closure's DECLARED prices (hardware/pricing, no tool) against the part; the kernel's own datapath is in `fit`",
   "used": {
    "dsp48e1": "0",
    "ff": "0",
    "lut": "0"
   }
  },
  "instances": [],
  "note": "the hardware program's TRUSTED BASE: every library module its designs instantiate, by sha256, language and source commit, and each instance the kernel makes linked to the measurement or certificate its bound rests on at this format, its certified domain and the kernel's argument there (the owner's ruling of 2026-10-24)",
  "trusted_base": []
 },
 "platform": {
  "display_name": "Arty A7-100T",
  "name": "fpga/arty-a7",
  "spec": "platform.json",
  "spec_digest": "sha256:8811bd97bde4095985931469c4ecfb58f188f99ca47b7ee141a44da5a1a00aff",
  "tier": "product"
 },
 "program": "pid_controller",
 "python_lock": {
  "digest": "sha256:b15b0a2449b3cbd46f3de114ab482fa284707e04283f59d6fb91ddec50bab24d",
  "distributions": "4",
  "file": "python.lock",
  "interpreter": {
   "implementation": "cpython",
   "version": "3.12.3"
  }
 },
 "reproduction": {
  "record": "evidence/records/reproduction-0fb989ff51d08c97.json",
  "recorded_at": "2026-11-09T22:16:06.040880Z",
  "status": "REPRODUCED"
 },
 "schema": "forge.program/v2"
}
