doc-src/TutorialI/Misc/document/let_rewr.tex
changeset 9458 c613cd06d5cf
parent 9145 9f7b8de5bfaf
child 9541 d17c0b34d5c8
equal deleted inserted replaced
9457:966974a7a5b3 9458:c613cd06d5cf
     1 \begin{isabelle}%
     1 \begin{isabelle}%
     2 \isacommand{lemma}~{"}(let~xs~=~[]~in~xs@ys@xs)~=~ys{"}\isanewline
     2 \isacommand{lemma}~{"}(let~xs~=~[]~in~xs@ys@xs)~=~ys{"}\isanewline
     3 \isacommand{apply}(simp~add:~Let\_def)\isacommand{.}%
     3 \isacommand{by}(simp~add:~Let\_def)%
     4 \begin{isamarkuptext}%
     4 \begin{isamarkuptext}%
     5 If, in a particular context, there is no danger of a combinatorial explosion
     5 If, in a particular context, there is no danger of a combinatorial explosion
     6 of nested \isa{let}s one could even add \isa{Let_def} permanently:%
     6 of nested \isa{let}s one could even add \isa{Let_def} permanently:%
     7 \end{isamarkuptext}%
     7 \end{isamarkuptext}%
     8 \isacommand{theorems}~[simp]~=~Let\_def\end{isabelle}%
     8 \isacommand{theorems}~[simp]~=~Let\_def\end{isabelle}%