Skip to content

Commit 93a3628

Browse files
authored
Merge branch 'master' into import43
2 parents 92e7ac4 + a22ff7c commit 93a3628

File tree

276 files changed

+1321
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+1321
-832
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,29 @@ Deprecated names
5858
∤∤-respˡ-≈ ↦ ∦-respˡ-≈
5959
∤∤-respʳ-≈ ↦ ∦-respʳ-≈
6060
∤∤-resp-≈ ↦ ∦-resp-≈
61+
∣-respʳ-≈ ↦ ∣ʳ-respʳ-≈
62+
∣-respˡ-≈ ↦ ∣ʳ-respˡ-≈
63+
∣-resp-≈ ↦ ∣ʳ-resp-≈
64+
x∣yx ↦ x∣ʳyx
65+
xy≈z⇒y∣z ↦ xy≈z⇒y∣ʳz
6166
```
6267

6368
* In `Algebra.Properties.Monoid.Divisibility`:
6469
```agda
6570
∣∣-refl ↦ ∥-refl
6671
∣∣-reflexive ↦ ∥-reflexive
6772
∣∣-isEquivalence ↦ ∥-isEquivalence
73+
ε∣_ ↦ ε∣ʳ_
74+
∣-refl ↦ ∣ʳ-refl
75+
∣-reflexive ↦ ∣ʳ-reflexive
76+
∣-isPreorder ↦ ∣ʳ-isPreorder
77+
∣-preorder ↦ ∣ʳ-preorder
6878
```
6979

7080
* In `Algebra.Properties.Semigroup.Divisibility`:
7181
```agda
7282
∣∣-trans ↦ ∥-trans
83+
∣-trans ↦ ∣ʳ-trans
7384
```
7485

7586
* In `Data.List.Base`:
@@ -103,6 +114,10 @@ New modules
103114

104115
* `Data.List.Base.{sum|product}` and their properties have been lifted out into `Data.Nat.ListAction` and `Data.Nat.ListAction.Properties`.
105116

117+
* `Data.List.Relation.Binary.Prefix.Propositional.Properties` showing the equivalence to left divisibility induced by the list monoid.
118+
119+
* `Data.List.Relation.Binary.Suffix.Propositional.Properties` showing the equivalence to right divisibility induced by the list monoid.
120+
106121
* `Data.Sign.Show` to show a sign
107122

108123
Additions to existing modules
@@ -137,6 +152,38 @@ Additions to existing modules
137152
commutativeRing : CommutativeRing c ℓ → CommutativeRing (a ⊔ c) (a ⊔ ℓ)
138153
```
139154

