From ed41980ed5cee12d7c5eea2e40627e5a390a83f8 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Wed, 27 May 2020 21:31:57 +0200 Subject: minor --- hott/Eckmann_Hilton.thy | 10 ++-------- hott/Identity.thy | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/hott/Eckmann_Hilton.thy b/hott/Eckmann_Hilton.thy index 09b2c8f..8320256 100644 --- a/hott/Eckmann_Hilton.thy +++ b/hott/Eckmann_Hilton.thy @@ -31,8 +31,6 @@ Lemma (derive) left_whisker: qed done -text \Some notation, or the proofs start getting unwieldy.\ - definition right_whisker_i (infix "\\<^sub>r\<^bsub>_\<^esub>" 121) where [implicit]: "\ \\<^sub>r\<^bsub>a\<^esub> r \ right_whisker ? a ? ? ? ? r \" @@ -84,9 +82,6 @@ begin show "\: p = q \ .. = q \ s" by (rule right_whisker) qed typechk - thm horiz_pathcomp_def (* horiz_pathcomp ?\ ?\ \ ?\ \\<^sub>r\<^bsub>a\<^esub> r \ (q \\<^sub>l\<^bsub>c\<^esub> ?\) *) - thm horiz_pathcomp'_def (* horiz_pathcomp' ?\ ?\ \ p \\<^sub>l\<^bsub>c\<^esub> ?\ \ (?\ \\<^sub>r\<^bsub>a\<^esub> s) *) - abbreviation horiz_pathcomp_abbr :: \o \ o \ o\ (infix "\" 121) where "\ \ \ \ horiz_pathcomp \ \" @@ -99,7 +94,7 @@ begin unfolding horiz_pathcomp_def horiz_pathcomp'_def apply (eq \, eq \) focus vars p apply (eq p) - \ vars _ q by (eq q) (reduce; refl) + focus vars _ q by (eq q) (reduce; refl) done done @@ -118,7 +113,6 @@ Lemma \2_alt_def: section \Eckmann-Hilton\ - context fixes A a assumes "A: U i" "a: A" @@ -183,7 +177,7 @@ begin using assms[unfolded \2_alt_def] proof - have "\ \ \ = \ \ \" by (rule pathcomp_eq_horiz_pathcomp) - also have ".. = \ \' \" by (rule \2.horiz_pathcomp_eq_horiz_pathcomp'[simplified pathcomp_comp]) + also have ".. = \ \' \" by (rule \2.horiz_pathcomp_eq_horiz_pathcomp'[simplified comps]) also have ".. = \ \ \" by (rule pathcomp_eq_horiz_pathcomp') finally show "\ \ \ = \ \ \" by this (reduce add: \2.horiz_pathcomp_def \2.horiz_pathcomp'_def) qed diff --git a/hott/Identity.thy b/hott/Identity.thy index d664fbc..64aea5a 100644 --- a/hott/Identity.thy +++ b/hott/Identity.thy @@ -145,6 +145,7 @@ Lemma (derive) pathcomp_refl: definition [implicit]: "ru p \ pathcomp_refl ? ? ? p" definition [implicit]: "lu p \ refl_pathcomp ? ? ? p" + translations "CONST ru p" \ "CONST pathcomp_refl A x y p" "CONST lu p" \ "CONST refl_pathcomp A x y p" -- cgit v1.2.3