-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ec468
commit 6bc4144
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
theorem not_mem_nil (a : Nat) : ¬ a ∈ [] := fun x => nomatch x | ||
|
||
theorem forall_prop_of_false {p : Prop} {q : p → Prop} (hn : ¬ p) : | ||
(∀ h' : p, q h') ↔ True := sorry | ||
|
||
example (R : Nat → Prop) : (∀ (a' : Nat), a' ∈ [] → R a') := by | ||
simp only [forall_prop_of_false (not_mem_nil _)] | ||
exact fun _ => True.intro | ||
|
||
|
||
def Not.elim {α : Sort _} (H1 : ¬a) (H2 : a) : α := absurd H2 H1 | ||
theorem iff_of_true (ha : a) (hb : b) : a ↔ b := ⟨fun _ => hb, fun _ => ha⟩ | ||
theorem iff_true_intro (h : a) : a ↔ True := iff_of_true h ⟨⟩ | ||
|
||
example {P : Prop} : ∀ (x : Nat) (_ : x ∈ []), P := | ||
by | ||
simp only [forall_prop_of_false (not_mem_nil _)] | ||
exact fun _ => True.intro |