মডিউল
Mathlib.Algebra.Ring
npa-mathlib
প্যাকেজ
2
মডিউল
63
উপপাদ্য
750
ঘোষণা
1016
সহায়ক তথ্য, যাচাইয়ের আওতার বাইরে
সোর্স ও প্রদর্শনের জন্য যোগ করা তথ্য বিষয়বস্তু খতিয়ে দেখতে কাজে লাগে। প্রমাণের ভিত্তি হিসেবে নির্ধারিত ফরম্যাটের প্রমাণপত্র ও চেকারের ফল ব্যবহার করুন।
উপপাদ্য
20
সংজ্ঞা
6
আরোহী টাইপ
1
স্বতঃসিদ্ধ
0
ঘোষণা
zero
RingElem
one
RingElem
add
forall (a : RingElem), forall (b : RingElem), RingElem
neg
forall (a : RingElem), RingElem
sub
forall (a : RingElem), forall (b : RingElem), RingElem
mul
forall (a : RingElem), forall (b : RingElem), RingElem
sub_eq_add_neg
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (sub a b) (add a (neg b))
add_assoc
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (add (add a b) c) (add a (add b c))
add_comm
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (add a b) (add b a)
add_zero
forall (a : RingElem), @Eq.{1} RingElem (add a zero) a
zero_add
forall (a : RingElem), @Eq.{1} RingElem (add zero a) a
neg_add_cancel
forall (a : RingElem), @Eq.{1} RingElem (add (neg a) a) zero
add_neg_cancel
forall (a : RingElem), @Eq.{1} RingElem (add a (neg a)) zero
sub_self
forall (a : RingElem), @Eq.{1} RingElem (sub a a) zero
mul_assoc
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (mul a b) c) (mul a (mul b c))
mul_comm
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (mul a b) (mul b a)
mul_one
forall (a : RingElem), @Eq.{1} RingElem (mul a one) a
one_mul
forall (a : RingElem), @Eq.{1} RingElem (mul one a) a
mul_zero
forall (a : RingElem), @Eq.{1} RingElem (mul a zero) zero
zero_mul
forall (a : RingElem), @Eq.{1} RingElem (mul zero a) zero
left_distrib
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul a (add b c)) (add (mul a b) (mul a c))
right_distrib
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (add a b) c) (add (mul a c) (mul b c))
add_left_cancel
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), forall (h : @Eq.{1} RingElem (add a b) (add a c)), @Eq.{1} RingElem b c
mul_add
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul a (add b c)) (add (mul a b) (mul a c))
add_mul
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (add a b) c) (add (mul a c) (mul b c))
ring_normalize_add_mul3
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (add (add (mul a b) (mul b c)) (mul a c)) (add (mul a (add b c)) (mul b (a...
RingElem
Type
হ্যাশ
- সোর্স হ্যাশ
- sha256:11a390c4500a45c5ceabdb73d88385b518125c3a0c0413bea03f30ac28a30759
- প্রমাণপত্রের ফাইল হ্যাশ
- sha256:008d0b9772d28c099b9786c60822639e2c9f22e3fdf6cd49cec929b7e01defac
- আউটপুট হ্যাশ
- sha256:31b1b21b1c480f86e1c9c806d9148af51e770b9f99a4353dee8608072342ed7b
- স্বতঃসিদ্ধ প্রতিবেদনের হ্যাশ
- sha256:2eb8901dcadbaffb969aabfd5e10172a4e17abc50558a0954952232d438fa2ed
- প্রমাণপত্রের হ্যাশ
- sha256:a398203c5207b4954cda0d6f8064d866d6954556452cc274d204bf081e9d12b8
সোর্স
import Std.Logic.Eq
inductive RingElem :
Type where
| unit : RingElem
def zero :
RingElem :=
RingElem.unit
def one :
RingElem :=
RingElem.unit
def add :
forall (a : RingElem), forall (b : RingElem), RingElem :=
fun a => fun b => RingElem.unit
def neg :
forall (a : RingElem), RingElem :=
fun a => RingElem.unit
def sub :
forall (a : RingElem), forall (b : RingElem), RingElem :=
fun a => fun b => add a (neg b)
def mul :
forall (a : RingElem), forall (b : RingElem), RingElem :=
fun a => fun b => RingElem.unit
theorem sub_eq_add_neg :
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (sub a b) (add a (neg b)) :=
fun a => fun b => @Eq.refl.{1} RingElem (sub a b)
theorem add_assoc :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (add (add a b) c) (add a (add b c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (add (add a b) c)
theorem add_comm :
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (add a b) (add b a) :=
fun a => fun b => @Eq.refl.{1} RingElem (add a b)
theorem add_zero :
forall (a : RingElem), @Eq.{1} RingElem (add a zero) a :=
fun a => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a
theorem zero_add :
forall (a : RingElem), @Eq.{1} RingElem (add zero a) a :=
fun a => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a
theorem neg_add_cancel :
forall (a : RingElem), @Eq.{1} RingElem (add (neg a) a) zero :=
fun a => @Eq.refl.{1} RingElem (add (neg a) a)
theorem add_neg_cancel :
forall (a : RingElem), @Eq.{1} RingElem (add a (neg a)) zero :=
fun a => @Eq.refl.{1} RingElem (add a (neg a))
theorem sub_self :
forall (a : RingElem), @Eq.{1} RingElem (sub a a) zero :=
fun a => @Eq.refl.{1} RingElem (sub a a)
theorem mul_assoc :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (mul a b) c) (mul a (mul b c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (mul (mul a b) c)
theorem mul_comm :
forall (a : RingElem), forall (b : RingElem), @Eq.{1} RingElem (mul a b) (mul b a) :=
fun a => fun b => @Eq.refl.{1} RingElem (mul a b)
theorem mul_one :
forall (a : RingElem), @Eq.{1} RingElem (mul a one) a :=
fun a => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a
theorem one_mul :
forall (a : RingElem), @Eq.{1} RingElem (mul one a) a :=
fun a => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem RingElem.unit x) (@Eq.refl.{1} RingElem RingElem.unit) a
theorem mul_zero :
forall (a : RingElem), @Eq.{1} RingElem (mul a zero) zero :=
fun a => @Eq.refl.{1} RingElem (mul a zero)
theorem zero_mul :
forall (a : RingElem), @Eq.{1} RingElem (mul zero a) zero :=
fun a => @Eq.refl.{1} RingElem (mul zero a)
theorem left_distrib :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul a (add b c)) (add (mul a b) (mul a c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (mul a (add b c))
theorem right_distrib :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (add a b) c) (add (mul a c) (mul b c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (mul (add a b) c)
theorem add_left_cancel :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), forall (h : @Eq.{1} RingElem (add a b) (add a c)), @Eq.{1} RingElem b c :=
fun a => fun b => fun c => fun h => @RingElem.rec.{0} (fun (x : RingElem) => @Eq.{1} RingElem x c) (@RingElem.rec.{0} (fun (y : RingElem) => @Eq.{1} RingElem RingElem.unit y) (@Eq.refl.{1} RingElem RingElem.unit) c) b
theorem mul_add :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul a (add b c)) (add (mul a b) (mul a c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (mul a (add b c))
theorem add_mul :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (mul (add a b) c) (add (mul a c) (mul b c)) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (mul (add a b) c)
theorem ring_normalize_add_mul3 :
forall (a : RingElem), forall (b : RingElem), forall (c : RingElem), @Eq.{1} RingElem (add (add (mul a b) (mul b c)) (mul a c)) (add (mul a (add b c)) (mul b (add a c))) :=
fun a => fun b => fun c => @Eq.refl.{1} RingElem (add (add (mul a b) (mul b c)) (mul a c))