Semantic preservation of elaboration: if a source term evaluates to a value,
its elaboration evaluates in Core to the elaboration of that value. The
lookup/selection lemmas relate source and Core value lookups; the *_eval
lemmas evaluate the composition terms emitted by nmrg, link, linkall.
Evaluation of the composition encodings #
Operational lemmas assembling EBig derivations for the generated terms. Note
the premise shapes: each operand evaluation appears once, mirroring the terms
themselves.
Non-dependent merge saves the ambient environment and restores it for each operand; the final projection discards the saved environment.
The linearized wire evaluates by projection alone. Generalized over the
environment: wherever the provider value vc₁ is reachable at index shift,
wire_shift ⟦D⟧ evaluates to a package that elaborates the source package. No
premise about the provider term appears, because the wire never mentions it.
The assembly lemma for the linearized composition: one evaluation of each
operand, one wire evaluation under the spine-built environment
((ρ , v₁) , f) , v₁, one closure-body evaluation — exactly the derivation
shape of the term. Shared by link and linkall.
The single-import wire evaluated in the spine-built environment: the
link instance of wire_eval, stated directly at the target.