Why EML Optimization Lives on the Boundary
The high-dimensional geometry story is not decorative. It is the reason EML tree search becomes strange so quickly.
A complete depth-k EML tree starts with 2^k terminal coordinates. Before the
optimizer has even evaluated the first internal node, it is already moving
through a high-dimensional cube. In that geometry, the center becomes a tiny
event and the boundary dominates.
The classical warning sign is:
V(unit_ball_d) / V([-1,1]^d) -> 0
The Monogate high-D packets show the same pressure in EML tree space:
terminal dimension -> boundary concentration -> log-domain cliffs -> exp overflow -> saturation
Evidence Surface
The current evidence suite emits:
- Course 006 optimization-boundary simulator packets
- Forge boundary-optimizer benchmark packets
- high-dimensional corner-concentration packets
- Forge attractor trace packets
- Forge heuristic frontier packets
- useful-volume census packets
- EML IR evidence packets
- MachLib theorem-target stubs
The packets are intentionally conservative. They are sampled evidence, not a phantom-attractor proof, not a hardware claim, and not a formal verification claim.
What Changed
Forge now has a log-domain optimizer branch in the real optimizer pipeline. It is opt-in and analysis-only:
optimize_module(module, log_domain=True, optimizer_trace_path="trace.json")
The branch identifies functions whose expression shape is likely to benefit from positive, exp-mapped search coordinates. It exports an audit trace instead of rewriting user semantics. That is deliberate: log-domain search changes optimizer coordinates, not the user’s mathematical function signature.
The first stdlib/examples benchmark currently finds 9 candidate functions across 82 analyzed functions. The candidates are concentrated in high-drift examples, softplus/mish, logarithmic base conversion, and Box-Muller transforms.
There is now also a Course 006 simulator contract:
dimension/depth input
-> EML tree-space sampler
-> boundary classifier
-> guard/log-domain mode
-> replay packet
The public electronics lab treats the Trainer Board as a tactile control surface for this experiment: the potentiometer selects dimension, a mode switch selects raw/guarded/log-domain candidate behavior, LEDs/OLED-style readouts show finite survival and guard pressure, and the dashboard exports an evidence packet. It remains simulated courseware until a separate hardware runbook and capture packet exist.
Forge backs the same contract with
tools/boundary_optimizer_benchmark.py. That benchmark runs the same dimensions,
modes, seeds, and packet fields as the simulator, so the UI is no longer just an
illustration. It is a replay surface for a reproducible research packet.
The next step was to stop calling every failure a generic boundary hit. Forge and the simulator now share a boundary-event taxonomy:
| Event | Meaning | Obligation direction |
|---|---|---|
corner_concentration | sample lives near a cube face/corner | boundary-dominance counting |
domain_wall | evaluation crosses a declared input domain | domain preservation |
overflow_wall | evaluation pressure predicts non-finite behavior | bounded evaluation |
saturation_shelf | finite output collapses onto a clamp plateau | clamp invariant |
phantom_attractor | suspicious finite interior trap candidate | precision sensitivity |
guard_rescue | guarded mode survives a raw-mode failure | output safety |
log_domain_rescue | log-domain candidate survives a raw-mode failure | positive-coordinate preservation |
Every Course 006 trace preview frame now carries event_class, and every run
packet carries event_counts. That makes the simulator timeline, Forge
benchmark table, and MachLib obligation map talk about the same object.
The new layer is the transition graph. Instead of only counting event classes, packets now count flows:
from_event -> to_event -> count
They also export transition_entropy and dominant_transition. This is the
first hint of a boundary dynamics substrate: healthy guarded runs should not
only have different event counts; they should have different transition weather.
The research question becomes whether successful EML optimization is a process
of moving unsafe boundary events into proof-carrying rescue events.
Forge now names those moves as rescue operators:
| Operator | Target transition | Obligation |
|---|---|---|
log_domain_lift | domain_wall -> log_domain_rescue | positive-coordinate preservation |
guard_clamp | overflow_wall -> guard_rescue | output safety |
precision_escape | phantom_attractor -> interior_sample | precision sensitivity |
saturation_deshelf | saturation_shelf -> corner_concentration | clamp invariant |
The paired intervention benchmark runs a raw baseline and an intervened run with the same dimension, depth, sample count, and seed. It compares survival, bad-event count, rescued-event count, transition entropy, and dominant flow. This is still conservative: simulated, analysis-only, and not an optimizer release claim. But it changes the research object from “what did the optimizer hit?” to “can Forge steer boundary dynamics?”
Forge now has the first small boundary calculus for those traces. A transition
is an observed A -> B event move. Two transitions compose only when the middle
event matches:
(A -> B) ; (B -> C) = A -> C
That lets a replay packet talk about an actual path through event space, not
just a bag of failures. The first normal form is rescue-normal: a path ending in
interior_sample, guard_rescue, or log_domain_rescue. That is not a global
optimality claim. It is a claim that the observed boundary path ended in a class
with a replay/proof direction.
There is also a new useful-volume census. It samples depth and dimension grids and asks a blunt question: how much sampled EML tree space is finite, non-saturated, and rescue-normal? The report exports useful, finite, invalid, saturated, boundary, and center ratios by depth/dimension. The early answer has the expected shape: as effective coordinate count rises, useful volume collapses while boundary concentration dominates.
Why This Matters
Most symbolic optimizers treat tree search as if useful expressions are spread through the interior. The high-D packets say the opposite: useful, finite, non-saturated EML behavior is a narrow subset of a search space dominated by faces, corners, and invalid domains.
That is the strategic reason for the Monogate stack:
- EML gives a uniform one-operator kernel.
- Forge records when search enters domain, overflow, and saturation pressure.
- IR replay packets make the lowering path inspectable.
- MachLib turns the evidence trail into theorem obligations.
This is the path from experimental optimization to verifiable compilation.
The Formal Queue
MachLib now has a compile-checked high-dimensional theorem queue. Two obligations are closed over explicit foothold axioms:
- cube boundary-shell probability tends to one
- first-layer raw log-domain survival decays exponentially
The harder targets remain:
- ball/cube volume collapse
- guarded lowering domain preservation
The queue also has packet-level bridge obligations for the new Course 006 contract:
- valid guarded boundary packets expose a nonnegative finite-survival metric
- valid log-domain candidate packets expose a nonnegative finite-survival metric
- benchmark counts can witness the
BoundaryDominatesCenterpredicate domain_wallmaps to domain preservationoverflow_wallmaps to bounded evaluationsaturation_shelfmaps to clamp invariantsphantom_attractormaps to precision-sensitivity obligationsguard_rescuemaps to output safetylog_domain_rescuemaps to positive-coordinate preservation- valid transition graphs map to boundary-dynamics obligations
domain_wall -> log_domain_rescuemaps to positive-coordinate preservationoverflow_wall -> guard_rescuemaps to output safetylog_domain_liftintervention pairs map to positive-coordinate obligationsguard_clampintervention pairs map to output-safety obligationsprecision_escapeintervention pairs map to precision obligationssaturation_deshelfintervention pairs map to clamp obligations
The first closed foothold is now in place too: any packet-level
PacketHasTransition p A B witness gives a nonempty transition-graph witness.
That theorem does not add a new axiom and does not use sorry. It is small, but
it matters because it marks the bridge from sampled trace evidence into an
actual formal object MachLib can quantify over.
The first proof-carrying rescue packet now specializes that bridge to
domain_wall -> log_domain_rescue. Forge emits a trace for a positive-domain
EML fixture, applies log_domain_lift, records finite recovery, and points at
MachLib’s positive-coordinate obligation. See
/blog/first-proof-carrying-rescue.
The second proof-carrying rescue specializes the same pattern to
overflow_wall -> guard_rescue. Forge now emits a guard-clamp packet for an
overflow-pressure fixture, and MachLib bridges that transition to output safety.
See /blog/second-proof-carrying-rescue
and the compact rescue status table.
The third proof-carrying rescue handles the subtler finite-trap case:
phantom_attractor -> interior_sample. The packet shows low-precision stalling,
higher-precision sensitivity, and an escape witness without claiming a true
local optimum. See
/blog/third-proof-carrying-rescue.
The fourth proof-carrying rescue completes the v0 suite with
saturation_shelf -> corner_concentration: finite clamp-shelf collapse replayed
as measurable pre-clamp boundary pressure. See
/blog/fourth-proof-carrying-rescue and
the suite manifest note at
/blog/proof-carrying-rescue-suite-v0.
Next Target
The next frontier is not a bigger random search. It is control over boundary-event dynamics:
raw boundary event
-> rescue operator
-> transformed transition graph
-> replay packet
-> MachLib intervention obligation
-> Explorer / electronics audit surface
That is the line where EML stops being only a beautiful single-operator trick and becomes an optimizer architecture for the high-dimensional world.
Put sharply: EML optimization is not merely search over expressions; it is control over boundary-event dynamics.