File tree Expand file tree Collapse file tree 11 files changed +22
-22
lines changed
Relation/Binary/Permutation/Propositional Expand file tree Collapse file tree 11 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,28 @@ Deprecated names
23
23
24
24
* In ` Data.List.Base ` :
25
25
``` agda
26
- sum ↦ Data.Nat.SumAndProduct .sum
27
- product ↦ Data.Nat.SumAndProduct .product
26
+ sum ↦ Data.Nat.ListAction .sum
27
+ product ↦ Data.Nat.ListAction .product
28
28
```
29
29
30
30
* In ` Data.List.Properties ` :
31
31
``` agda
32
- sum-++ ↦ Data.Nat.SumAndProduct .sum-++
33
- ∈⇒∣product ↦ Data.Nat.SumAndProduct .∈⇒∣product
34
- product≢0 ↦ Data.Nat.SumAndProduct .product≢0
35
- ∈⇒≤product ↦ Data.Nat.SumAndProduct .∈⇒≤product
32
+ sum-++ ↦ Data.Nat.ListAction .sum-++
33
+ ∈⇒∣product ↦ Data.Nat.ListAction .∈⇒∣product
34
+ product≢0 ↦ Data.Nat.ListAction .product≢0
35
+ ∈⇒≤product ↦ Data.Nat.ListAction .∈⇒≤product
36
36
```
37
37
38
38
* In ` Data.List.Relation.Binary.Permutation.Propositional.Properties ` :
39
39
``` agda
40
- sum-↭ ↦ Data.Nat.SumAndProduct .sum-↭
41
- product-↭ ↦ Data.Nat.SumAndProduct .product-↭
40
+ sum-↭ ↦ Data.Nat.ListAction .sum-↭
41
+ product-↭ ↦ Data.Nat.ListAction .product-↭
42
42
```
43
43
44
44
New modules
45
45
-----------
46
46
47
- * ` Data.List.Base.{sum|product} ` and their properties have been lifted out into ` Data.Nat.SumAndProduct ` .
47
+ * ` Data.List.Base.{sum|product} ` and their properties have been lifted out into ` Data.Nat.ListAction ` .
48
48
49
49
Additions to existing modules
50
50
-----------------------------
Original file line number Diff line number Diff line change 7
7
module README.Data.List where
8
8
9
9
open import Data.Nat.Base using (ℕ; _+_)
10
- open import Data.Nat.SumAndProduct using (sum)
10
+ open import Data.Nat.ListAction using (sum)
11
11
open import Relation.Binary.PropositionalEquality using (_≡_; refl)
12
12
13
13
------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -581,13 +581,13 @@ sum : List ℕ → ℕ
581
581
sum = foldr ℕ._+_ 0
582
582
{-# WARNING_ON_USAGE sum
583
583
"Warning: sum was deprecated in v2.3.
584
- Please use Data.Nat.SumAndProduct .sum instead."
584
+ Please use Data.Nat.ListAction .sum instead."
585
585
#-}
586
586
587
587
product : List ℕ → ℕ
588
588
product = foldr ℕ._*_ 1
589
589
{-# WARNING_ON_USAGE product
590
590
"Warning: product was deprecated in v2.3.
591
- Please use Data.Nat.SumAndProduct .product instead."
591
+ Please use Data.Nat.ListAction .product instead."
592
592
#-}
593
593
Original file line number Diff line number Diff line change @@ -400,15 +400,15 @@ mapMaybe-↭ f = catMaybes-↭ ∘ map⁺ f
400
400
401
401
-- Version 2.3
402
402
403
- import Data.Nat.SumAndProduct as ℕ
403
+ import Data.Nat.ListAction as ℕ
404
404
405
405
sum-↭ = ℕ.sum-↭
406
406
{-# WARNING_ON_USAGE sum-↭
407
407
"Warning: sum-↭ was deprecated in v2.3.
408
- Please use Data.Nat.SumAndProduct .sum-↭ instead."
408
+ Please use Data.Nat.ListAction .sum-↭ instead."
409
409
#-}
410
410
product-↭ = ℕ.product-↭
411
411
{-# WARNING_ON_USAGE product-↭
412
412
"Warning: product-↭ was deprecated in v2.3.
413
- Please use Data.Nat.SumAndProduct .product-↭ instead."
413
+ Please use Data.Nat.ListAction .product-↭ instead."
414
414
#-}
Original file line number Diff line number Diff line change 9
9
10
10
{-# OPTIONS --cubical-compatible --safe #-}
11
11
12
- module Data.Nat.SumAndProduct where
12
+ module Data.Nat.ListAction where
13
13
14
14
open import Algebra.Bundles using (CommutativeMonoid)
15
15
open import Data.List.Base using (List; []; _∷_; _++_; foldr)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ open import Data.Nat.Base
14
14
open import Data.Nat.Divisibility
15
15
open import Data.Nat.GCD using (module GCD ; module Bézout )
16
16
open import Data.Nat.Properties
17
- open import Data.Nat.SumAndProduct using (product; product≢0)
17
+ open import Data.Nat.ListAction using (product; product≢0)
18
18
open import Data.Product.Base using (∃-syntax; _×_; map₂; _,_)
19
19
open import Data.Sum.Base using (_⊎_; inj₁; inj₂; [_,_]′)
20
20
open import Function.Base using (flip; _∘_; _∘′_)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ open import Data.Nat.Induction using (<-Rec; <-rec; <-recBuilder)
17
17
open import Data.Nat.Primality
18
18
using (Prime; _Rough_; rough∧square>⇒prime; ∤⇒rough-suc; rough∧∣⇒rough; rough∧∣⇒prime;
19
19
2-rough; euclidsLemma; prime⇒irreducible; ¬prime[1]; productOfPrimes≥1; prime⇒nonZero)
20
- open import Data.Nat.SumAndProduct using (product; product-↭)
20
+ open import Data.Nat.ListAction using (product; product-↭)
21
21
open import Data.Product.Base using (∃-syntax; _×_; _,_; proj₁; proj₂)
22
22
open import Data.List.Base using (List; []; _∷_; _++_)
23
23
open import Data.List.Membership.Propositional using (_∈_)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ open import Data.Tree.Binary as BT using (Tree; node; leaf)
13
13
open import Data.List.Base as List using (List; []; _∷_; _++_; [_])
14
14
open import Data.Maybe.Base using (Maybe; nothing; just)
15
15
open import Data.Nat.Base using (ℕ; suc; _+_)
16
- open import Data.Nat.SumAndProduct using (sum)
16
+ open import Data.Nat.ListAction using (sum)
17
17
open import Function.Base using (_$_; _∘_)
18
18
19
19
private
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ open import Data.Maybe.Base using (Maybe; just; nothing)
13
13
open import Data.Maybe.Relation.Unary.All using (All; just; nothing)
14
14
open import Data.Nat.Base using (ℕ; suc; _+_)
15
15
open import Data.Nat.Properties using (+-identityʳ; +-comm; +-assoc)
16
- open import Data.Nat.SumAndProduct using (sum)
16
+ open import Data.Nat.ListAction using (sum)
17
17
open import Data.Tree.Binary as BT using (Tree; node; leaf)
18
18
open import Data.Tree.Binary.Zipper using (Zipper; toTree; up; mkZipper;
19
19
leftBranch; rightBranch; left; right; #nodes; Crumb; getTree; #leaves;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ open import Data.List.Relation.Binary.Infix.Heterogeneous.Properties using (infi
88
88
open import Data.List.Relation.Unary.Any using (any?)
89
89
open import Data.Maybe.Base using (Maybe; just; nothing; fromMaybe)
90
90
open import Data.Nat.Base using (ℕ; _≡ᵇ_; _<ᵇ_; _+_; _∸_)
91
- open import Data.Nat.SumAndProduct using (sum)
91
+ open import Data.Nat.ListAction using (sum)
92
92
import Data.Nat.Show as ℕ using (show)
93
93
open import Data.Product.Base using (_×_; _,_)
94
94
open import Data.String.Base as String using (String; lines; unlines; unwords; concat)
You can’t perform that action at this time.
0 commit comments