File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 11Require Import init.imports.
2+ Require Import UniMath.Combinatorics.Lists.
3+ Require Import UniMath.Combinatorics.MoreLists.
4+ Require Import Inductive .Option.
25
36Section 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.
Original file line number Diff line number Diff line change 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 *)
33Require Import init.imports.
44
55Section Option.
@@ -10,3 +10,23 @@ Section Option.
1010 Definition none {X : UU} : @option X := (ii2 tt).
1111
1212End 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.
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ COQC = coqc
22COQDEP = coqdep
33-R . "sem"
44
5+
56-arg "-w -notation-overridden -type-in-type -noinit"
67
78init/imports.v
89init/all.v
910
11+
1012Inductive/ListProperties.v
1113Inductive/Option.v
1214
You can’t perform that action at this time.
0 commit comments