Physlib.Mathematics.RatComplexNum
19 declarations
if and for rational complex numbers
#extFor any two rational complex numbers and , if their first components are equal () and their second components are equal (), then the numbers themselves are equal ().
`RatComplexNum` is equivalent to
#equivToProdThe definition establishes an equivalence (a bijection) between the type of rational complex numbers, `RatComplexNum`, and the Cartesian product of rational numbers . A rational complex number is mapped to the pair of its components , and conversely, a pair is mapped to the corresponding rational complex number.
Decidability of equality for rational complex numbers
#instDecidableEqEquality between any two rational complex numbers is decidable. This means that for any , there is a procedure to determine whether . This decidability is derived from the fact that rational complex numbers are equivalent to pairs of rational numbers , and equality in is decidable.
Addition of rational complex numbers
#instAddThe addition operation for rational complex numbers is defined component-wise. For any two rational complex numbers and , represented as pairs of rational numbers and , their sum is given by .
for Rational Complex Numbers
#add_fstFor any two rational complex numbers and , the first component of their sum is equal to the sum of their individual first components, denoted as .
for Rational Complex Numbers
#add_sndFor any two rational complex numbers and , the second component of their sum is equal to the sum of their individual second components, denoted as .
forms an additive abelian group
#instAddCommGroupThe type of rational complex numbers, represented as pairs of rational numbers corresponding to the real and imaginary parts, forms an additive abelian group (). The zero element is defined as , addition is performed component-wise such that , and the additive inverse is given by . Scalar multiplication by natural numbers and integers is also defined component-wise.
Multiplication of rational complex numbers
#instMulFor two rational complex numbers and , their product is defined as the rational complex number . Here, the first component represents the real part and the second component represents the imaginary part.
for rational complex numbers
#mul_fstFor any two rational complex numbers and , the real part of their product is given by , where and denote the real and imaginary components respectively.
for rational complex numbers
#mul_sndFor any two rational complex numbers and , the imaginary part of their product is given by , where and denote the real and imaginary components respectively.
forms a ring
#instRingThe type of rational complex numbers , consisting of pairs of rational numbers representing the real and imaginary parts, forms a ring. The addition is defined component-wise, and the multiplication of two elements and is given by . The multiplicative identity is defined as .
for rational complex numbers
#one_fstFor the multiplicative identity in the rational complex numbers , its real component (the first part of the pair) is equal to . That is, .
The imaginary part of is
#one_sndIn the ring of rational complex numbers , where an element is represented as a pair of rational numbers , the imaginary part (the second component) of the multiplicative identity is equal to .
The first component of is
#zero_fstThe first component (representing the real part) of the zero element in the ring of rational complex numbers is equal to .
The imaginary part of is
#zero_sndIn the ring of rational complex numbers , the second component (representing the imaginary part) of the zero element is equal to .
Inclusion of into
#toComplexNumThe map is a ring homomorphism that embeds a rational complex number into the field of complex numbers as , where are the real and imaginary parts of respectively, and is the imaginary unit.
Let be the ring of rational complex numbers, where an element represents the rational complex number . Let be the ring homomorphism that embeds these numbers into the complex field . For any , the product of the imaginary unit and the embedding of is equal to the embedding of the product of the rational complex number and . That is, .
For any natural number and any rational complex number , it holds that . Here, is the ring homomorphism that embeds a rational complex number into the complex numbers as .
is injective
#toComplexNum_injectiveThe map , which embeds the rational complex numbers (numbers of the form where ) into the field of complex numbers , is injective.
