Zulip Chat Archive

Stream: new members

Topic: How to turn off termination checking for a function?


Marko Grdinić (Oct 27 2019 at 07:55):

Idris has partial annotations. Agda has the {-# TERMINATING #-} pragma. I think I saw that Lean has something like this in one of the threads, but I cannot find it. What was it?

Kevin Buzzard (Oct 27 2019 at 08:13):

Is it meta?

Marko Grdinić (Oct 27 2019 at 08:16):

Do you mean something like @[meta] def dudo.main : Particle Die → Particle Die → list AllowedClaim → state rat? No, it says that it is an unknown attribute.

Marko Grdinić (Oct 27 2019 at 08:16):

Ah it works like...meta def dudo.main : Particle Die → Particle Die → list AllowedClaim → state rat.

Marko Grdinić (Oct 27 2019 at 08:16):

Thank you, that was it.


Last updated: Dec 20 2023 at 11:08 UTC