Skip to content

Commit

Permalink
encat.v: fixed unit functor problem (by changing the definition of un…
Browse files Browse the repository at this point in the history
…it_map)
  • Loading branch information
ptorrx committed Oct 26, 2023
1 parent d0d2e96 commit d2c5cf3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions theories/encat.v
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ HB.tag Definition Source C := fun (X: HHomSet C) => @source C (@hhom C) X.
(* target functor: D1 -> D0 *)
HB.tag Definition Target C := fun (X: HHomSet C) => @target C (@hhom C) X.
(* unit functor: D0 -> D1 *)
HB.tag Definition UnitF (C: h2fquiver) := fun (x:C) =>
HB.tag Definition UnitF (C: h2fquiver) := fun (x:H2FQuiver.sort C) =>
@HO _ _ x x (@h2unit_map C x).
(*
Definition UnitF C (X: H2FQuiver C) := fun (x: C) =>
Expand Down Expand Up @@ -1207,8 +1207,11 @@ Unset Universe Checking.
HB.mixin Record IsHUPreFunctor T of Cat T & H2Cat T := {
h2u_prefunctor : IsPreFunctor T (HHomSet T) (@UnitF T) }.
(* Unset Universe Checking. *)
HB.structure Definition HUPreFunctor : Set := {C of IsHUPreFunctor C}.
HB.structure Definition HUPreFunctor : Set :=
{C of IsHUPreFunctor C}.
Set Universe Checking.
(* {T of Cat T & H2Cat T & H2FQuiver T &
IsPreFunctor _ (HHomSet _) (@UnitF T)}. *)

(* unit functor. FAILS *)
Unset Universe Checking.
Expand Down

0 comments on commit d2c5cf3

Please sign in to comment.