-
Couldn't load subscription status.
- Fork 259
De Morgan's laws for Pred #2832
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |||||
|
|
||||||
| module Relation.Unary.Properties where | ||||||
|
|
||||||
| open import Data.Product.Base as Product using (_×_; _,_; swap; proj₁; zip′) | ||||||
| open import Data.Product.Base as Product using (_×_; _,_; -,_; swap; proj₁; zip′) | ||||||
| open import Data.Sum.Base using (inj₁; inj₂) | ||||||
| open import Data.Unit.Base using (tt) | ||||||
| open import Function.Base using (id; _$_; _∘_; _∘₂_) | ||||||
|
|
@@ -52,6 +52,27 @@ U-Universal = λ _ → _ | |||||
| ∁U-Empty : Empty {A = A} (∁ U) | ||||||
| ∁U-Empty = λ x x∈∁U → x∈∁U _ | ||||||
|
|
||||||
| ------------------------------------------------------------------------ | ||||||
| -- De Morgan's laws | ||||||
|
|
||||||
| ¬∃⟨P⟩⇒Π[∁P] : ∀ {P : Pred A ℓ} → ¬ ∃⟨ P ⟩ → Π[ ∁ P ] | ||||||
| ¬∃⟨P⟩⇒Π[∁P] ¬sat x Px = ¬sat (x , Px) | ||||||
|
|
||||||
| ¬∃⟨P⟩⇒∀[∁P] : ∀ {P : Pred A ℓ} → ¬ ∃⟨ P ⟩ → ∀[ ∁ P ] | ||||||
| ¬∃⟨P⟩⇒∀[∁P] ¬sat Px = ¬sat (-, Px) | ||||||
|
|
||||||
| ∃⟨∁P⟩⇒¬Π[P] : ∀ {P : Pred A ℓ} → ∃⟨ ∁ P ⟩ → ¬ Π[ P ] | ||||||
| ∃⟨∁P⟩⇒¬Π[P] (x , ¬Px) ΠP = ¬Px (ΠP x) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
using the underscores here:
|
||||||
|
|
||||||
| ∃⟨∁P⟩⇒¬∀[P] : ∀ {P : Pred A ℓ} → ∃⟨ ∁ P ⟩ → ¬ ∀[ P ] | ||||||
| ∃⟨∁P⟩⇒¬∀[P] (_ , ¬Px) ∀P = ¬Px ∀P | ||||||
|
|
||||||
| Π[∁P]⇒¬∃[P] : ∀ {P : Pred A ℓ} → Π[ ∁ P ] → ¬ ∃⟨ P ⟩ | ||||||
| Π[∁P]⇒¬∃[P] Π∁P (x , Px) = Π∁P x Px | ||||||
jamesmckinna marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
suffices! |
||||||
|
|
||||||
| ∀[∁P]⇒¬∃[P] : ∀ {P : Pred A ℓ} → ∀[ ∁ P ] → ¬ ∃⟨ P ⟩ | ||||||
| ∀[∁P]⇒¬∃[P] ∀∁P (_ , Px) = ∀∁P Px | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
again, emphasise the delegation to the explicit version. |
||||||
|
|
||||||
| ------------------------------------------------------------------------ | ||||||
| -- Subset properties | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.