klefki.algebra.abstract
¶
Module Contents¶
Classes¶
A Transformer, is a Object implemented methods like from_int, from_list, from_SomeType. |
|
Functor provide help function like fmap, lift_fmap |
|
A groupoid is an algebraic structure consisting of a non-empty set G and a binary operation o on G. The pair (G, o) is called groupoid. |
|
If (G, o) is a groupoid and if the associative rule (aob)oc = ao(boc) holds for all a, b, c ∈ G, then (G, o) is called a semigroup. |
|
A semigroup with identity element is called a monoid. |
|
A monoid in which every element has an inverse is called group. |
|
RING is a setRwhich is CLOSED under two operations+and×andsatisfying the following properties: |
|
A FIELD is a set F which is closed under two operations + and × s.t. |
-
class
klefki.algebra.abstract.
Transformer
¶ A Transformer, is a Object implemented methods like from_int, from_list, from_SomeType.
-
classmethod
derive
(cls, name, *args, **kwargs)¶
-
clone
(self)¶
-
copy
(self)¶
-
craft
(self, *args)¶ Automatic lookup method like from_{type} of Class Object.
-
classmethod
-
class
klefki.algebra.abstract.
Functor
(*args)¶ Bases:
klefki.algebra.abstract.Transformer
Functor provide help function like fmap, lift_fmap
-
__slots__
= ['value']¶
-
classmethod
construct
(cls, name, **kwargs)¶
-
property
type
(self)¶
-
property
id
(self)¶
-
-
class
klefki.algebra.abstract.
Groupoid
(*args)¶ Bases:
klefki.algebra.abstract.Functor
A groupoid is an algebraic structure consisting of a non-empty set G and a binary operation o on G. The pair (G, o) is called groupoid.
-
__slots__
= []¶
-
__eq__
(self, b) → bool¶ Return self==value.
-
__lt__
(self, b) → bool¶ Return self<value.
-
__le__
(self, b) → bool¶ Return self<=value.
-
__gt__
(self, b) → bool¶ Return self>value.
-
__ge__
(self, b) → bool¶ Return self>=value.
-
__add__
(self, g: Group) → Group¶ Allowing call associativity operator via A + B Strict limit arg g and ret res should be subtype of Group, For obeying axiom closure (1)
-
__radd__
(self, g)¶
-
__repr__
(self)¶ Return repr(self).
-
__str__
(self)¶ Return str(self).
-
-
class
klefki.algebra.abstract.
SemiGroup
(*args)¶ Bases:
klefki.algebra.abstract.Groupoid
If (G, o) is a groupoid and if the associative rule (aob)oc = ao(boc) holds for all a, b, c ∈ G, then (G, o) is called a semigroup.
-
__slots__
= []¶
-
-
class
klefki.algebra.abstract.
Monoid
(*args)¶ Bases:
klefki.algebra.abstract.SemiGroup
A semigroup with identity element is called a monoid.
-
__slots__
= []¶
-
classmethod
zero
(cls)¶
-
classmethod
identity
(cls)¶ The value for obeying axiom identity (3)
-
__not__
(self)¶
-
scalar
(self, times)¶
-
__matmul__
(self, times)¶
-
-
class
klefki.algebra.abstract.
Group
(*args)¶ Bases:
klefki.algebra.abstract.Monoid
A monoid in which every element has an inverse is called group.
-
__slots__
= []¶
-
-
class
klefki.algebra.abstract.
Ring
(*args)¶ Bases:
klefki.algebra.abstract.Group
RING is a setRwhich is CLOSED under two operations+and×andsatisfying the following properties: (1) R is an abelian group under+. (2)Associativity of × For every a,b,c∈R,a×(b×c) = (a×b)×c (3)Distributive Properties – For everya,b,c∈Rthe following identities hold: a×(b+c) = (a×b) + (a×c)and(b+c)×a=b×a+c×a
-
__slots__
= []¶
-
__mul__
(self, g: Field) → Field¶ Allowing call associativity operator via A * B Strict limit arg g and ret res should be subtype of Group, For obeying axiom closure (1)
-
__pow__
(self, b, m=None)¶
-
-
class
klefki.algebra.abstract.
Field
(*args)¶ Bases:
klefki.algebra.abstract.Ring
A FIELD is a set F which is closed under two operations + and × s.t. (1) Fis an abelian group under + and (2) F-{0} (the set F without the additive identity 0) is an abelian group under ×.
-
__slots__
= []¶
-
classmethod
sec_identity
(cls)¶
-
classmethod
one
(cls)¶
-
__invert__
(self)¶
-