From 55c148073df8de5f0cf4c45db23d2e3da7f4f093 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 20 Sep 2018 21:35:51 +0200 Subject: Derive can prove pathcomp_comp. Fix typo. --- Equality.thy | 16 +--------------- HoTT_Base.thy | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Equality.thy b/Equality.thy index 05ccbff..851c569 100644 --- a/Equality.thy +++ b/Equality.thy @@ -51,21 +51,7 @@ by (routine add: assms pathcomp_type) lemma pathcomp_comp: assumes "A: U i" and "a: A" shows "(refl a) \ (refl a) \ refl a" -unfolding pathcomp_def proof compute - show "(ind\<^sub>= (\_. \<^bold>\q. ind\<^sub>= (\x. refl x) q) (refl a))`(refl a) \ refl a" - proof compute - show "\<^bold>\q. (ind\<^sub>= (\x. refl x) q): a =\<^sub>A a \ a =\<^sub>A a" - by (routine add: assms) - - show "(\<^bold>\q. (ind\<^sub>= (\x. refl x) q))`(refl a) \ refl a" - proof compute - show "\q. q: a =\<^sub>A a \ ind\<^sub>= (\x. refl x) q: a =\<^sub>A a" by (routine add: assms) - qed (derive lems: assms) - qed (routine add: assms) - - show "\p. p: a =\<^sub>A a \ ind\<^sub>= (\_. \<^bold>\q. ind\<^sub>= (\x. refl x) q) p: a =\<^sub>A a \ a =\<^sub>A a" - by (routine add: assms) -qed (routine add: assms) +unfolding pathcomp_def by (derive lems: assms) declare pathcomp_type [intro] diff --git a/HoTT_Base.thy b/HoTT_Base.thy index 0b460d9..9e8fee7 100644 --- a/HoTT_Base.thy +++ b/HoTT_Base.thy @@ -53,7 +53,7 @@ text \ Using method @{method rule} with @{thm U_cumulative} is unsafe, if applied blindly it will typically lead to non-termination. One should instead use @{method elim}, or instantiate @{thm U_cumulative} suitably. -@{thm U_cumulative'} is an alternative rule used by the method \lift\ in @{file HoTT_Methods.thy}. +@{thm U_cumulative'} is an alternative rule used by the method \cumulativity\ in @{file HoTT_Methods.thy}. \ -- cgit v1.2.3