lean4-htt/tests/elab/listLength.lean.out.expected
Henrik Böving a34777a08d
feat: make the borrow inference explain itself (#12810)
This PR adds tracing to the borrow inference to explain to the user why
it got to its conclusions.
2026-03-05 14:18:13 +00:00

8 lines
304 B
Text

[Compiler.inferBorrow] own _x.21: result of function call _x.21
[Compiler.inferBorrow] own _x.20: result of function call _x.20
[Compiler.inferBorrow] size: 3
def f @&xs : tobj :=
let _x.1 := 2;
let _x.2 := List.lengthTR._redArg xs;
let _x.3 := Nat.mul _x.1 _x.2;
return _x.3