lean4-htt/old_tests/tests/lean/run/noncomputable_example.lean
2018-04-10 12:56:55 -07:00

19 lines
No EOL
396 B
Text

universe u
open classical psum
variables (A : Type u) (h : (A → false) → false)
-- both noncomputable example...
noncomputable example : A :=
match type_decidable A with
| (inl ha) := ha
| (inr hna) := false.rec _ (h hna)
end
-- ... and noncomputable theory should work
noncomputable theory
example : A :=
match type_decidable A with
| (inl ha) := ha
| (inr hna) := false.rec _ (h hna)
end