Skip to content

Commit

Permalink
No bang after check
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Jul 23, 2024
1 parent ed7d26e commit c60e916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
4 changes: 2 additions & 2 deletions tests/lean/terminationFailure.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ where
| 0 => 2
| x => f x * 2

#check! f
#check! f.g
#check f
#check f.g

#eval! f 0
#eval! f.g 0
Expand Down
25 changes: 6 additions & 19 deletions tests/lean/terminationFailure.lean.expected.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,11 @@ Call from f to f.g at 3:4-7:
x1 =

Please use `termination_by` to specify a decreasing measure.
terminationFailure.lean:11:8-11:9: error: application type mismatch
!f
argument
f
has type
Nat → Nat : Type
but is expected to have type
Bool : Type
!sorryAx Bool true : Bool
terminationFailure.lean:12:8-12:11: error: application type mismatch
!f.g
argument
f.g
has type
Nat → Nat : Type
but is expected to have type
Bool : Type
!sorryAx Bool true : Bool
terminationFailure.lean:22:4-22:5: error: fail to show termination for
f (x : Nat) : Nat
f.g : Nat → Nat
1
2
terminationFailure.lean:20:4-20:5: error: fail to show termination for
h
with errors
failed to infer structural recursion:
Expand All @@ -53,3 +39,4 @@ failed to prove termination, possible solutions:
x : Nat
⊢ False
h (x : Nat) : Foo
Foo.a

0 comments on commit c60e916

Please sign in to comment.