Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
#guard_msgs を使用する
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Apr 11, 2024
1 parent b5ddb17 commit 96b3e72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Src/Theorem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ theorem frac (n : Nat) : Nat :=
| 0 => 1
| n + 1 => (n + 1) * frac n

-- コメントを外してみてください
-- #eval frac 5
/--
error: failed to compile definition, consider marking it as 'noncomputable' because it depends on 'frac', and it does not have executable code
-/
#guard_msgs in --#
#eval frac 5

0 comments on commit 96b3e72

Please sign in to comment.