Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redefine Bifunctor #1952

Merged
merged 10 commits into from
May 7, 2024
16 changes: 10 additions & 6 deletions theories/Algebra/AbSES/Ext.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Defined.

(** ** The bifunctor [ab_ext] *)

Definition ab_ext `{Univalence} (B A : AbGroup@{u}) : AbGroup.
Definition ab_ext `{Univalence} (B : AbGroup@{u}^op) (A : AbGroup@{u}) : AbGroup.
Proof.
snrapply (Build_AbGroup (grp_ext B A)).
intros E F.
Expand Down Expand Up @@ -127,10 +127,14 @@ Defined.
Global Instance is1bifunctor_abext `{Univalence}
: Is1Bifunctor (A:=AbGroup^op) ab_ext.
Proof.
snrapply Build_Is1Bifunctor.
snrapply Build_Is1Bifunctor'.
1,2: exact _.
intros A B.
exact (bifunctor_isbifunctor (Ext : AbGroup^op -> AbGroup -> pType)).
intros A B f C D g.
intros x.
strip_truncations; cbn.
pose proof (bifunctor_coh (Ext : AbGroup^op -> AbGroup -> pType) f g (tr x)) as X.
cbn in X.
exact X.
Defined.

(** We can push out a fixed extension while letting the map vary, and this defines a group homomorphism. *)
Expand All @@ -139,10 +143,10 @@ Definition abses_pushout_ext `{Univalence}
: GroupHomomorphism (ab_hom A G) (ab_ext B G).
Proof.
snrapply Build_GroupHomomorphism.
1: exact (fun f => fmap01 (A:=AbGroup^op) Ext' _ f (tr E)).
1: exact (fun f => fmap (Ext' (_ : AbGroup^op)) f (tr E)).
intros f g; cbn.
nrapply (ap tr).
exact (baer_sum_distributive_pushouts f g).
exact (baer_sum_distributive_pushouts (E:=E) f g).
Defined.

(** ** Extensions ending in a projective are trivial *)
Expand Down
3 changes: 2 additions & 1 deletion theories/Algebra/AbSES/SixTerm.v
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
destruct g as [g k].
exists g.
apply path_sigma_hprop; cbn.
exact k^.
elim k^.
by apply equiv_path_grouphomomorphism.
Alizter marked this conversation as resolved.
Show resolved Hide resolved
Defined.

(** *** Exactness of [ab_hom A G -> Ext1 B G -> Ext1 E G]. *)
Expand Down Expand Up @@ -218,7 +219,7 @@
Defined.

(** The main result of this section. *)
Theorem ext_cyclic_ab@{u v w | u < v, v < w} `{Univalence}

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / build (supported)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963 < HoTT.Algebra.AbSES.SixTerm.8962 because HoTT.Algebra.AbSES.SixTerm.8962 < HoTT.Algebra.AbSES.SixTerm.8963. Command exited with non-zero status 1

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / build (latest)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963 < HoTT.Algebra.AbSES.SixTerm.8962 because HoTT.Algebra.AbSES.SixTerm.8962 < HoTT.Algebra.AbSES.SixTerm.8963. Command exited with non-zero status 1

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / build (dev, --warnings)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963 < HoTT.Algebra.AbSES.SixTerm.8962 because HoTT.Algebra.AbSES.SixTerm.8962 < HoTT.Algebra.AbSES.SixTerm.8963. Command exited with non-zero status 1

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / opam-build (supported, ubuntu-latest)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / opam-build (8.18, ubuntu-latest)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / opam-build (latest, ubuntu-latest)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963

Check failure on line 222 in theories/Algebra/AbSES/SixTerm.v

View workflow job for this annotation

GitHub Actions / opam-build (dev, ubuntu-latest)

Universe inconsistency. Cannot enforce HoTT.Algebra.AbSES.SixTerm.8963
(n : nat) `{emb : IsEmbedding (Z1_mul_nat n)} {A : AbGroup@{u}}
: ab_cokernel@{v w} (ab_mul_nat (A:=A) n)
$<~> ab_ext@{u v} (cyclic'@{u v} n) A.
Expand Down
5 changes: 2 additions & 3 deletions theories/Homotopy/Join/Core.v
Original file line number Diff line number Diff line change
Expand Up @@ -562,16 +562,15 @@ Section FunctorJoin.

Global Instance is0bifunctor_join : Is0Bifunctor Join.
Proof.
rapply Build_Is0Bifunctor'.
rapply Build_Is0Functor.
Alizter marked this conversation as resolved.
Show resolved Hide resolved
apply Build_Is0Functor.
intros A B [f g].
exact (functor_join f g).
Defined.

Global Instance is1bifunctor_join : Is1Bifunctor Join.
Proof.
snrapply Build_Is1Bifunctor'.
nrapply Build_Is1Functor.
snrapply Build_Is1Functor.
- intros A B f g [p q].
exact (functor2_join p q).
- intros A; exact functor_join_idmap.
Expand Down
15 changes: 1 addition & 14 deletions theories/Homotopy/Join/JoinAssoc.v
Original file line number Diff line number Diff line change
Expand Up @@ -266,20 +266,7 @@ Proof.
- intros A B C.
apply join_assoc.
- intros [[A B] C] [[A' B'] C'] [[f g] h]; cbn.
(* This is awkward because Monoidal.v works with a tensor that is separately a functor in each variable. *)
intro x.
rhs_V nrapply functor_join_compose.
rhs_V nrapply functor2_join.
2: reflexivity.
2: nrapply functor_join_compose.
cbn.
rhs_V nrapply join_assoc_nat; cbn.
apply ap.
lhs_V nrapply functor_join_compose.
lhs_V nrapply functor_join_compose.
apply functor2_join.
1: reflexivity.
symmetry; nrapply functor_join_compose.
apply join_assoc_nat.
Alizter marked this conversation as resolved.
Show resolved Hide resolved
Defined.

(** ** The Triangle Law *)
Expand Down
2 changes: 0 additions & 2 deletions theories/Homotopy/Smash.v
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,13 @@ Defined.

Global Instance is0bifunctor_smash : Is0Bifunctor Smash.
Proof.
rapply Build_Is0Bifunctor'.
nrapply Build_Is0Functor.
intros [X Y] [A B] [f g].
exact (functor_smash f g).
Defined.

Global Instance is1bifunctor_smash : Is1Bifunctor Smash.
Proof.
snrapply Build_Is1Bifunctor'.
snrapply Build_Is1Functor.
- intros [X Y] [A B] [f g] [h i] [p q].
exact (functor_smash_homotopic p q).
Expand Down
Loading
Loading