Skip to content

Commit ace7b08

Browse files
committed
refactor: lift out inverseʳ
1 parent b35b5a1 commit ace7b08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Function/Consequences.agda

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,11 @@ module Section (≈₂ : Rel B ℓ₂) (surj : Surjective {A = A} ≈₁ ≈₂
143143
cong : Symmetric ≈₂ Transitive ≈₂ Congruent ≈₂ ≈₁ section
144144
cong sym trans = inj ∘ trans (f∘section≡id _) ∘ sym ∘ trans (f∘section≡id _) ∘ sym
145145

146+
inverseʳ : Transitive ≈₂ Inverseʳ ≈₁ ≈₂ f section
147+
inverseʳ trans = inj ∘ trans (f∘section≡id _)
148+
146149
surjective : Transitive ≈₂ Surjective ≈₂ ≈₁ section
147-
surjective trans x = f x , inj ∘ trans (f∘section≡id _)
150+
surjective trans x = f x , inverseʳ trans
148151

149152
bijective : Symmetric ≈₂ Transitive ≈₂ Bijective ≈₂ ≈₁ section
150153
bijective sym trans = injective refl sym trans , surjective trans

0 commit comments

Comments
 (0)