Skip to content

Commit

Permalink
fix: add more fields/missing CHANGELOG entries!
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmckinna committed Feb 2, 2025
1 parent 0997c71 commit 86dab2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ Additions to existing modules
strictlyInverseʳ : StrictlyInverseʳ _≈₁_ f section
```

* In `Function.Structures.IsLeftInverse`:
```agda
surjective : Surjective _≈₁_ _≈₂_ to
```

* In `Function.Structures.IsRightInverse`:
```agda
injective : Injective _≈₁_ _≈₂_ to
isInjection : IsInjection to
```

* In `Function.Structures.IsSurjection`:
```agda
section : B → A
Expand Down
4 changes: 3 additions & 1 deletion src/Function/Structures.agda
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ record IsLeftInverse (to : A → B) (from : B → A) : Set (a ⊔ b ⊔ ℓ₁
strictlyInverseˡ : StrictlyInverseˡ _≈₂_ to from
strictlyInverseˡ _ = inverseˡ Eq₁.refl

surjective = inverseˡ⇒surjective Eq₁.setoid Eq₂.setoid inverseˡ

isSurjection : IsSurjection to
isSurjection = record
{ isCongruent = isCongruent
; surjective = inverseˡ⇒surjective Eq₁.setoid Eq₂.setoid inverseˡ
; surjective = surjective
}


Expand Down

0 comments on commit 86dab2d

Please sign in to comment.