X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcore_notation.moo;h=fc6a15b06ab989e7af19d203cecc276bd81960c9;hb=070b11daefc90ecc20ebee73acc550aeac1c627b;hp=b201a0555125bb15c2fa634433e74a64bfa3fe44;hpb=80ea6f314e89d9d280338c41860cb04949319629;p=helm.git diff --git a/helm/software/matita/core_notation.moo b/helm/software/matita/core_notation.moo index b201a0555..fc6a15b06 100644 --- a/helm/software/matita/core_notation.moo +++ b/helm/software/matita/core_notation.moo @@ -11,6 +11,19 @@ notation > "\exists list1 ident x sep , opt (: T). term 19 Px" @{ ${ fold right @{$Px} rec acc @{'exists (λ${ident x}.$acc)} } } }. +notation < "hvbox(\Sigma ident i opt (: ty) break . p)" + right associative with precedence 20 +for @{ 'sigma ${default + @{\lambda ${ident i} : $ty. $p} + @{\lambda ${ident i} . $p}}}. + +notation > "\Sigma list1 ident x sep , opt (: T). term 19 Px" + with precedence 20 + for ${ default + @{ ${ fold right @{$Px} rec acc @{'sigma (λ${ident x}:$T.$acc)} } } + @{ ${ fold right @{$Px} rec acc @{'sigma (λ${ident x}.$acc)} } } + }. + notation "hvbox(\langle term 19 a, break term 19 b\rangle)" with precedence 90 for @{ 'pair $a $b}. @@ -34,9 +47,12 @@ notation < "hvbox(a break \to b)" right associative with precedence 20 for @{ \Pi $_:$a.$b }. -notation "hvbox(a break = b)" +notation > "hvbox(a break = b)" + non associative with precedence 45 +for @{ 'eq ? $a $b }. +notation < "hvbox(a break maction (=) (=\sub t) b)" non associative with precedence 45 -for @{ 'eq $a $b }. +for @{ 'eq $t $a $b }. notation "hvbox(a break \leq b)" non associative with precedence 45 @@ -54,9 +70,13 @@ notation "hvbox(a break \gt b)" non associative with precedence 45 for @{ 'gt $a $b }. -notation "hvbox(a break \neq b)" +notation > "hvbox(a break \neq b)" non associative with precedence 45 -for @{ 'neq $a $b }. +for @{ 'neq ? $a $b }. + +notation < "hvbox(a break maction (\neq) (\neq\sub t) b)" + non associative with precedence 45 +for @{ 'neq $t $a $b }. notation "hvbox(a break \nleq b)" non associative with precedence 45 @@ -102,7 +122,7 @@ notation "hvbox(a break \mod b)" left associative with precedence 55 for @{ 'module $a $b }. -notation "\frac a b" +notation "a \frac b" non associative with precedence 90 for @{ 'divide $a $b }. @@ -137,6 +157,15 @@ notation "hvbox(\lnot a)" non associative with precedence 40 for @{ 'not $a }. +notation > "hvbox(a break \liff b)" + left associative with precedence 25 +for @{ 'iff $a $b }. + +notation "hvbox(a break \leftrightarrow b)" + left associative with precedence 25 +for @{ 'iff $a $b }. + + notation "hvbox(\Omega \sup term 90 A)" non associative with precedence 70 for @{ 'powerset $A }. @@ -146,6 +175,12 @@ for @{ 'subset (\lambda ${ident i} : $nonexistent . $p)}. notation > "hvbox({ ident i | term 19 p })" with precedence 90 for @{ 'subset (\lambda ${ident i}. $p)}. +notation < "hvbox({ ident i ∈ s | term 19 p })" with precedence 90 +for @{ 'comprehension $s (\lambda ${ident i} : $nonexistent . $p)}. + +notation > "hvbox({ ident i ∈ s | term 19 p })" with precedence 90 +for @{ 'comprehension $s (\lambda ${ident i}. $p)}. + notation "hvbox(a break ∈ b)" non associative with precedence 45 for @{ 'mem $a $b }. @@ -173,10 +208,22 @@ notation "hvbox(a break \circ b)" left associative with precedence 55 for @{ 'compose $a $b }. -notation "(a \sup b)" left associative with precedence 60 for @{ 'exp $a $b}. -notation "s \sup (-1)" with precedence 60 for @{ 'invert $s }. -notation < "s \sup (-1) x" with precedence 60 for @{ 'invert_appl $s $x}. +notation < "↓ \ensp a" with precedence 55 for @{ 'downarrow $a }. +notation > "↓ a" with precedence 55 for @{ 'downarrow $a }. + +notation "hvbox(U break ↓ V)" non associative with precedence 55 for @{ 'fintersects $U $V }. + +notation "↑a" with precedence 55 for @{ 'uparrow $a }. +notation "hvbox(a break ↑ b)" with precedence 55 for @{ 'funion $a $b }. + +notation "a \sup term 89 b" with precedence 90 for @{ 'exp $a $b}. +notation > "a ^ term 89 b" with precedence 90 for @{ 'exp $a $b}. +notation "s \sup (-1)" with precedence 90 for @{ 'invert $s }. +notation > "s ^ (-1)" with precedence 90 for @{ 'invert $s }. +notation < "s \sup (-1) x" with precedence 90 for @{ 'invert_appl $s $x}. + +notation "hvbox(|term 90 C|)" with precedence 69 for @{ 'card $C }. notation "\naturals" non associative with precedence 90 for @{'N}. notation "\rationals" non associative with precedence 90 for @{'Q}. @@ -185,3 +232,13 @@ notation "\integers" non associative with precedence 90 for @{'Z}. notation "\complexes" non associative with precedence 90 for @{'C}. notation "\ee" with precedence 90 for @{ 'neutral }. (* ⅇ *) + +notation > "x ⊩ y" with precedence 45 for @{'Vdash2 $x $y ?}. +notation > "x ⊩_term 90 c y" with precedence 45 for @{'Vdash2 $x $y $c}. +notation "x (⊩ \sub term 90 c) y" with precedence 45 for @{'Vdash2 $x $y $c}. +notation > "⊩ " with precedence 60 for @{'Vdash ?}. +notation "(⊩ \sub term 90 c) " with precedence 60 for @{'Vdash $c}. + +notation < "maction (mstyle color #ff0000 (­…­)) (t)" +non associative with precedence 90 for @{'hide $t}. +