# HG changeset patch # User wenzelm # Date 1454870990 -3600 # Node ID e6669fdfe75953ab052f69b7537fd87feabbade5 # Parent 4cfe65cfd369b408bd3b1a3d58f431279cbbeab9 tuned; diff -r 4cfe65cfd369 -r e6669fdfe759 src/Doc/Isar_Ref/Synopsis.thy --- a/src/Doc/Isar_Ref/Synopsis.thy Sun Feb 07 19:43:40 2016 +0100 +++ b/src/Doc/Isar_Ref/Synopsis.thy Sun Feb 07 19:49:50 2016 +0100 @@ -728,41 +728,41 @@ notepad begin - assume r1: "A \ B \ C" \ \simple rule (Horn clause)\ + assume r\<^sub>1: "A \ B \ C" \ \simple rule (Horn clause)\ have A \ \ "prefix of facts via outer sub-proof" then have C - proof (rule r1) + proof (rule r\<^sub>1) show B \ \ "remaining rule premises via inner sub-proof" qed have C - proof (rule r1) + proof (rule r\<^sub>1) show A \ show B \ qed have A and B \ then have C - proof (rule r1) + proof (rule r\<^sub>1) qed have A and B \ - then have C by (rule r1) + then have C by (rule r\<^sub>1) next - assume r2: "A \ (\x. B1 x \ B2 x) \ C" \ \nested rule\ + assume r\<^sub>2: "A \ (\x. B\<^sub>1 x \ B\<^sub>2 x) \ C" \ \nested rule\ have A \ then have C - proof (rule r2) + proof (rule r\<^sub>2) fix x - assume "B1 x" - show "B2 x" \ + assume "B\<^sub>1 x" + show "B\<^sub>2 x" \ qed - txt \The compound rule premise @{prop "\x. B1 x \ B2 x"} is better + txt \The compound rule premise @{prop "\x. B\<^sub>1 x \ B\<^sub>2 x"} is better addressed via @{command fix}~/ @{command assume}~/ @{command show} in the nested proof body.\ end @@ -960,20 +960,20 @@ notepad begin assume r: - "A1 \ A2 \ (* assumptions *) - (\x y. B1 x y \ C1 x y \ R) \ (* case 1 *) - (\x y. B2 x y \ C2 x y \ R) \ (* case 2 *) + "A\<^sub>1 \ A\<^sub>2 \ (* assumptions *) + (\x y. B\<^sub>1 x y \ C\<^sub>1 x y \ R) \ (* case 1 *) + (\x y. B\<^sub>2 x y \ C\<^sub>2 x y \ R) \ (* case 2 *) R (* main conclusion *)" - have A1 and A2 \ + have A\<^sub>1 and A\<^sub>2 \ then have R proof (rule r) fix x y - assume "B1 x y" and "C1 x y" + assume "B\<^sub>1 x y" and "C\<^sub>1 x y" show ?thesis \ next fix x y - assume "B2 x y" and "C2 x y" + assume "B\<^sub>2 x y" and "C\<^sub>2 x y" show ?thesis \ qed end @@ -1003,10 +1003,10 @@ print_statement disjE lemma - assumes A1 and A2 \ \assumptions\ + assumes A\<^sub>1 and A\<^sub>2 \ \assumptions\ obtains - (case1) x y where "B1 x y" and "C1 x y" - | (case2) x y where "B2 x y" and "C2 x y" + (case\<^sub>1) x y where "B\<^sub>1 x y" and "C\<^sub>1 x y" + | (case\<^sub>2) x y where "B\<^sub>2 x y" and "C\<^sub>2 x y" \