# HG changeset patch # User nipkow # Date 1536761570 -7200 # Node ID a1e26440efb8c57c3610a3e99f445d84fb1e8fad # Parent 96b15934a17af343bd5b384b87562275e100f3a1 tuned "=" syntax declarations; made "~=" uniformly "infix" diff -r 96b15934a17a -r a1e26440efb8 src/HOL/HOL.thy --- a/src/HOL/HOL.thy Tue Sep 11 22:25:00 2018 +0200 +++ b/src/HOL/HOL.thy Wed Sep 12 16:12:50 2018 +0200 @@ -81,9 +81,16 @@ judgment Trueprop :: "bool \ prop" ("(_)" 5) axiomatization implies :: "[bool, bool] \ bool" (infixr "\" 25) - and eq :: "['a, 'a] \ bool" (infixl "=" 50) + and eq :: "['a, 'a] \ bool" and The :: "('a \ bool) \ 'a" +notation (input) + eq (infixl "=" 50) +notation (output) + eq (infix "=" 50) + +text \The input syntax for \eq\ is more permissive than the output syntax +because of the large amount of material that relies on infixl.\ subsubsection \Defined connectives and quantifiers\ @@ -134,22 +141,15 @@ "\!x. P" \ "\ (\!x. P)" -abbreviation not_equal :: "['a, 'a] \ bool" (infixl "\" 50) +abbreviation not_equal :: "['a, 'a] \ bool" (infix "\" 50) where "x \ y \ \ (x = y)" -notation (output) - eq (infix "=" 50) and - not_equal (infix "\" 50) - -notation (ASCII output) - not_equal (infix "~=" 50) - notation (ASCII) Not ("~ _" [40] 40) and conj (infixr "&" 35) and disj (infixr "|" 30) and implies (infixr "-->" 25) and - not_equal (infixl "~=" 50) + not_equal (infix "~=" 50) abbreviation (iff) iff :: "[bool, bool] \ bool" (infixr "\" 25)