src/HOL/Library/Lattice_Syntax.thy
author Christian Urban <urbanc@in.tum.de>
Fri, 25 Nov 2011 00:18:59 +0000
changeset 45628 f21eb7073895
parent 44860 56101fa00193
child 58881 b9556a055632
permissions -rw-r--r--
in a local context, also the free variable case needs to be analysed default tip

(* Author: Florian Haftmann, TU Muenchen *)

header {* Pretty syntax for lattice operations *}

theory Lattice_Syntax
imports Complete_Lattices
begin

notation
  bot ("\<bottom>") and
  top ("\<top>") and
  inf  (infixl "\<sqinter>" 70) and
  sup  (infixl "\<squnion>" 65) and
  Inf  ("\<Sqinter>_" [900] 900) and
  Sup  ("\<Squnion>_" [900] 900)

syntax (xsymbols)
  "_INF1"     :: "pttrns \<Rightarrow> 'b \<Rightarrow> 'b"           ("(3\<Sqinter>_./ _)" [0, 10] 10)
  "_INF"      :: "pttrn \<Rightarrow> 'a set \<Rightarrow> 'b \<Rightarrow> 'b"  ("(3\<Sqinter>_\<in>_./ _)" [0, 0, 10] 10)
  "_SUP1"     :: "pttrns \<Rightarrow> 'b \<Rightarrow> 'b"           ("(3\<Squnion>_./ _)" [0, 10] 10)
  "_SUP"      :: "pttrn \<Rightarrow> 'a set \<Rightarrow> 'b \<Rightarrow> 'b"  ("(3\<Squnion>_\<in>_./ _)" [0, 0, 10] 10)

end