aboutsummaryrefslogtreecommitdiff
path: root/hott/More_List.thy
diff options
context:
space:
mode:
authorJosh Chen2020-05-29 19:59:22 +0200
committerJosh Chen2020-05-29 19:59:22 +0200
commit9ed05b8027122d9b5e450b811deb8897ffe78417 (patch)
treee75004fb88d56f1cc00cfa73a4f8738ed04ffe58 /hott/More_List.thy
parent02cfe2a3041273042e188cc0046fd845046e49d2 (diff)
proved a few oopses + minor tweaks
Diffstat (limited to '')
-rw-r--r--hott/More_List.thy12
1 files changed, 1 insertions, 11 deletions
diff --git a/hott/More_List.thy b/hott/More_List.thy
index c3d63f6..a216987 100644
--- a/hott/More_List.thy
+++ b/hott/More_List.thy
@@ -5,24 +5,14 @@ imports
begin
-experiment begin
- Lemma "map (\<lambda>n: Nat. suc n) [0, suc (suc 0), suc 0] \<equiv> ?xs"
- unfolding map_def by (subst comps)+
-end
-
section \<open>Length\<close>
-definition [implicit]:
- "len \<equiv> ListRec ? Nat 0 (\<lambda>_ _ n. suc n)"
+definition [implicit]: "len \<equiv> ListRec ? Nat 0 (\<lambda>_ _ rec. suc rec)"
experiment begin
Lemma "len [] \<equiv> ?n" by (subst comps)+
Lemma "len [0, suc 0, suc (suc 0)] \<equiv> ?n" by (subst comps)+
end
-section \<open>Equality on lists\<close>
-
-(*Hmmm.*)
-
end