155+
* In `Algebra.Properties.Magma.Divisibility`:
156+
```agda
157+
∣ˡ-respʳ-≈ : _∣ˡ_ Respectsʳ _≈_
158+
∣ˡ-respˡ-≈ : _∣ˡ_ Respectsˡ _≈_
159+
∣ˡ-resp-≈ : _∣ˡ_ Respects₂ _≈_
160+
x∣ˡxy : ∀ x y → x ∣ˡ x ∙ y
161+
xy≈z⇒x∣ˡz : ∀ x y {z} → x ∙ y ≈ z → x ∣ˡ z
162+
```
163+
164+
* In `Algebra.Properties.Monoid.Divisibility`:
165+
```agda
166+
ε∣ˡ_ : ∀ x → ε ∣ˡ x
167+
∣ˡ-refl : Reflexive _∣ˡ_
168+
∣ˡ-reflexive : _≈_ ⇒ _∣ˡ_
169+
∣ˡ-isPreorder : IsPreorder _≈_ _∣ˡ_
170+
∣ˡ-preorder : Preorder a ℓ _
171+
```
172+
173+
* In `Algebra.Properties.Semigroup.Divisibility`:
174+
```agda
175+
∣ˡ-trans : Transitive _∣ˡ_
176+
x∣ʳy⇒x∣ʳzy : x ∣ʳ y → x ∣ʳ z ∙ y
177+
x∣ʳy⇒xz∣ʳyz : x ∣ʳ y → x ∙ z ∣ʳ y ∙ z
178+
x∣ˡy⇒zx∣ˡzy : x ∣ˡ y → z ∙ x ∣ˡ z ∙ y
179+
x∣ˡy⇒x∣ˡyz : x ∣ˡ y → x ∣ˡ y ∙ z
180+
```
181+
182+
* In `Algebra.Properties.CommutativeSemigroup.Divisibility`:
183+
```agda
184+
∙-cong-∣ : x ∣ y → a ∣ b → x ∙ a ∣ y ∙ b
185+
```
186+
140187
* In `Data.List.Properties`:
141188
```agda
142189
map-applyUpTo : ∀ (f : ℕ → A) (g : A → B) n → map g (applyUpTo f n) ≡ applyUpTo (g ∘ f) n
@@ -149,3 +196,9 @@ Additions to existing modules
149196
```agda
150197
filter-↭ : ∀ (P? : Pred.Decidable P) → xs ↭ ys → filter P? xs ↭ filter P? ys
151198
```
199+
200+
* In `Relation.Nullary.Decidable.Core`:
201+
```agda
202+
⊤-dec : Dec {a} ⊤
203+
⊥-dec : Dec {a} ⊥
204+
```

src/Algebra/Lattice/Bundles.agda

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515

1616
module Algebra.Lattice.Bundles where
1717

18-
open import Algebra.Core
19-
open import Algebra.Bundles
20-
open import Algebra.Structures
18+
open import Algebra.Core using (Op₁; Op₂)
19+
open import Algebra.Bundles using (Band)
2120
import Algebra.Lattice.Bundles.Raw as Raw
2221
open import Algebra.Lattice.Structures
22+
using ( IsSemilattice; IsMeetSemilattice; IsJoinSemilattice
23+
; IsBoundedSemilattice; IsBoundedMeetSemilattice
24+
; IsBoundedJoinSemilattice; IsLattice; IsDistributiveLattice
25+
; IsBooleanAlgebra)
2326
open import Level using (suc; _⊔_)
2427
open import Relation.Binary.Bundles using (Setoid)
2528
open import Relation.Binary.Core using (Rel)

src/Algebra/Lattice/Structures.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

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

16-
open import Algebra.Core
16+
open import Algebra.Core using (Op₁; Op₂)
1717
open import Data.Product.Base using (proj₁; proj₂)
1818
open import Level using (_⊔_)
1919
open import Relation.Binary.Core using (Rel)

src/Algebra/Module/Bundles/Raw.agda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
module Algebra.Module.Bundles.Raw where
1010

11-
open import Algebra.Bundles.Raw
12-
open import Algebra.Core
13-
open import Algebra.Module.Core
14-
open import Level
11+
open import Algebra.Bundles.Raw using (RawMonoid; RawGroup)
12+
open import Algebra.Core using (Op₁; Op₂)
13+
open import Algebra.Module.Core using (Opₗ; Opᵣ)
14+
open import Level using (Level; _⊔_; suc)
1515
open import Relation.Nullary.Negation.Core using (¬_)
1616
open import Relation.Binary.Core using (Rel)
1717

src/Algebra/Module/Construct/DirectProduct.agda

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
module Algebra.Module.Construct.DirectProduct where
1313

1414
open import Algebra.Bundles
15-
open import Algebra.Construct.DirectProduct
15+
open import Algebra.Construct.DirectProduct using (commutativeMonoid)
1616
open import Algebra.Module.Bundles
1717
open import Data.Product.Base using (map; zip; _,_; proj₁; proj₂)
1818
open import Data.Product.Relation.Binary.Pointwise.NonDependent
19-
open import Level
19+
using (Pointwise)
20+
open import Level using (Level; _⊔_)
2021

2122
private
2223
variable

src/Algebra/Module/Construct/Idealization.agda

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ open import Algebra.Module.Bundles using (Bimodule)
3737
module Algebra.Module.Construct.Idealization
3838
{r ℓr m ℓm} (ring : Ring r ℓr) (bimodule : Bimodule ring ring m ℓm) where
3939

40-
open import Algebra.Core
41-
import Algebra.Consequences.Setoid as Consequences
40+
open import Algebra.Core using (Op₂)
41+
import Algebra.Consequences.Setoid as Consequences using (comm∧assoc⇒middleFour)
4242
import Algebra.Definitions as Definitions
43-
import Algebra.Module.Construct.DirectProduct as DirectProduct
44-
import Algebra.Module.Construct.TensorUnit as TensorUnit
43+
using (Congruent₂; _DistributesOverˡ_; _DistributesOverʳ_; _DistributesOver_
44+
; LeftIdentity; RightIdentity; Identity; Associative)
45+
import Algebra.Module.Construct.DirectProduct as DirectProduct using (bimodule)
46+
import Algebra.Module.Construct.TensorUnit as TensorUnit using (bimodule)
4547
open import Algebra.Structures using (IsAbelianGroup; IsRing)
4648
open import Data.Product.Base using (_,_; ∃-syntax)
4749
open import Level using (Level; _⊔_)

src/Algebra/Module/Construct/TensorUnit.agda

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
module Algebra.Module.Construct.TensorUnit where
1313

1414
open import Algebra.Bundles
15+
using (RawSemiring; RawRing; Semiring; Ring; CommutativeSemiring
16+
; CommutativeRing)
1517
open import Algebra.Module.Bundles
16-
open import Level
18+
using (RawSemimodule; RawLeftSemimodule; RawRightSemimodule; RawBisemimodule
19+
; RawLeftModule; RawRightModule; RawBimodule; RawModule; LeftSemimodule
20+
; RightSemimodule; Bisemimodule; Semimodule; LeftModule; RightModule; Bimodule
21+
; Module)
22+
open import Level using (Level; _⊔_)
1723

1824
private
1925
variable

src/Algebra/Module/Construct/Zero.agda

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

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

13-
open import Level
13+
open import Level using (Level)
1414

1515
module Algebra.Module.Construct.Zero {c ℓ : Level} where
1616

17-
open import Algebra.Bundles
17+
open import Algebra.Bundles using (RawSemiring; Semiring; Ring; CommutativeSemiring; CommutativeRing)
1818
open import Algebra.Module.Bundles
19-
open import Data.Unit.Polymorphic
19+
open import Data.Unit.Polymorphic using (⊤)
2020
open import Relation.Binary.Core using (Rel)
2121

2222
private

src/Algebra/Properties/AbelianGroup.agda

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

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

9-
open import Algebra
9+
open import Algebra.Bundles using (AbelianGroup)
1010

1111
module Algebra.Properties.AbelianGroup
1212
{a ℓ} (G : AbelianGroup a ℓ) where
1313

14-
open AbelianGroup G
1514
open import Function.Base using (_$_)
15+
16+
open AbelianGroup G
1617
open import Relation.Binary.Reasoning.Setoid setoid
1718

1819
------------------------------------------------------------------------

src/Algebra/Properties/CancellativeCommutativeSemiring.agda

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66

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

9-
open import Algebra using (CancellativeCommutativeSemiring)
9+
open import Algebra.Bundles using (CancellativeCommutativeSemiring)
10+
11+
module Algebra.Properties.CancellativeCommutativeSemiring
12+
{a ℓ} (R : CancellativeCommutativeSemiring a ℓ)
13+
where
14+
1015
open import Algebra.Definitions using (AlmostRightCancellative)
1116
open import Data.Sum.Base using (_⊎_; inj₁; inj₂)
1217
open import Relation.Binary.Definitions using (Decidable)
1318
open import Relation.Nullary.Decidable using (yes; no)
1419
open import Relation.Nullary.Negation using (contradiction)
1520

16-
module Algebra.Properties.CancellativeCommutativeSemiring
17-
{a ℓ} (R : CancellativeCommutativeSemiring a ℓ)
18-
where
19-
2021
open CancellativeCommutativeSemiring R
2122
open import Algebra.Consequences.Setoid setoid
2223
open import Relation.Binary.Reasoning.Setoid setoid

0 commit comments

Comments
 (0)