Skip to content

Commit

Permalink
add choice_of_Type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
affeldt-aist committed Jul 13, 2021
1 parent 7b53e30 commit 9544e68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
+ lemmas `seriesN`, `seriesD`, `seriesZ`, `is_cvg_seriesN`, `lim_seriesN`,
`is_cvg_seriesZ`, `lim_seriesZ`, `is_cvg_seriesD`, `lim_seriesD`,
`is_cvg_seriesB`, `lim_seriesB`, `lim_series_le`, `lim_series_norm`
- in `boolp.v`:
+ definitions `equality_mixin_of_Type`, `choice_of_Type`

### Changed

Expand Down
6 changes: 6 additions & 0 deletions theories/boolp.v
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ Proof. by case: asboolP. Qed.
Lemma asboolF (P : Prop) : ~ P -> `[<P>] = false.
Proof. by apply/introF/asboolP. Qed.

Definition equality_mixin_of_Type (T : Type) : Equality.mixin_of T :=
EqMixin (fun x y : T => asboolP (x = y)).

Definition choice_of_Type (T : Type) : choiceType :=
Choice.Pack (Choice.Class (equality_mixin_of_Type T) gen_choiceMixin).

Lemma is_true_inj : injective is_true.
Proof. by move=> [] []; rewrite ?(trueE, falseE) ?propeqE; tauto. Qed.

Expand Down

0 comments on commit 9544e68

Please sign in to comment.