Commit ab0038b
Add proofs on truth value (#2418)
* Add proofs on truth value
Adds a handful of properties that prove the truth
value of a decidable:
- `Relation.Nullary.Decidable`:
- `does-≡`: decidables over the same type have the same truth value
- `does-⇔`: generalization of `does-≡` to mutually implied types
- `Relation.Unary.Properties`:
- `≐?`: generalization of `Decidable.map` to predicates
(if two predicates are equivalent, one is decidable if the other is)
- `does-≡`: generalization of `does-≡` to predicates
- `does-≐`: generalization of `does-⇔` to predicates
* fixup! use ⇔-id
* simplify
* fixup! use qualified import instead of renaming
* Update src/Relation/Unary/Properties.agda
Co-authored-by: jamesmckinna <31931406+jamesmckinna@users.noreply.github.com>
* Update src/Relation/Unary/Properties.agda
Co-authored-by: jamesmckinna <31931406+jamesmckinna@users.noreply.github.com>
* rename ≐? to map
---------
Co-authored-by: jamesmckinna <31931406+jamesmckinna@users.noreply.github.com>
Co-authored-by: MatthewDaggitt <matthewdaggitt@gmail.com>1 parent 2a53fae commit ab0038b
3 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| |||
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
236 | 249 | | |
237 | 250 | | |
238 | 251 | | |
| |||
0 commit comments