lean4-htt/tests/lean/run/9806.lean
Cameron Zwarich 4506173a27
fix: support overapplication of Quot.lift in the compiler (#9827)
This PR changes the lowering of `Quot.lcInv` (the compiler-internal form
of `Quot.lift`) in `toMono` to support overapplication.

Fixes #9806.
2025-08-11 01:51:54 +00:00

5 lines
137 B
Text

def foo : Squash (Unit → Bool) := .mk fun _ => false
def bar : Squash Bool := foo.lift fun f => .mk !f ()
#eval IO.println bar.lcInv