Skip to content

Commit 37eccfc

Browse files
authored
Merge branch 'master' into lists
2 parents b692f2f + 70b331f commit 37eccfc

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

code/Decidability/DiscreteTypes.v

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
Require Import init.imports.
2+
Require Import UniMath.Combinatorics.Lists.
3+
Require Import UniMath.Combinatorics.MoreLists.
4+
Require Import Inductive.Option.
25

36
Section EqualityDeciders.
47

@@ -138,12 +141,4 @@ Section ClosureProperties.
138141
* exact inr.
139142
Qed.
140143

141-
142-
143-
144-
End ClosureProperties.
145-
146-
147-
Section ChoiceFunction.
148-
149-
End ChoiceFunction.
144+
End ClosureProperties.

code/Inductive/Option.v

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
(* Definition of an option as the coproduct of a type X with the unit type *)
21

2+
(* Definition of an option as the coproduct of a type X with the unit type *)
33
Require Import init.imports.
44

55
Section Option.
@@ -10,3 +10,23 @@ Section Option.
1010
Definition none {X : UU} : @option X := (ii2 tt).
1111

1212
End Option.
13+
14+
Section PathProperties.
15+
16+
Lemma nopathssomenone {X : UU} (x : X) : ¬ ((some x) = none).
17+
Proof.
18+
apply negpathsii1ii2.
19+
Qed.
20+
21+
Lemma nopathsnonesome {X : UU} (x : X) : ¬ (none = (some x)).
22+
Proof.
23+
apply negpathsii2ii1.
24+
Qed.
25+
26+
Lemma some_injectivity {X : UU} (x y : X) : (some x = some y) → x = y.
27+
Proof.
28+
apply ii1_injectivity.
29+
Qed.
30+
31+
32+
End PathProperties.

code/_CoqProject

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ COQC = coqc
22
COQDEP = coqdep
33
-R . "sem"
44

5+
56
-arg "-w -notation-overridden -type-in-type -noinit"
67

78
init/imports.v
89
init/all.v
910

11+
1012
Inductive/ListProperties.v
1113
Inductive/Option.v
1214

0 commit comments

Comments
 (0)