pub fn encode_formal_function_definition(
network: &LinkNetwork,
root: LinkId,
selector: FormalFunctionSelector<'_>,
provenance: Option<&Value>,
) -> Result<FormalConceptArchive, String>Expand description
Select a flat owned function and preserve its exact closed recursive context.
The generated typed call wrapper names the entry under the existing checked program model. Unrelated declarations and main effects stay outside meaning.
ยงErrors
Refuses unsupported formal bases, foreign selectors, captured externals, non-flat contexts, reserved name collisions and resource exhaustion.