From 0ddab0fe11c33fc559fc8fb58528618efdbc93a4 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 2 Apr 2020 19:31:33 +0200 Subject: better lambda notation --- spartan/theories/Spartan.thy | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spartan/theories/Spartan.thy b/spartan/theories/Spartan.thy index fb901d5..ac12937 100644 --- a/spartan/theories/Spartan.thy +++ b/spartan/theories/Spartan.thy @@ -63,11 +63,14 @@ axiomatization app :: \o \ o \ o\ ("(1_ `_)" [120, 121] 120) syntax - "_Pi" :: \idt \ o \ o \ o\ ("(2\_: _./ _)" 30) - "_lam" :: \idt \ o \ o \ o\ ("(2\_: _./ _)" 30) + "_Pi" :: \idt \ o \ o \ o\ ("(2\_: _./ _)" 30) + "_lam" :: \pttrns \ o \ o \ o\ ("(2\_: _./ _)" 30) + "_lam2" :: \pttrns \ o \ o \ o\ translations - "\x: A. B" \ "CONST Pi A (\x. B)" - "\x: A. b" \ "CONST lam A (\x. b)" + "\x: A. B" \ "CONST Pi A (\x. B)" + "\x xs: A. b" \ "CONST lam A (\x. _lam2 xs A b)" + "_lam2 x A b" \ "\x: A. b" + "\x: A. b" \ "CONST lam A (\x. b)" abbreviation Fn (infixr "\" 40) where "A \ B \ \_: A. B" -- cgit v1.2.3