Definition right_cons_zig_zag {C : category} {x z y : C} (f : z --> x) (gs : zig_zag z y) : zig_zag x y := 1 + length_of_zig_zag gs ,, (z ,, (inr f ,, pr2 gs)).
Require Import UniMath.Foundations.All. Require Import UniMath.MoreFoundations.All. Require Import UniMath.CategoryTheory.Core.Categories. Require Import UniMath.CategoryTheory.Core.Isos. Require Import UniMath.CategoryTheory.Core.Functors. Require Import UniMath.CategoryTheory.Groupoids.