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

Name clashes #27

Merged
merged 2 commits into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion data/cardinal.lean
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ local attribute [instance] prop_decidable

universes u v w x

namespace cardinal

structure embedding (α : Sort*) (β : Sort*) :=
(to_fun : α → β)
(inj : injective to_fun)
Expand Down Expand Up @@ -224,7 +226,9 @@ let f' : (α → γ) → (β → γ) := λf b, if h : ∃c, e c = b then f (some

end embedding

protected def equiv.to_embedding {α : Type u} {β : Type v} (f : α ≃ β) : embedding α β :=
end cardinal

protected def equiv.to_embedding {α : Type u} {β : Type v} (f : α ≃ β) : cardinal.embedding α β :=
⟨f, f.bijective.1⟩

@[simp] theorem equiv.to_embedding_coe_fn {α : Type u} {β : Type v} (f : α ≃ β) :
Expand Down
2 changes: 1 addition & 1 deletion data/ordinal.lean
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
import data.cardinal
noncomputable theory

open function
open function cardinal
local attribute [instance] classical.prop_decidable

universes u v w
Expand Down
2 changes: 1 addition & 1 deletion tests/finish3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ example : (∃ x : A, r) → r := by finish
example (a : A) : r → (∃ x : A, r) := begin safe; apply a_2; assumption end
example : (∃ x, p x ∧ r) ↔ (∃ x, p x) ∧ r := by finish

theorem foo: (∃ x, p x ∨ q x) ↔ (∃ x, p x) ∨ (∃ x, q x) :=
theorem foo': (∃ x, p x ∨ q x) ↔ (∃ x, p x) ∨ (∃ x, q x) :=
by finish [iff_def]

example (h : ∀ x, ¬ ¬ p x) : p a := by finish
Expand Down