lean4-htt/tests/lean/run/instanceUsingFalse.lean
Cameron Zwarich 501993eb7f
fix: don't pull instances depending on erased propositions (#9177)
This PR makes the `pullInstances` pass avoid pulling any instance
expressions containing erased propositions, because we don't correctly
represent the dependencies that remain after erasure.
2025-07-03 19:17:25 +00:00

14 lines
275 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class WrappedNat (α : Type) where
n : Nat
inductive FalseContainer where
| nat (n : Nat)
| oops (f : Prop → False)
def f (x : FalseContainer) : WrappedNat FalseContainer :=
match x with
| .nat n => { n }
| .oops f => (f (0 == 0)).rec
#eval f (.nat 1) |>.n