Explicit conditions for completion of the supplied external Port model.
check_trace/4 retains the participant cost result even when progress
assumptions are missing. Options are limits: %{rejections: r, resumptions: s, inspections: i}, progress: [...], and
goal: :termination | :success (default :termination). Limits are natural
numbers and apply over the entire interaction, not just the observed prefix.
Inspections include retrieval of the matching response.
The four progress declarations are :caller_progress,
:submission_progress, :resumption_progress, and :response_progress.
They assume an eventual next event in each corresponding nonterminal state,
with the modeled transition and remaining limits respected. Arbitrarily
long idle waiting is allowed. These declarations do not prove the actual
scheduler, external program, or response delivery behaves that way.
Termination includes success, final rejection, closure, application timeout,
or decoding failure. Successful completion additionally requires
:no_failure_outcomes. Active events decrease a natural rank; idle waiting
does not. The bound on active event occurrences is not a bound on elapsed
time. A proof builder emits theorems with explicit progress hypotheses;
constructors leave lean_status: :not_checked.