src/HOL/Library/FinFun_Syntax.thy
author Andreas Lochbihler
Wed May 30 16:05:06 2012 +0200 (2012-05-30)
changeset 48041 d60f6b41bf2d
child 51542 738598beeb26
permissions -rw-r--r--
remove pretty syntax for FinFuns at the end and provide separate syntax theory
     1 (* Author: Andreas Lochbihler, KIT *)
     2 
     3 header {* Pretty syntax for almost everywhere constant functions *}
     4 
     5 theory FinFun_Syntax imports FinFun begin
     6 
     7 type_notation
     8   finfun ("(_ =>f /_)" [22, 21] 21)
     9 
    10 type_notation (xsymbols)
    11   finfun ("(_ \<Rightarrow>f /_)" [22, 21] 21)
    12 
    13 notation
    14   finfun_const ("K$/ _" [0] 1) and
    15   finfun_update ("_'(_ $:= _')" [1000,0,0] 1000) and
    16   finfun_apply (infixl "$" 999) and
    17   finfun_comp (infixr "o$" 55) and
    18   finfun_comp2 (infixr "$o" 55) and
    19   finfun_Diag ("(1'($_,/ _$'))" [0, 0] 1000)
    20 
    21 notation (xsymbols) 
    22   finfun_comp (infixr "\<circ>$" 55) and
    23   finfun_comp2 (infixr "$\<circ>" 55)
    24 
    25 end