Named source calls across independently declared programs #
The client imports the existing recursive factorial and effectful traversal libraries. Its source calls refer to their qualified names; the generated function table contains the relocated library implementations and their internal call graphs, not host callbacks or specifications standing in for code.
The generated one-step equations expose the original library observations. Existing mathematical proofs therefore establish the client's factorial result and two-buffer frame without reopening recursion or either traversal loop. A second client imports the first, retaining this transitive source call graph. These are source correctness claims, not inherited compiled instruction bounds.
The imported functions retain their actual relocated bodies.
Ordinary arguments and the actual result observed in their real source heaps. This interface does not assert the existence of a total mathematical model.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Ordinary mathematical function generated from the same represented source block.
Equations
- Complexity.Language.Examples.Imports.Implementation.factorial_model n = (have result_native := Complexity.Language.Examples.Factorial.Implementation.factorial n; pure result_native).run
Instances For
Successful execution observes the native result in its actual final heap and retains every previously represented immutable list.
Budget-free total correctness with ordinary source parameters and relational initial/final heap postconditions. This is the existing source function contract.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Signatures of the functions added by this source declaration.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Fold an actual source invocation back to its named ordinary-argument observation.
Apply a predicate, postcondition or bound with ordinary source parameters to the actual argument environment. No new contract or execution is introduced.
Equations
- Complexity.Language.Examples.Imports.Implementation.factorial_onArgs function✝ env✝ = function✝ env✝.head
Instances For
Ordinary arguments and the actual result observed in their real source heaps. This interface does not assert the existence of a total mathematical model.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The actual declared argument environment, constructed from ordinary source parameters. This is proof-side parameter transport, not an additional runtime operation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Signature-preserving positions of this imported source program.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exact total source contract derived from the checked encoded-result equation and the existing raw-input reconstruction, with the same final heap.
Actual imported function bodies with their internal calls relocated.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The imported functions retain their actual relocated bodies.
Budget-free total correctness with ordinary source parameters and relational initial/final heap postconditions. This is the existing source function contract.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The same source execution returns the encoded mathematical result without changing its supplied heap, under the actual input representations.
Apply a supplied source contract with ordinary named arguments and its actual returned value and final heap. No callee body or new contract is inferred.
Added function bodies already typed against the complete linked table.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The actual declared argument environment, constructed from ordinary source parameters. This is proof-side parameter transport, not an additional runtime operation.
Equations
Instances For
The named function's actual independently interpreted source body.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply a predicate, postcondition or bound with ordinary source parameters to the actual argument environment. No new contract or execution is introduced.
Equations
Instances For
One source-body equation in ordinary monadic notation; named callees remain opaque.
Successful execution observes the native result in its actual final heap and retains every previously represented immutable list.
The source program's declared first-order signatures.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prove the ordinary-parameter source contract with a total-correctness triple for the same action. The ghost initial heap equals the actual entry heap; successful results use the actual final heap, and faults are excluded.
One source-body equation in ordinary monadic notation; named callees remain opaque.
This named source function's index in its declared signature table.
Equations
Instances For
Apply a supplied source contract with ordinary named arguments and its actual returned value and final heap. No callee body or new contract is inferred.
The named function's actual independently interpreted source body.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The complete signature tables retained from imported source programs.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Signature-preserving positions of this imported source program.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The named function's actual partial source action, with ordinary typed arguments and an explicitly supplied shared heap.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prove the ordinary-parameter source contract with a total-correctness triple for the same action. The ghost initial heap equals the actual entry heap; successful results use the actual final heap, and faults are excluded.
The named function's actual partial source action, with ordinary typed arguments and an explicitly supplied shared heap.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Automatic correspondence for the same generated source function, without a machine budget.
This named source function's index in its declared signature table.
Equations
Instances For
The source contract is equivalent to ordinary curried preconditions and successful result/heap postconditions, including termination and absence of faults.
The finite table of actual named source bodies.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The client makes a real library call and returns its actual result.
The existing recursive proof supplies the client's mathematical result.
The client's two imported calls have the same source action as the existing two-buffer composition; neither callee's implementation is unfolded.
The existing composition proof gives both mapped arrays and preservation outside both views at the same actual final heap, without a new frame argument.
The source program's declared first-order signatures.
Equations
Instances For
Ordinary arguments and the actual result observed in their real source heaps. This interface does not assert the existence of a total mathematical model.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Actual imported function bodies with their internal calls relocated.
Equations
Instances For
Added function bodies already typed against the complete linked table.
Equations
- Complexity.Language.Examples.Imports.Second.localBodies i = Fin.cases Complexity.Language.Examples.Imports.Second.factorialBody (fun (index : Fin [].length) => index.elim0) i
Instances For
The finite table of actual named source bodies.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Successful execution observes the native result in its actual final heap and retains every previously represented immutable list.
The complete signature tables retained from imported source programs.
Equations
Instances For
Budget-free total correctness with ordinary source parameters and relational initial/final heap postconditions. This is the existing source function contract.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The named function's actual partial source action, with ordinary typed arguments and an explicitly supplied shared heap.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply a supplied source contract with ordinary named arguments and its actual returned value and final heap. No callee body or new contract is inferred.
Successful execution observes the native result in its actual final heap and retains every previously represented immutable list.
One source-body equation in ordinary monadic notation; named callees remain opaque.
This named source function's index in its declared signature table.
Equations
Instances For
The actual declared argument environment, constructed from ordinary source parameters. This is proof-side parameter transport, not an additional runtime operation.
Equations
Instances For
The imported functions retain their actual relocated bodies.
Signature-preserving positions of this imported source program.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The same source execution returns the encoded mathematical result without changing its supplied heap, under the actual input representations.
The named function's actual independently interpreted source body.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply a predicate, postcondition or bound with ordinary source parameters to the actual argument environment. No new contract or execution is introduced.
Equations
- Complexity.Language.Examples.Imports.Second.factorial_onArgs function✝ env✝ = function✝ env✝.head
Instances For
Exact total source contract derived from the checked encoded-result equation and the existing raw-input reconstruction, with the same final heap.
Signatures of the functions added by this source declaration.
Equations
Instances For
Prove the ordinary-parameter source contract with a total-correctness triple for the same action. The ghost initial heap equals the actual entry heap; successful results use the actual final heap, and faults are excluded.
Automatic correspondence for the same generated source function, without a machine budget.
Ordinary mathematical function generated from the same represented source block.
Equations
- Complexity.Language.Examples.Imports.Second.factorial_model n = (have result_native := Complexity.Language.Examples.Imports.Implementation.factorial_model n; pure result_native).run
Instances For
Importing a client retains its call into the original recursive library.