-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIntroduccion_de_la_union.lean
78 lines (61 loc) · 1.21 KB
/
Introduccion_de_la_union.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- Regla de introducción de la unión
-- =================================
-- ----------------------------------------------------
-- Ej. 1. Demostrar
-- A ⊆ A ∪ B
-- ----------------------------------------------------
import data.set
variable U : Type
variables A B : set U
variable x : U
open set
-- #reduce x ∈ A ∪ B
-- 1ª demostración
example : A ⊆ A ∪ B :=
begin
intros x h,
simp,
left,
exact h,
end
-- 2ª demostración
example : A ⊆ A ∪ B :=
begin
intros x h,
left,
exact h,
end
-- 3ª demostración
example : A ⊆ A ∪ B :=
assume x,
assume h : x ∈ A,
show x ∈ A ∪ B, from or.inl h
-- 4ª demostración
example : A ⊆ A ∪ B :=
assume x,
assume h : x ∈ A,
or.inl h
-- 5ª demostración
example : A ⊆ A ∪ B :=
assume x,
λ h : x ∈ A, or.inl h
-- 6ª demostración
example : A ⊆ A ∪ B :=
assume x, or.inl
-- 7ª demostración
example : A ⊆ A ∪ B :=
λ x, or.inl
-- 8ª demostración
example : A ⊆ A ∪ B :=
-- by library_search
subset_union_left A B
-- 9ª demostración
example : A ⊆ A ∪ B :=
λ x, mem_union_left B
-- 10ª demostración
example : A ⊆ A ∪ B :=
-- by hint
by finish
-- 11ª demostración
example : A ⊆ A ∪ B :=
by simp