(s: &mut NormLevel, k: u64, path: &[u64])
| 343 | /// `NormLevel.addNode v k path'` (`refs/lean4lean/Lean4Lean/Level.lean:92`); |
| 344 | /// `k` must be the current succ-accumulator from `normalize_aux`. |
| 345 | /// |
| 346 | /// An earlier port of this function dropped `k` and always inserted |
| 347 | /// `(idx, 0)`, which silently mis-normalized `Succ^n(imax(u, Param v))` |
| 348 | /// shapes for `n > 0`. Keep the `k` parameter. |
| 349 | fn norm_add_node(s: &mut NormLevel, idx: u64, k: u64, path: &[u64]) { |
| 350 | s.entry(path.to_vec()).or_default().add_var(idx, k); |
| 351 | } |
| 352 | |
| 353 | fn norm_add_const(s: &mut NormLevel, k: u64, path: &[u64]) { |
| 354 | if k == 0 || (k == 1 && !path.is_empty()) { |
no test coverage detected