-
-
Save Ruben-VandeVelde/89dd1e210dd3ff14056062eb35da86ec to your computer and use it in GitHub Desktop.
TPL, Ex 4.6.2 b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example (α : Type*) (p : α → Prop) (s : Prop) : (∀ x, p x ∨ s) ↔ (∀ x, p x) ∨ s := | |
begin | |
split, | |
{ intro h1, | |
by_cases s, | |
{ right, assumption }, | |
{ left, | |
intro x, | |
have h2 := h1 x, | |
cases h2 with h3 h4, | |
{exact h3}, | |
{contradiction} } }, | |
{ intro h1, | |
cases h1, | |
{ intro x, left, apply h1, }, | |
{ intro x, right, assumption } } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment