Skip to content

[ fix #1694 ] Add ordered algebraic structures. #1752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 2, 2022
Merged
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
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,13 @@ New modules
Algebra.Morphism.Construct.Identity
```

* Ordered algebraic structures (pomonoids, posemigroups, etc.)
```
Algebra.Ordered
Algebra.Ordered.Bundles
Algebra.Ordered.Structures
```

* 'Optimised' tail-recursive exponentiation properties:
```
Algebra.Properties.Semiring.Exp.TailRecursiveOptimised
Expand Down Expand Up @@ -1549,10 +1556,18 @@ Other minor changes

* Added new proofs to `Relation.Binary.Lattice.Properties.{Join,Meet}Semilattice`:
```agda
isPosemigroup : IsPosemigroup _≈_ _≤_ _∨_
posemigroup : Posemigroup c ℓ₁ ℓ₂
≈-dec⇒≤-dec : Decidable _≈_ → Decidable _≤_
≈-dec⇒isDecPartialOrder : Decidable _≈_ → IsDecPartialOrder _≈_ _≤_
```

* Added new proofs to `Relation.Binary.Lattice.Properties.Bounded{Join,Meet}Semilattice`:
```agda
isCommutativePomonoid : IsCommutativePomonoid _≈_ _≤_ _∨_ ⊥
commutativePomonoid : CommutativePomonoid c ℓ₁ ℓ₂
```

* Added new proofs to `Relation.Binary.Properties.Poset`:
```agda
≤-dec⇒≈-dec : Decidable _≤_ → Decidable _≈_
Expand Down Expand Up @@ -1649,6 +1664,14 @@ Other minor changes
```
Cotransitive _#_ = ∀ {x y} → x # y → ∀ z → (x # z) ⊎ (z # y)
Tight _≈_ _#_ = ∀ x y → (¬ x # y → x ≈ y) × (x ≈ y → ¬ x # y)

Monotonic₁ _≤_ _⊑_ f = f Preserves _≤_ ⟶ _⊑_
Antitonic₁ _≤_ _⊑_ f = f Preserves (flip _≤_) ⟶ _⊑_
Monotonic₂ _≤_ _⊑_ _≼_ ∙ = ∙ Preserves₂ _≤_ ⟶ _⊑_ ⟶ _≼_
MonotonicAntitonic _≤_ _⊑_ _≼_ ∙ = ∙ Preserves₂ _≤_ ⟶ (flip _⊑_) ⟶ _≼_
AntitonicMonotonic _≤_ _⊑_ _≼_ ∙ = ∙ Preserves₂ (flip _≤_) ⟶ _⊑_ ⟶ _≼_
Antitonic₂ _≤_ _⊑_ _≼_ ∙ = ∙ Preserves₂ (flip _≤_) ⟶ (flip _⊑_) ⟶ _≼_
Adjoint _≤_ _⊑_ f g = ∀ {x y} → (f x ⊑ y → x ≤ g y) × (x ≤ g y → f x ⊑ y)
```

* Added new definitions in `Relation.Binary.Bundles`:
Expand All @@ -1666,6 +1689,9 @@ Other minor changes
sym⇒¬-sym : Symmetric _∼_ → Symmetric _≁_
cotrans⇒¬-trans : Cotransitive _∼_ → Transitive _≁_
irrefl⇒¬-refl : Reflexive _≈_ → Irreflexive _≈_ _∼_ → Reflexive _≁_
mono₂⇒cong₂ : Symmetric ≈₁ → ≈₁ ⇒ ≤₁ → Antisymmetric ≈₂ ≤₂ → ∀ {f} →
f Preserves₂ ≤₁ ⟶ ≤₁ ⟶ ≤₂ →
f Preserves₂ ≈₁ ⟶ ≈₁ ⟶ ≈₂
```

* Added new operations in `Relation.Binary.PropositionalEquality.Properties`:
Expand Down Expand Up @@ -1945,4 +1971,4 @@ This is a full list of proofs that have changed form to use irrelevant instance
```agda
Inverse⇒Injection : Inverse S T → Injection S T
↔⇒↣ : A ↔ B → A ↣ B
```
```
14 changes: 14 additions & 0 deletions src/Algebra/Ordered.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
------------------------------------------------------------------------
-- The Agda standard library
--
-- Definitions of ordered algebraic structures like promonoids and
-- posemigroups (packed in records together with sets, orders,
-- operations, etc.)
------------------------------------------------------------------------

{-# OPTIONS --without-K --safe #-}

module Algebra.Ordered where

open import Algebra.Ordered.Structures public
open import Algebra.Ordered.Bundles public
Loading