-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equivalence between a type and the coproduct of a decidable subtype and its complement #1376
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Fredrik Bakke <[email protected]>
disjoint-decidable-subtype-Prop : Prop (l1 ⊔ l2 ⊔ l3) | ||
disjoint-decidable-subtype-Prop = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be called is-disjoint-prop-decidable-subtype
, correspondinly, disjoint-subtype-Prop
should be called is-disjoint-prop-subtype
, sorry that I didn't catch that last time
( subtype-decidable-subtype B) | ||
( subtype-decidable-subtype C) | ||
|
||
disjoint-decidable-subtype : UU (l1 ⊔ l2 ⊔ l3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disjoint-decidable-subtype : UU (l1 ⊔ l2 ⊔ l3) | |
is-disjoint-decidable-subtype : UU (l1 ⊔ l2 ⊔ l3) |
all-elements-equal-coproduct-disjoint-prop : | ||
(x : X) → all-elements-equal (type-Prop (A x) + type-Prop (B x)) | ||
all-elements-equal-coproduct-disjoint-prop x (inl _) (inl _) = | ||
ap inl (eq-type-Prop (A x)) | ||
all-elements-equal-coproduct-disjoint-prop x (inr _) (inr _) = | ||
ap inr (eq-type-Prop (B x)) | ||
all-elements-equal-coproduct-disjoint-prop x (inl ax) (inr bx) = | ||
ex-falso (H x (ax , bx)) | ||
all-elements-equal-coproduct-disjoint-prop x (inr bx) (inl ax) = | ||
ex-falso (H x (ax , bx)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This result should be derived from the corresponding result for disjunctions of propositions: if ¬ (A ∧ B)
then A + B
is a proposition and equivalent to A ∨ B
No description provided.