Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,10 @@ New modules
Algebra.Properties.KleeneAlgebra
```

* Definition of Enumerability
```
Relation.Unary.Enumerable

* Relations on indexed sets
```
Function.Indexed.Bundles
Expand Down Expand Up @@ -2760,6 +2764,11 @@ Other minor changes
⊆-trans : Trans _⊆_ _⊆_ _⊆_
```

* Added new definition to `Relation.Unary.Enumerable` :
```
record IsEnumerable (A : Set a) : Set a
```

* Added new proofs in `Relation.Binary.Properties.Setoid`:
```
≈-isPreorder : IsPreorder _≈_ _≈_
Expand Down
20 changes: 20 additions & 0 deletions src/Relation/Unary/Enumerable.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
------------------------------------------------------------------------
-- The Agda standard library
--
-- Enumerable definition
------------------------------------------------------------------------

{-# OPTIONS --cubical-compatible --safe #-}

module Relation.Unary.Enumerable where

open import Data.Fin using (Fin)
open import Data.Nat using (ℕ)
open import Level using (Level)
open import Function.Bundles using (_↔_)
Comment on lines +11 to +14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
open import Data.Fin using (Fin)
open import Data.Nat using (ℕ)
open import Level using (Level)
open import Function.Bundles using (_↔_)
open import Data.Fin.Base using (Fin)
open import Data.Nat.Base using (ℕ)
open import Level using (Level)
open import Function.Bundles using (_↔_)


record IsEnumerable {a : Level} (A : Set a) : Set a where
field
size : ℕ
enum : Fin size ↔ A