faq
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| faq [2012/04/16 22:38] – [PURE vs. HOL] 95.89.150.111 | faq [2013/03/01 10:12] (current) – [FAQ - Ask Questions] 124.207.188.66 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Also, check out the [[http:// | Also, check out the [[http:// | ||
| + | |||
| + | Dear all proof lovers: | ||
| + | I am really new to Isabelle. Recently I hope to learn HOL and try to use automatic therom prover. So I download the Isabelle2013. Now I hope to use Isabelle/ | ||
| + | Here, I am learning the simple example, which is in appendix. Am I right? | ||
| + | Thanks very much. | ||
| + | |||
| + | Appendix: | ||
| + | |||
| + | header {* Finite sequences *} | ||
| + | |||
| + | theory Seq | ||
| + | imports Main | ||
| + | begin | ||
| + | |||
| + | datatype 'a seq = Empty | Seq 'a "' | ||
| + | |||
| + | fun conc :: "' | ||
| + | where | ||
| + | "conc Empty ys = ys" | ||
| + | | "conc (Seq x xs) ys = Seq x (conc xs ys)" | ||
| + | |||
| + | fun reverse :: "' | ||
| + | where | ||
| + | " | ||
| + | | " | ||
| + | |||
| + | lemma conc_empty: "conc xs Empty = xs" | ||
| + | by (induct xs) simp_all | ||
| + | |||
| + | lemma conc_assoc: "conc (conc xs ys) zs = conc xs (conc ys zs)" | ||
| + | by (induct xs) simp_all | ||
| + | |||
| + | lemma reverse_conc: | ||
| + | by (induct xs) (simp_all add: conc_empty conc_assoc) | ||
| + | |||
| + | lemma reverse_reverse: | ||
| + | by (induct xs) (simp_all add: reverse_conc) | ||
| + | |||
| + | end | ||
| + | |||
| ===== Syntax ===== | ===== Syntax ===== | ||
faq.1334608703.txt.gz · Last modified: by 95.89.150.111
