[Agda] splitting cases

Thorsten Altenkirch Thorsten.Altenkirch at nottingham.ac.uk
Sat Mar 28 17:16:20 CET 2020


Hi,

I thought we were already able to split cases but it seems I was wrong:

f : Bool → Bool

f true = true

b : Bool
b = false

f false = b

doesn’t work. Was this already a feature request? I actually need it mostly for pedagogical reasons. I want to prove a theorem, ah I need a lemma, let’s prove it and then continue.

Yes, I know I could use with but this gets to complicated. However, splitting cases is also very useful for inductive-inductive definitions.

Thorsten



This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please contact the sender and delete the email and
attachment. 

Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. Email
communications with the University of Nottingham may be monitored 
where permitted by law.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chalmers.se/pipermail/agda/attachments/20200328/6f52633c/attachment.html>


More information about the Agda mailing list