lean4-htt/tests/elab/decide_cbv_errors.lean
Wojciech Różowski 5cc6585c9b
chore: disable cbv usage warning (#12986)
This disables `cbv` usage warning and reflects that in the corresponding
unit tests.
2026-03-19 14:12:04 +00:00

17 lines
496 B
Text

-- Success: proposition reduces to `Bool.true`
example : 1 + 1 = 2 := by decide_cbv
example : 1 ∈ [1, 2, 3] := by decide_cbv
/-- error: `decide_cbv` failed: the proposition evaluates to `false` -/
#guard_msgs (error) in
example : 1 + 1 = 3 := by decide_cbv
opaque myOpaqueBool : Bool
/--
error: `decide_cbv` failed: could not reduce the expression to a boolean value; got stuck at: ⏎
decide (myOpaqueBool = true)
-/
#guard_msgs (error) in
example : myOpaqueBool = true := by decide_cbv