fact: Definition rel_weq {X Y : UU} (R₁ R₂ : X → Y → hProp) : (R₁ = R₂) ≃ ∏ (x : X) (y : Y), (R₁ x y → R₂ x y) × (R₂ x y → R₁ x y) := (weqonsecfibers _ _ (λ x, weqonsecfibers _ _ (λ y, hProp_weq _ _ ∘ UA_for_HLevels _ _ _)) ∘ weqonsecfibers _ _ (λ x, invweq (weqfunextsec (λ _, hProp) (R₁ x) (R₂ x))) ∘ invweq (weqfunextsec (λ _, Y → hProp) R₁ R₂))%weq.
imports: UniMath.Foundations.All UniMath.MoreFoundations.All UniMath.CategoryTheory.Core.Categories UniMath.CategoryTheory.Core.Functors UniMath.CategoryTheory.Core.Isos UniMath.CategoryTheory.Categories.HSET.Core UniMath.CategoryTheory.TwoSidedDisplayedCats.TwoSidedDispCat UniMath.CategoryTheory.TwoSidedDisplayedCats.Isos UniMath.CategoryTheory.TwoSidedDisplayedCats.Univalence UniMath.CategoryTheory.TwoSidedDisplayedCats.Discrete UniMath.CategoryTheory.TwoSidedDisplayedCats.TwoSidedFibration