Módulos
Mathlib.Algebra.Ring
npa-mathlib
Paquetes
2
Módulos
63
Teoremas
750
Declaraciones
1016
Datos auxiliares no verificados
El código fuente y la información de presentación ayudan a examinar el contenido. La evidencia de la demostración se basa en los datos canónicos del certificado y el resultado del verificador.
Teoremas
20
Definiciones
6
Tipos inductivos
1
Axiomas
0
Declaraciones
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
Huellas digitales
- Huella del código fuente
- sha256:11a390c4500a45c5ceabdb73d88385b518125c3a0c0413bea03f30ac28a30759
- Huella del archivo de certificado
- sha256:008d0b9772d28c099b9786c60822639e2c9f22e3fdf6cd49cec929b7e01defac
- Huella de la exportación
- sha256:31b1b21b1c480f86e1c9c806d9148af51e770b9f99a4353dee8608072342ed7b
- Huella del informe de axiomas
- sha256:2eb8901dcadbaffb969aabfd5e10172a4e17abc50558a0954952232d438fa2ed
- Huella del certificado
- sha256:a398203c5207b4954cda0d6f8064d866d6954556452cc274d204bf081e9d12b8
Código fuente
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))