lean4-htt/tests/pkg/cbv_attr/CbvAttr/PublicFunctionPrivateTheorem.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

9 lines
165 B
Text

module
public def f5 (x : Nat) :=
x + 1
@[cbv_eval] private theorem f5_spec : f5 x = x + 1 := rfl
/- works locally -/
example : f5 1 = 2 := by conv => lhs; cbv