just one alternative proof syntax, which also works for Proof_Syntax.pretty_proof/Proof_Syntax.read_proof roundtrip;
authorwenzelm
Sun Jun 30 11:30:16 2013 +0200 (2013-06-30)
changeset 52486b1565e37678b
parent 52485 eed5cbe46f52
child 52487 48bc24467008
just one alternative proof syntax, which also works for Proof_Syntax.pretty_proof/Proof_Syntax.read_proof roundtrip;
src/Doc/IsarImplementation/Logic.thy
src/HOL/Extraction.thy
src/Pure/Proof/proof_syntax.ML
     1.1 --- a/src/Doc/IsarImplementation/Logic.thy	Sun Jun 30 09:26:00 2013 +0200
     1.2 +++ b/src/Doc/IsarImplementation/Logic.thy	Sun Jun 30 11:30:16 2013 +0200
     1.3 @@ -1303,7 +1303,7 @@
     1.4    \begin{supertabular}{rclr}
     1.5  
     1.6    @{syntax_def (inner) proof} & = & @{verbatim Lam} @{text params} @{verbatim "."} @{text proof} \\
     1.7 -    & @{text "|"} & @{text "\<Lambda>"} @{text "params"} @{verbatim "."} @{text proof} \\
     1.8 +    & @{text "|"} & @{text "\<^bold>\<lambda>"} @{text "params"} @{verbatim "."} @{text proof} \\
     1.9      & @{text "|"} & @{text proof} @{verbatim "%"} @{text any} \\
    1.10      & @{text "|"} & @{text proof} @{text "\<cdot>"} @{text any} \\
    1.11      & @{text "|"} & @{text proof} @{verbatim "%%"} @{text proof} \\
    1.12 @@ -1448,9 +1448,9 @@
    1.13    val prf =
    1.14      Proof_Syntax.read_proof thy true false
    1.15        "impI \<cdot> _ \<cdot> _ \<bullet> \
    1.16 -      \   (Lam H: _. \
    1.17 +      \   (\<^bold>\<lambda>H: _. \
    1.18        \     conjE \<cdot> _ \<cdot> _ \<cdot> _ \<bullet> H \<bullet> \
    1.19 -      \       (Lam (H: _) Ha: _. conjI \<cdot> _ \<cdot> _ \<bullet> Ha \<bullet> H))";
    1.20 +      \       (\<^bold>\<lambda>(H: _) Ha: _. conjI \<cdot> _ \<cdot> _ \<bullet> Ha \<bullet> H))";
    1.21    val thm =
    1.22      prf
    1.23      |> Reconstruct.reconstruct_proof thy @{prop "A \<and> B \<longrightarrow> B \<and> A"}
     2.1 --- a/src/HOL/Extraction.thy	Sun Jun 30 09:26:00 2013 +0200
     2.2 +++ b/src/HOL/Extraction.thy	Sun Jun 30 11:30:16 2013 +0200
     2.3 @@ -203,209 +203,209 @@
     2.4  
     2.5  realizers
     2.6    impI (P, Q): "\<lambda>pq. pq"
     2.7 -    "\<Lambda> (c: _) (d: _) P Q pq (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h \<cdot> x))"
     2.8 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h \<cdot> x))"
     2.9  
    2.10    impI (P): "Null"
    2.11 -    "\<Lambda> (c: _) P Q (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h \<cdot> x))"
    2.12 +    "\<^bold>\<lambda>(c: _) P Q (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h \<cdot> x))"
    2.13  
    2.14 -  impI (Q): "\<lambda>q. q" "\<Lambda> (c: _) P Q q. impI \<cdot> _ \<cdot> _"
    2.15 +  impI (Q): "\<lambda>q. q" "\<^bold>\<lambda>(c: _) P Q q. impI \<cdot> _ \<cdot> _"
    2.16  
    2.17    impI: "Null" "impI"
    2.18  
    2.19    mp (P, Q): "\<lambda>pq. pq"
    2.20 -    "\<Lambda> (c: _) (d: _) P Q pq (h: _) p. mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
    2.21 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq (h: _) p. mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
    2.22  
    2.23    mp (P): "Null"
    2.24 -    "\<Lambda> (c: _) P Q (h: _) p. mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
    2.25 +    "\<^bold>\<lambda>(c: _) P Q (h: _) p. mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
    2.26  
    2.27 -  mp (Q): "\<lambda>q. q" "\<Lambda> (c: _) P Q q. mp \<cdot> _ \<cdot> _"
    2.28 +  mp (Q): "\<lambda>q. q" "\<^bold>\<lambda>(c: _) P Q q. mp \<cdot> _ \<cdot> _"
    2.29  
    2.30    mp: "Null" "mp"
    2.31  
    2.32 -  allI (P): "\<lambda>p. p" "\<Lambda> (c: _) P (d: _) p. allI \<cdot> _ \<bullet> d"
    2.33 +  allI (P): "\<lambda>p. p" "\<^bold>\<lambda>(c: _) P (d: _) p. allI \<cdot> _ \<bullet> d"
    2.34  
    2.35    allI: "Null" "allI"
    2.36  
    2.37 -  spec (P): "\<lambda>x p. p x" "\<Lambda> (c: _) P x (d: _) p. spec \<cdot> _ \<cdot> x \<bullet> d"
    2.38 +  spec (P): "\<lambda>x p. p x" "\<^bold>\<lambda>(c: _) P x (d: _) p. spec \<cdot> _ \<cdot> x \<bullet> d"
    2.39  
    2.40    spec: "Null" "spec"
    2.41  
    2.42 -  exI (P): "\<lambda>x p. (x, p)" "\<Lambda> (c: _) P x (d: _) p. exI_realizer \<cdot> P \<cdot> p \<cdot> x \<bullet> c \<bullet> d"
    2.43 +  exI (P): "\<lambda>x p. (x, p)" "\<^bold>\<lambda>(c: _) P x (d: _) p. exI_realizer \<cdot> P \<cdot> p \<cdot> x \<bullet> c \<bullet> d"
    2.44  
    2.45 -  exI: "\<lambda>x. x" "\<Lambda> P x (c: _) (h: _). h"
    2.46 +  exI: "\<lambda>x. x" "\<^bold>\<lambda>P x (c: _) (h: _). h"
    2.47  
    2.48    exE (P, Q): "\<lambda>p pq. let (x, y) = p in pq x y"
    2.49 -    "\<Lambda> (c: _) (d: _) P Q (e: _) p (h: _) pq. exE_realizer \<cdot> P \<cdot> p \<cdot> Q \<cdot> pq \<bullet> c \<bullet> e \<bullet> d \<bullet> h"
    2.50 +    "\<^bold>\<lambda>(c: _) (d: _) P Q (e: _) p (h: _) pq. exE_realizer \<cdot> P \<cdot> p \<cdot> Q \<cdot> pq \<bullet> c \<bullet> e \<bullet> d \<bullet> h"
    2.51  
    2.52    exE (P): "Null"
    2.53 -    "\<Lambda> (c: _) P Q (d: _) p. exE_realizer' \<cdot> _ \<cdot> _ \<cdot> _ \<bullet> c \<bullet> d"
    2.54 +    "\<^bold>\<lambda>(c: _) P Q (d: _) p. exE_realizer' \<cdot> _ \<cdot> _ \<cdot> _ \<bullet> c \<bullet> d"
    2.55  
    2.56    exE (Q): "\<lambda>x pq. pq x"
    2.57 -    "\<Lambda> (c: _) P Q (d: _) x (h1: _) pq (h2: _). h2 \<cdot> x \<bullet> h1"
    2.58 +    "\<^bold>\<lambda>(c: _) P Q (d: _) x (h1: _) pq (h2: _). h2 \<cdot> x \<bullet> h1"
    2.59  
    2.60    exE: "Null"
    2.61 -    "\<Lambda> P Q (c: _) x (h1: _) (h2: _). h2 \<cdot> x \<bullet> h1"
    2.62 +    "\<^bold>\<lambda>P Q (c: _) x (h1: _) (h2: _). h2 \<cdot> x \<bullet> h1"
    2.63  
    2.64    conjI (P, Q): "Pair"
    2.65 -    "\<Lambda> (c: _) (d: _) P Q p (h: _) q. conjI_realizer \<cdot> P \<cdot> p \<cdot> Q \<cdot> q \<bullet> c \<bullet> d \<bullet> h"
    2.66 +    "\<^bold>\<lambda>(c: _) (d: _) P Q p (h: _) q. conjI_realizer \<cdot> P \<cdot> p \<cdot> Q \<cdot> q \<bullet> c \<bullet> d \<bullet> h"
    2.67  
    2.68    conjI (P): "\<lambda>p. p"
    2.69 -    "\<Lambda> (c: _) P Q p. conjI \<cdot> _ \<cdot> _"
    2.70 +    "\<^bold>\<lambda>(c: _) P Q p. conjI \<cdot> _ \<cdot> _"
    2.71  
    2.72    conjI (Q): "\<lambda>q. q"
    2.73 -    "\<Lambda> (c: _) P Q (h: _) q. conjI \<cdot> _ \<cdot> _ \<bullet> h"
    2.74 +    "\<^bold>\<lambda>(c: _) P Q (h: _) q. conjI \<cdot> _ \<cdot> _ \<bullet> h"
    2.75  
    2.76    conjI: "Null" "conjI"
    2.77  
    2.78    conjunct1 (P, Q): "fst"
    2.79 -    "\<Lambda> (c: _) (d: _) P Q pq. conjunct1 \<cdot> _ \<cdot> _"
    2.80 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq. conjunct1 \<cdot> _ \<cdot> _"
    2.81  
    2.82    conjunct1 (P): "\<lambda>p. p"
    2.83 -    "\<Lambda> (c: _) P Q p. conjunct1 \<cdot> _ \<cdot> _"
    2.84 +    "\<^bold>\<lambda>(c: _) P Q p. conjunct1 \<cdot> _ \<cdot> _"
    2.85  
    2.86    conjunct1 (Q): "Null"
    2.87 -    "\<Lambda> (c: _) P Q q. conjunct1 \<cdot> _ \<cdot> _"
    2.88 +    "\<^bold>\<lambda>(c: _) P Q q. conjunct1 \<cdot> _ \<cdot> _"
    2.89  
    2.90    conjunct1: "Null" "conjunct1"
    2.91  
    2.92    conjunct2 (P, Q): "snd"
    2.93 -    "\<Lambda> (c: _) (d: _) P Q pq. conjunct2 \<cdot> _ \<cdot> _"
    2.94 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq. conjunct2 \<cdot> _ \<cdot> _"
    2.95  
    2.96    conjunct2 (P): "Null"
    2.97 -    "\<Lambda> (c: _) P Q p. conjunct2 \<cdot> _ \<cdot> _"
    2.98 +    "\<^bold>\<lambda>(c: _) P Q p. conjunct2 \<cdot> _ \<cdot> _"
    2.99  
   2.100    conjunct2 (Q): "\<lambda>p. p"
   2.101 -    "\<Lambda> (c: _) P Q p. conjunct2 \<cdot> _ \<cdot> _"
   2.102 +    "\<^bold>\<lambda>(c: _) P Q p. conjunct2 \<cdot> _ \<cdot> _"
   2.103  
   2.104    conjunct2: "Null" "conjunct2"
   2.105  
   2.106    disjI1 (P, Q): "Inl"
   2.107 -    "\<Lambda> (c: _) (d: _) P Q p. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sum.cases_1 \<cdot> P \<cdot> _ \<cdot> p \<bullet> arity_type_bool \<bullet> c \<bullet> d)"
   2.108 +    "\<^bold>\<lambda>(c: _) (d: _) P Q p. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sum.cases_1 \<cdot> P \<cdot> _ \<cdot> p \<bullet> arity_type_bool \<bullet> c \<bullet> d)"
   2.109  
   2.110    disjI1 (P): "Some"
   2.111 -    "\<Lambda> (c: _) P Q p. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_2 \<cdot> _ \<cdot> P \<cdot> p \<bullet> arity_type_bool \<bullet> c)"
   2.112 +    "\<^bold>\<lambda>(c: _) P Q p. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_2 \<cdot> _ \<cdot> P \<cdot> p \<bullet> arity_type_bool \<bullet> c)"
   2.113  
   2.114    disjI1 (Q): "None"
   2.115 -    "\<Lambda> (c: _) P Q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool \<bullet> c)"
   2.116 +    "\<^bold>\<lambda>(c: _) P Q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool \<bullet> c)"
   2.117  
   2.118    disjI1: "Left"
   2.119 -    "\<Lambda> P Q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sumbool.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool)"
   2.120 +    "\<^bold>\<lambda>P Q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sumbool.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool)"
   2.121  
   2.122    disjI2 (P, Q): "Inr"
   2.123 -    "\<Lambda> (d: _) (c: _) Q P q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sum.cases_2 \<cdot> _ \<cdot> Q \<cdot> q \<bullet> arity_type_bool \<bullet> c \<bullet> d)"
   2.124 +    "\<^bold>\<lambda>(d: _) (c: _) Q P q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sum.cases_2 \<cdot> _ \<cdot> Q \<cdot> q \<bullet> arity_type_bool \<bullet> c \<bullet> d)"
   2.125  
   2.126    disjI2 (P): "None"
   2.127 -    "\<Lambda> (c: _) Q P. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool \<bullet> c)"
   2.128 +    "\<^bold>\<lambda>(c: _) Q P. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_1 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool \<bullet> c)"
   2.129  
   2.130    disjI2 (Q): "Some"
   2.131 -    "\<Lambda> (c: _) Q P q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_2 \<cdot> _ \<cdot> Q \<cdot> q \<bullet> arity_type_bool \<bullet> c)"
   2.132 +    "\<^bold>\<lambda>(c: _) Q P q. iffD2 \<cdot> _ \<cdot> _ \<bullet> (option.cases_2 \<cdot> _ \<cdot> Q \<cdot> q \<bullet> arity_type_bool \<bullet> c)"
   2.133  
   2.134    disjI2: "Right"
   2.135 -    "\<Lambda> Q P. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sumbool.cases_2 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool)"
   2.136 +    "\<^bold>\<lambda>Q P. iffD2 \<cdot> _ \<cdot> _ \<bullet> (sumbool.cases_2 \<cdot> _ \<cdot> _ \<bullet> arity_type_bool)"
   2.137  
   2.138    disjE (P, Q, R): "\<lambda>pq pr qr.
   2.139       (case pq of Inl p \<Rightarrow> pr p | Inr q \<Rightarrow> qr q)"
   2.140 -    "\<Lambda> (c: _) (d: _) (e: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.141 +    "\<^bold>\<lambda>(c: _) (d: _) (e: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.142         disjE_realizer \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> R \<cdot> pr \<cdot> qr \<bullet> c \<bullet> d \<bullet> e \<bullet> h1 \<bullet> h2"
   2.143  
   2.144    disjE (Q, R): "\<lambda>pq pr qr.
   2.145       (case pq of None \<Rightarrow> pr | Some q \<Rightarrow> qr q)"
   2.146 -    "\<Lambda> (c: _) (d: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.147 +    "\<^bold>\<lambda>(c: _) (d: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.148         disjE_realizer2 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> R \<cdot> pr \<cdot> qr \<bullet> c \<bullet> d \<bullet> h1 \<bullet> h2"
   2.149  
   2.150    disjE (P, R): "\<lambda>pq pr qr.
   2.151       (case pq of None \<Rightarrow> qr | Some p \<Rightarrow> pr p)"
   2.152 -    "\<Lambda> (c: _) (d: _) P Q R pq (h1: _) pr (h2: _) qr (h3: _).
   2.153 +    "\<^bold>\<lambda>(c: _) (d: _) P Q R pq (h1: _) pr (h2: _) qr (h3: _).
   2.154         disjE_realizer2 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> R \<cdot> qr \<cdot> pr \<bullet> c \<bullet> d \<bullet> h1 \<bullet> h3 \<bullet> h2"
   2.155  
   2.156    disjE (R): "\<lambda>pq pr qr.
   2.157       (case pq of Left \<Rightarrow> pr | Right \<Rightarrow> qr)"
   2.158 -    "\<Lambda> (c: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.159 +    "\<^bold>\<lambda>(c: _) P Q R pq (h1: _) pr (h2: _) qr.
   2.160         disjE_realizer3 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> R \<cdot> pr \<cdot> qr \<bullet> c \<bullet> h1 \<bullet> h2"
   2.161  
   2.162    disjE (P, Q): "Null"
   2.163 -    "\<Lambda> (c: _) (d: _) P Q R pq. disjE_realizer \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> c \<bullet> d \<bullet> arity_type_bool"
   2.164 +    "\<^bold>\<lambda>(c: _) (d: _) P Q R pq. disjE_realizer \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> c \<bullet> d \<bullet> arity_type_bool"
   2.165  
   2.166    disjE (Q): "Null"
   2.167 -    "\<Lambda> (c: _) P Q R pq. disjE_realizer2 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> c \<bullet> arity_type_bool"
   2.168 +    "\<^bold>\<lambda>(c: _) P Q R pq. disjE_realizer2 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> c \<bullet> arity_type_bool"
   2.169  
   2.170    disjE (P): "Null"
   2.171 -    "\<Lambda> (c: _) P Q R pq (h1: _) (h2: _) (h3: _).
   2.172 +    "\<^bold>\<lambda>(c: _) P Q R pq (h1: _) (h2: _) (h3: _).
   2.173         disjE_realizer2 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> c \<bullet> arity_type_bool \<bullet> h1 \<bullet> h3 \<bullet> h2"
   2.174  
   2.175    disjE: "Null"
   2.176 -    "\<Lambda> P Q R pq. disjE_realizer3 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> arity_type_bool"
   2.177 +    "\<^bold>\<lambda>P Q R pq. disjE_realizer3 \<cdot> _ \<cdot> _ \<cdot> pq \<cdot> (\<lambda>x. R) \<cdot> _ \<cdot> _ \<bullet> arity_type_bool"
   2.178  
   2.179    FalseE (P): "default"
   2.180 -    "\<Lambda> (c: _) P. FalseE \<cdot> _"
   2.181 +    "\<^bold>\<lambda>(c: _) P. FalseE \<cdot> _"
   2.182  
   2.183    FalseE: "Null" "FalseE"
   2.184  
   2.185    notI (P): "Null"
   2.186 -    "\<Lambda> (c: _) P (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. notI \<cdot> _ \<bullet> (h \<cdot> x))"
   2.187 +    "\<^bold>\<lambda>(c: _) P (h: _). allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. notI \<cdot> _ \<bullet> (h \<cdot> x))"
   2.188  
   2.189    notI: "Null" "notI"
   2.190  
   2.191    notE (P, R): "\<lambda>p. default"
   2.192 -    "\<Lambda> (c: _) (d: _) P R (h: _) p. notE \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
   2.193 +    "\<^bold>\<lambda>(c: _) (d: _) P R (h: _) p. notE \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
   2.194  
   2.195    notE (P): "Null"
   2.196 -    "\<Lambda> (c: _) P R (h: _) p. notE \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
   2.197 +    "\<^bold>\<lambda>(c: _) P R (h: _) p. notE \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> c \<bullet> h)"
   2.198  
   2.199    notE (R): "default"
   2.200 -    "\<Lambda> (c: _) P R. notE \<cdot> _ \<cdot> _"
   2.201 +    "\<^bold>\<lambda>(c: _) P R. notE \<cdot> _ \<cdot> _"
   2.202  
   2.203    notE: "Null" "notE"
   2.204  
   2.205    subst (P): "\<lambda>s t ps. ps"
   2.206 -    "\<Lambda> (c: _) s t P (d: _) (h: _) ps. subst \<cdot> s \<cdot> t \<cdot> P ps \<bullet> d \<bullet> h"
   2.207 +    "\<^bold>\<lambda>(c: _) s t P (d: _) (h: _) ps. subst \<cdot> s \<cdot> t \<cdot> P ps \<bullet> d \<bullet> h"
   2.208  
   2.209    subst: "Null" "subst"
   2.210  
   2.211    iffD1 (P, Q): "fst"
   2.212 -    "\<Lambda> (d: _) (c: _) Q P pq (h: _) p.
   2.213 +    "\<^bold>\<lambda>(d: _) (c: _) Q P pq (h: _) p.
   2.214         mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> p \<bullet> d \<bullet> (conjunct1 \<cdot> _ \<cdot> _ \<bullet> h))"
   2.215  
   2.216    iffD1 (P): "\<lambda>p. p"
   2.217 -    "\<Lambda> (c: _) Q P p (h: _). mp \<cdot> _ \<cdot> _ \<bullet> (conjunct1 \<cdot> _ \<cdot> _ \<bullet> h)"
   2.218 +    "\<^bold>\<lambda>(c: _) Q P p (h: _). mp \<cdot> _ \<cdot> _ \<bullet> (conjunct1 \<cdot> _ \<cdot> _ \<bullet> h)"
   2.219  
   2.220    iffD1 (Q): "Null"
   2.221 -    "\<Lambda> (c: _) Q P q1 (h: _) q2.
   2.222 +    "\<^bold>\<lambda>(c: _) Q P q1 (h: _) q2.
   2.223         mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> q2 \<bullet> c \<bullet> (conjunct1 \<cdot> _ \<cdot> _ \<bullet> h))"
   2.224  
   2.225    iffD1: "Null" "iffD1"
   2.226  
   2.227    iffD2 (P, Q): "snd"
   2.228 -    "\<Lambda> (c: _) (d: _) P Q pq (h: _) q.
   2.229 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq (h: _) q.
   2.230         mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> q \<bullet> d \<bullet> (conjunct2 \<cdot> _ \<cdot> _ \<bullet> h))"
   2.231  
   2.232    iffD2 (P): "\<lambda>p. p"
   2.233 -    "\<Lambda> (c: _) P Q p (h: _). mp \<cdot> _ \<cdot> _ \<bullet> (conjunct2 \<cdot> _ \<cdot> _ \<bullet> h)"
   2.234 +    "\<^bold>\<lambda>(c: _) P Q p (h: _). mp \<cdot> _ \<cdot> _ \<bullet> (conjunct2 \<cdot> _ \<cdot> _ \<bullet> h)"
   2.235  
   2.236    iffD2 (Q): "Null"
   2.237 -    "\<Lambda> (c: _) P Q q1 (h: _) q2.
   2.238 +    "\<^bold>\<lambda>(c: _) P Q q1 (h: _) q2.
   2.239         mp \<cdot> _ \<cdot> _ \<bullet> (spec \<cdot> _ \<cdot> q2 \<bullet> c \<bullet> (conjunct2 \<cdot> _ \<cdot> _ \<bullet> h))"
   2.240  
   2.241    iffD2: "Null" "iffD2"
   2.242  
   2.243    iffI (P, Q): "Pair"
   2.244 -    "\<Lambda> (c: _) (d: _) P Q pq (h1 : _) qp (h2 : _). conjI_realizer \<cdot>
   2.245 +    "\<^bold>\<lambda>(c: _) (d: _) P Q pq (h1 : _) qp (h2 : _). conjI_realizer \<cdot>
   2.246         (\<lambda>pq. \<forall>x. P x \<longrightarrow> Q (pq x)) \<cdot> pq \<cdot>
   2.247         (\<lambda>qp. \<forall>x. Q x \<longrightarrow> P (qp x)) \<cdot> qp \<bullet>
   2.248         (arity_type_fun \<bullet> c \<bullet> d) \<bullet>
   2.249         (arity_type_fun \<bullet> d \<bullet> c) \<bullet>
   2.250 -       (allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h1 \<cdot> x))) \<bullet>
   2.251 -       (allI \<cdot> _ \<bullet> d \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h2 \<cdot> x)))"
   2.252 +       (allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h1 \<cdot> x))) \<bullet>
   2.253 +       (allI \<cdot> _ \<bullet> d \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h2 \<cdot> x)))"
   2.254  
   2.255    iffI (P): "\<lambda>p. p"
   2.256 -    "\<Lambda> (c: _) P Q (h1 : _) p (h2 : _). conjI \<cdot> _ \<cdot> _ \<bullet>
   2.257 -       (allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h1 \<cdot> x))) \<bullet>
   2.258 +    "\<^bold>\<lambda>(c: _) P Q (h1 : _) p (h2 : _). conjI \<cdot> _ \<cdot> _ \<bullet>
   2.259 +       (allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h1 \<cdot> x))) \<bullet>
   2.260         (impI \<cdot> _ \<cdot> _ \<bullet> h2)"
   2.261  
   2.262    iffI (Q): "\<lambda>q. q"
   2.263 -    "\<Lambda> (c: _) P Q q (h1 : _) (h2 : _). conjI \<cdot> _ \<cdot> _ \<bullet>
   2.264 +    "\<^bold>\<lambda>(c: _) P Q q (h1 : _) (h2 : _). conjI \<cdot> _ \<cdot> _ \<bullet>
   2.265         (impI \<cdot> _ \<cdot> _ \<bullet> h1) \<bullet>
   2.266 -       (allI \<cdot> _ \<bullet> c \<bullet> (\<Lambda> x. impI \<cdot> _ \<cdot> _ \<bullet> (h2 \<cdot> x)))"
   2.267 +       (allI \<cdot> _ \<bullet> c \<bullet> (\<^bold>\<lambda>x. impI \<cdot> _ \<cdot> _ \<bullet> (h2 \<cdot> x)))"
   2.268  
   2.269    iffI: "Null" "iffI"
   2.270  
     3.1 --- a/src/Pure/Proof/proof_syntax.ML	Sun Jun 30 09:26:00 2013 +0200
     3.2 +++ b/src/Pure/Proof/proof_syntax.ML	Sun Jun 30 11:30:16 2013 +0200
     3.3 @@ -64,11 +64,9 @@
     3.4         ("", idtT --> paramsT, Delimfix "_"),
     3.5         ("", paramT --> paramsT, Delimfix "_")]
     3.6    |> Sign.add_modesyntax_i (Symbol.xsymbolsN, true)
     3.7 -      [("_Lam", [paramsT, proofT] ---> proofT, Mixfix ("(1\\<Lambda>_./ _)", [0, 3], 3)),
     3.8 +      [("_Lam", [paramsT, proofT] ---> proofT, Mixfix ("(1\\<^bold>\\<lambda>_./ _)", [0, 3], 3)),
     3.9         (Lexicon.mark_const "Appt", [proofT, aT] ---> proofT, Mixfix ("(1_ \\<cdot>/ _)", [4, 5], 4)),
    3.10         (Lexicon.mark_const "AppP", [proofT, proofT] ---> proofT, Mixfix ("(1_ \\<bullet>/ _)", [4, 5], 4))]
    3.11 -  |> Sign.add_modesyntax_i ("latex", false)
    3.12 -      [("_Lam", [paramsT, proofT] ---> proofT, Mixfix ("(1\\<^bold>\\<lambda>_./ _)", [0, 3], 3))]
    3.13    |> Sign.add_trrules (map Syntax.Parse_Print_Rule
    3.14        [(Ast.mk_appl (Ast.Constant "_Lam")
    3.15            [Ast.mk_appl (Ast.Constant "_Lam0")