Skip to content

Commit f06d7b6

Browse files
authored
Add opposite lemmas to Data.Sign (#1358)
1 parent 147d31d commit f06d7b6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ Other minor additions
250250
≤ᵇ-reflects-≤ : Reflects (m ≤ n) (m ≤ᵇ n)
251251
```
252252

253+
* Added new proofs in `Data.Sign.Properties`:
254+
```agda
255+
s*opposite[s]≡- : ∀ s → s * opposite s ≡ -
256+
opposite[s]*s≡- : ∀ s → opposite s * s ≡ -
257+
```
258+
253259
* Added new proof in `Relation.Nullary.Reflects`:
254260
```agda
255261
fromEquivalence : (T b → P) → (P → T b) → Reflects P b

src/Data/Sign/Properties.agda

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ s*s≡+ : ∀ s → s * s ≡ +
129129
s*s≡+ + = refl
130130
s*s≡+ - = refl
131131

132+
s*opposite[s]≡- : s s * opposite s ≡ -
133+
s*opposite[s]≡- + = refl
134+
s*opposite[s]≡- - = refl
135+
136+
opposite[s]*s≡- : s opposite s * s ≡ -
137+
opposite[s]*s≡- + = refl
138+
opposite[s]*s≡- - = refl
139+
132140
------------------------------------------------------------------------
133141
-- DEPRECATED NAMES
134142
------------------------------------------------------------------------

0 commit comments

Comments
 (0)