aboutsummaryrefslogtreecommitdiff
path: root/hott/List_HoTT.thy
diff options
context:
space:
mode:
authorJosh Chen2021-06-28 16:06:19 +0100
committerJosh Chen2021-06-28 16:06:19 +0100
commit5655750e12d3459c1237588f8dec3fc883a966b7 (patch)
tree177e050393e23173dded08a741f2a95c56ffdf6a /hott/List_HoTT.thy
parent06f38e1bad882ec85cbfd89b74feef380c8bbd69 (diff)
1. Thm/def statement display. 2. Syntax + computation proof.
Diffstat (limited to 'hott/List_HoTT.thy')
-rw-r--r--hott/List_HoTT.thy4
1 files changed, 2 insertions, 2 deletions
diff --git a/hott/List_HoTT.thy b/hott/List_HoTT.thy
index a48d2ab..dc52320 100644
--- a/hott/List_HoTT.thy
+++ b/hott/List_HoTT.thy
@@ -10,8 +10,8 @@ section \<open>Length\<close>
definition [implicit]: "len \<equiv> ListRec {} Nat 0 (fn _ _ rec. suc rec)"
experiment begin
- Lemma "len [] \<equiv> ?n" by compute
- Lemma "len [0, suc 0, suc (suc 0)] \<equiv> ?n" by compute
+ Lemma "len [] \<equiv> ?n" by (subst comp; typechk?)+
+ Lemma "len [0, suc 0, suc (suc 0)] \<equiv> ?n" by (subst comp; typechk?)+
end