Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lowasser
Copy link
Collaborator

No description provided.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
lowasser and others added 2 commits March 24, 2025 16:37

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Co-authored-by: Fredrik Bakke <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Comment on lines +48 to +49
disjoint-decidable-subtype-Prop : Prop (l1 ⊔ l2 ⊔ l3)
disjoint-decidable-subtype-Prop =
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
disjoint-decidable-subtype : UU (l1 ⊔ l2 ⊔ l3)
is-disjoint-decidable-subtype : UU (l1 ⊔ l2 ⊔ l3)

Comment on lines +122 to +131
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))
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants