# A Forge program on embedded-c/hosted-c99

One kernel, compiled to ISO C99 (`src/kernel.c`, the C member) and built on THIS host by CMake with the required
gcc into a static library, beside Forge's C runtime (`runtime/`, vendored into the program), and a generated
harness (`src/harness.c`) linked against it. "Hosted" is the C standard's word for a program with the full C
library under an operating system: nothing here claims a microcontroller, a cross compiler or any target but the
machine that ran the commands. `program.json` names the kernel, the platform specification, the toolchain
requirements, the Python lock (`python.lock`), every vendored file (`build/dependencies.json`) and the three
identities, and carries the evidence vector. What a machine HAS -- each tool's version and installation
fingerprint, under the label `FORGE_MACHINE_LABEL` gives it -- is recorded in each run's evidence, never in the
program's identity.

| command          | dimension    | what a PASS establishes                                        |
|------------------|--------------|----------------------------------------------------------------|
| `make`           | build        | see `program.json` -> `establishes`                            |
| `make run`       | execution    | (the harness, built afresh, runs every recorded input)         |
| `make check`     | differential | (the C member against the exact-real oracle, under its bound)  |
| `make reproduce` | --           | (two rebuilds from the recorded inputs; compare identities)    |

The sentence each command's PASS establishes is in `program.json`, copied from the platform
specification; nothing here restates it. Synthesis, timing and hardware are NOT_APPLICABLE on this platform.

THE HARNESS reads words, never decimals: one call per line, each parameter's binary64 bit pattern as 16 hex digits,
and writes one result bit pattern per call (`eml_harness INPUTS OUTPUTS`). A violated contract prints
`EML contract violated: <msg>` on stderr and abort()s (SIGABRT), in every build: `EML_CONTRACT` is not `assert()`.

THE BOUND each result is judged against is the kernel's float64 accuracy certificate over its declared box
(`build/contract.json`). A kernel whose certificate rests on a libm primitive contract is refused here: the
contracts Forge ships are glibc's documented maxima on x86_64-linux, and this platform names no host.

Builds run with every `CMAKE_*` variable, gcc's search paths (`CPATH`, `LIBRARY_PATH`, ...) and `LD_PRELOAD`
removed, `CC=gcc`, empty `CFLAGS`/`LDFLAGS`, one job at a time. Inside the program, a file it does not record (a
header in `runtime/` would be found ahead of the system's) refuses every command.

What this directory is NOT:

- **Not deployable by virtue of passing.** It was built and run on this host; a passing `make check` says
  nothing about another compiler, another C library or another machine.
- **Not a change to the kernel's status.** The kernel's status in Forge's verification index is shown
  beside this program's evidence and never merged with it.
- **Not a proof.** The differential is evidence about the inputs it ran (recorded in
  `check/inputs.json`), never about all inputs.

This file, the `Makefile` and `CMakeLists.txt` are SCAFFOLD: conventional glue, tested and never proved, and
never counted toward any verified figure.
