Documentation
LeanCourse
.
MIL
.
C02_Basics
.
S02_Proving_Identities_in_Algebraic_Structures
Search
Google site search
return to top
source
Imports
Init
LeanCourse.Common
Mathlib.Algebra.Ring.Defs
Mathlib.Data.Real.Basic
Imported by
MyRing
.
add_zero
MyRing
.
add_right_neg
MyRing
.
neg_add_cancel_left
MyRing
.
add_neg_cancel_right
MyRing
.
add_left_cancel
MyRing
.
add_right_cancel
MyRing
.
mul_zero
MyRing
.
zero_mul
MyRing
.
neg_eq_of_add_eq_zero
MyRing
.
eq_neg_of_add_eq_zero
MyRing
.
neg_zero
MyRing
.
neg_neg
MyRing
.
self_sub
MyRing
.
one_add_one_eq_two
MyRing
.
two_mul
MyGroup
.
mul_inv_cancel
MyGroup
.
mul_one
MyGroup
.
mul_inv_rev
source
theorem
MyRing
.
add_zero
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
a
+
0
=
a
source
theorem
MyRing
.
add_right_neg
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
a
+
-
a
=
0
source
theorem
MyRing
.
neg_add_cancel_left
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
(b :
R
)
:
-
a
+
(
a
+
b
)
=
b
source
theorem
MyRing
.
add_neg_cancel_right
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
(b :
R
)
:
a
+
b
+
-
b
=
a
source
theorem
MyRing
.
add_left_cancel
{R :
Type
u_1}
[
Ring
R
]
{a :
R
}
{b :
R
}
{c :
R
}
(h :
a
+
b
=
a
+
c
)
:
b
=
c
source
theorem
MyRing
.
add_right_cancel
{R :
Type
u_1}
[
Ring
R
]
{a :
R
}
{b :
R
}
{c :
R
}
(h :
a
+
b
=
c
+
b
)
:
a
=
c
source
theorem
MyRing
.
mul_zero
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
a
*
0
=
0
source
theorem
MyRing
.
zero_mul
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
0
*
a
=
0
source
theorem
MyRing
.
neg_eq_of_add_eq_zero
{R :
Type
u_1}
[
Ring
R
]
{a :
R
}
{b :
R
}
(h :
a
+
b
=
0
)
:
-
a
=
b
source
theorem
MyRing
.
eq_neg_of_add_eq_zero
{R :
Type
u_1}
[
Ring
R
]
{a :
R
}
{b :
R
}
(h :
a
+
b
=
0
)
:
a
=
-
b
source
theorem
MyRing
.
neg_zero
{R :
Type
u_1}
[
Ring
R
]
:
-
0
=
0
source
theorem
MyRing
.
neg_neg
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
-
-
a
=
a
source
theorem
MyRing
.
self_sub
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
a
-
a
=
0
source
theorem
MyRing
.
one_add_one_eq_two
{R :
Type
u_1}
[
Ring
R
]
:
1
+
1
=
2
source
theorem
MyRing
.
two_mul
{R :
Type
u_1}
[
Ring
R
]
(a :
R
)
:
2
*
a
=
a
+
a
source
theorem
MyGroup
.
mul_inv_cancel
{G :
Type
u_1}
[
Group
G
]
(a :
G
)
:
a
*
a
⁻¹
=
1
source
theorem
MyGroup
.
mul_one
{G :
Type
u_1}
[
Group
G
]
(a :
G
)
:
a
*
1
=
a
source
theorem
MyGroup
.
mul_inv_rev
{G :
Type
u_1}
[
Group
G
]
(a :
G
)
(b :
G
)
:
(
a
*
b
)
⁻¹
=
b
⁻¹
*
a
⁻¹