Skip to content

Commit

Permalink
CAT: use HB.tag for pb_terminal (the wrapper is not autogen, but coul…
Browse files Browse the repository at this point in the history
…d be)
  • Loading branch information
gares committed Oct 6, 2023
1 parent 18281c7 commit 99cb905
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions theories/cat.v
Original file line number Diff line number Diff line change
Expand Up @@ -984,21 +984,22 @@ constructor=> [a b f|a b f|a b c d f g h];
Qed.
End prepullback.

Definition pb_terminal (Q : precat)
HB.tag Definition pb_terminal (Q : precat)
(A B : Q) (c : cospan A B) (s : prepullback c) :
obj (prepullback c) := s.

#[wrapper]
HB.mixin Record prepullback_isTerminal (Q : precat)
(A B : Q) (c : cospan A B)
(s : span A B) of isPrePullback Q A B c s := {
prepullback_terminal :
IsTerminal (prepullback c) (pb_terminal s)
}.
#[short(type="pullback")]
#[short(type="pullback"), verbose]
HB.structure Definition Pullback (Q : precat)
(A B : Q) (c : cospan A B) :=
{s of isPrePullback Q A B c s
& prepullback_isTerminal Q A B c s }.
& IsTerminal (prepullback c) (pb_terminal s) }.

Notation pbsquare u v f g :=
(Pullback _ (Cospan f g) (Span u v)).
Expand Down

0 comments on commit 99cb905

Please sign in to comment.