src/HOL/Library/FinFun_Syntax.thy
author wenzelm
Tue Mar 26 20:02:02 2013 +0100 (2013-03-26)
changeset 51542 738598beeb26
parent 48041 d60f6b41bf2d
child 58881 b9556a055632
permissions -rw-r--r--
tuned imports;
Andreas@48041
     1
(* Author: Andreas Lochbihler, KIT *)
Andreas@48041
     2
Andreas@48041
     3
header {* Pretty syntax for almost everywhere constant functions *}
Andreas@48041
     4
wenzelm@51542
     5
theory FinFun_Syntax
wenzelm@51542
     6
imports FinFun
wenzelm@51542
     7
begin
Andreas@48041
     8
Andreas@48041
     9
type_notation
Andreas@48041
    10
  finfun ("(_ =>f /_)" [22, 21] 21)
Andreas@48041
    11
Andreas@48041
    12
type_notation (xsymbols)
Andreas@48041
    13
  finfun ("(_ \<Rightarrow>f /_)" [22, 21] 21)
Andreas@48041
    14
Andreas@48041
    15
notation
Andreas@48041
    16
  finfun_const ("K$/ _" [0] 1) and
Andreas@48041
    17
  finfun_update ("_'(_ $:= _')" [1000,0,0] 1000) and
Andreas@48041
    18
  finfun_apply (infixl "$" 999) and
Andreas@48041
    19
  finfun_comp (infixr "o$" 55) and
Andreas@48041
    20
  finfun_comp2 (infixr "$o" 55) and
Andreas@48041
    21
  finfun_Diag ("(1'($_,/ _$'))" [0, 0] 1000)
Andreas@48041
    22
Andreas@48041
    23
notation (xsymbols) 
Andreas@48041
    24
  finfun_comp (infixr "\<circ>$" 55) and
Andreas@48041
    25
  finfun_comp2 (infixr "$\<circ>" 55)
Andreas@48041
    26
Andreas@48041
    27
end