You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IxVM kernel: document k_infer_only safety invariant + planned hint shape
The `k_infer_only` section header skipped over the fact that the
function is only sound on well-typed inputs (since it drops
`k_check(a, dom)` on `App`, `k_ensure_sort(ty)` on `Lam`, val/ty
checks on `Let`). Spell out:
* The invariant — only call on terms produced by `whnf` of a
well-typed term, never on arbitrary inputs.
* Why the current sites (`try_proof_irrel`, `is_prop_type`,
`try_unit_like`) respect it.
* The planned non-deterministic-hint dispatch (`Hint::{None,
KInfer, KInferOnly}`) that lets us share `k_infer`'s memo where a
hit already exists instead of paying the parallel `infer_only`
memo cost.
0 commit comments