lean4-htt/tests/elab/cbv3.lean
Wojciech Różowski 7e3e7cf5d9
feat: add cbv annotations to iterators and strings (#12961)
This PR adds `cbv` annotations to some iterator and string operations.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 11:39:40 +00:00

19 lines
313 B
Text

def f (n : Nat) : Nat := match n with
| 0 => 0
| (n + 1) => (f n) + 1
termination_by n
example : f 1 = f 1 := by cbv
/--
trace: ⊢ False
---
warning: declaration uses `sorry`
-/
#guard_msgs in
example : f 1 = f 2 := by
cbv
trace_state
sorry
example : "hello" ++ " " ++ "world" = "hello world" := by cbv