comparison doc/manual.tex @ 662:039ad51cf9c3

Add guard elim rule
author Adam Chlipala <adamc@hcoop.net>
date Thu, 12 Mar 2009 12:25:05 -0400
parents d5552715db53
children c90906b2f431
comparison
equal deleted inserted replaced
661:d5552715db53 662:039ad51cf9c3
663 663
664 $$\infer{\Gamma \vdash \lambda [c_1 \sim c_2] \Rightarrow e : \lambda [c_1 \sim c_2] \Rightarrow \tau}{ 664 $$\infer{\Gamma \vdash \lambda [c_1 \sim c_2] \Rightarrow e : \lambda [c_1 \sim c_2] \Rightarrow \tau}{
665 \Gamma \vdash c_1 :: \{\kappa\} 665 \Gamma \vdash c_1 :: \{\kappa\}
666 & \Gamma \vdash c_2 :: \{\kappa'\} 666 & \Gamma \vdash c_2 :: \{\kappa'\}
667 & \Gamma, c_1 \sim c_2 \vdash e : \tau 667 & \Gamma, c_1 \sim c_2 \vdash e : \tau
668 }
669 \quad \infer{\Gamma \vdash e \; ! : \tau}{
670 \Gamma \vdash e : [c_1 \sim c_2] \Rightarrow \tau
671 & \Gamma \vdash c_1 \sim c_2
668 }$$ 672 }$$
669 673
670 \subsection{Pattern Typing} 674 \subsection{Pattern Typing}
671 675
672 $$\infer{\Gamma \vdash \_ \leadsto \Gamma; \tau}{} 676 $$\infer{\Gamma \vdash \_ \leadsto \Gamma; \tau}{}