Dyadic Rational
   HOME

TheInfoList



OR:

In mathematics, a dyadic rational or binary rational is a number that can be expressed as a
fraction A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
whose
denominator A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
is a
power of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number 2, two as the Base (exponentiation), base and integer  as the exponent. In the fast-growing hierarchy, is exactly equal to f_1^ ...
. For example, 1/2, 3/2, and 3/8 are dyadic rationals, but 1/3 is not. These numbers are important in
computer science Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
because they are the only ones with finite binary representations. Dyadic rationals also have applications in weights and measures, musical
time signature A time signature (also known as meter signature, metre signature, and measure signature) is an indication in music notation that specifies how many note values of a particular type fit into each measure ( bar). The time signature indicates th ...
s, and early mathematics education. They can accurately approximate any
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
. The sum, difference, or product of any two dyadic rational numbers is another dyadic rational number, given by a simple formula. However, division of one dyadic rational number by another does not always produce a dyadic rational result. Mathematically, this means that the dyadic rational numbers form a ring, lying between the ring of
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s and the field of
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example, The set of all ...
s. This ring may be denoted \Z tfrac12/math>. In advanced mathematics, the dyadic rational numbers are central to the constructions of the dyadic solenoid, Minkowski's question-mark function, Daubechies wavelets, Thompson's group, Prüfer 2-group,
surreal number In mathematics, the surreal number system is a total order, totally ordered proper class containing not only the real numbers but also Infinity, infinite and infinitesimal, infinitesimal numbers, respectively larger or smaller in absolute value th ...
s, and fusible numbers. These numbers are order-isomorphic to the rational numbers; they form a subsystem of the 2-adic numbers as well as of the reals, and can represent the
fractional part The fractional part or decimal part of a non‐negative real number x is the excess beyond that number's integer part. The latter is defined as the largest integer not greater than , called ''floor'' of or \lfloor x\rfloor. Then, the fractional ...
s of 2-adic numbers. Functions from natural numbers to dyadic rationals have been used to formalize
mathematical analysis Analysis is the branch of mathematics dealing with continuous functions, limit (mathematics), limits, and related theories, such as Derivative, differentiation, Integral, integration, measure (mathematics), measure, infinite sequences, series ( ...
in reverse mathematics.


Applications


In measurement

Many traditional systems of weights and measures are based on the idea of repeated halving, which produces dyadic rationals when measuring fractional amounts of units. The
inch The inch (symbol: in or prime (symbol), ) is a Units of measurement, unit of length in the imperial units, British Imperial and the United States customary units, United States customary System of measurement, systems of measurement. It is eq ...
is customarily subdivided in dyadic rationals rather than using a decimal subdivision. The customary divisions of the
gallon The gallon is a unit of volume in British imperial units and United States customary units. The imperial gallon (imp gal) is defined as , and is or was used in the United Kingdom and its former colonies, including Ireland, Canada, Australia ...
into half-gallons,
quart The quart (symbol: qt) is a unit of volume equal to a quarter of a gallon. Three kinds of quarts are currently used: the liquid quart and dry quart of the US customary system and the of the British imperial system. All are roughly equal ...
s,
pint The pint (, ; symbol pt, sometimes abbreviated as ''p'') is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems, it is one-eighth of a gallon. The British imperial pint ...
s, and cups are also dyadic. The ancient Egyptians used dyadic rationals in measurement, with denominators up to 64. Similarly, systems of weights from the
Indus Valley civilisation The Indus Valley Civilisation (IVC), also known as the Indus Civilisation, was a Bronze Age civilisation in the Northwestern South Asia, northwestern regions of South Asia, lasting from 3300 Common Era, BCE to 1300 BCE, and in i ...
are for the most part based on repeated halving; anthropologist Heather M.-L. Miller writes that "halving is a relatively simple operation with beam balances, which is likely why so many weight systems of this time period used binary systems".


In computing

Dyadic rationals are central to
computer science Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
as a type of fractional number that many computers can manipulate directly. In particular, as a data type used by computers, floating-point numbers are often defined as integers multiplied by positive or negative powers of two. The numbers that can be represented precisely in a floating-point format, such as the IEEE floating-point datatypes, are called its representable numbers. For most floating-point representations, the representable numbers are a subset of the dyadic rationals. The same is true for fixed-point datatypes, which also use powers of two implicitly in the majority of cases. Because of the simplicity of computing with dyadic rationals, they are also used for exact real computing using
interval arithmetic Interval arithmetic (also known as interval mathematics; interval analysis or interval computation) is a mathematical technique used to mitigate rounding and measurement errors in mathematical computation by computing function bounds. Numeri ...
, and are central to some theoretical models of computable numbers. Generating a
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
from random bits, in a fixed amount of time, is possible only when the variable has finitely many outcomes whose probabilities are all dyadic rational numbers. For random variables whose probabilities are not dyadic, it is necessary either to approximate their probabilities by dyadic rationals, or to use a random generation process whose time is itself random and unbounded.


In music

Time signature A time signature (also known as meter signature, metre signature, and measure signature) is an indication in music notation that specifies how many note values of a particular type fit into each measure ( bar). The time signature indicates th ...
s in Western
musical notation Musical notation is any system used to visually represent music. Systems of notation generally represent the elements of a piece of music that are considered important for its performance in the context of a given musical tradition. The proce ...
traditionally are written in a form resembling fractions (for example: , , or ), although the horizontal line of the musical staff that separates the top and bottom number is usually omitted when writing the signature separately from its staff. As fractions they are generally dyadic, although non-dyadic time signatures have also been used. The numeric value of the signature, interpreted as a fraction, describes the length of a measure as a fraction of a
whole note A whole note (American) or semibreve (British) in musical notation is a single note equivalent to or lasting as long as two half notes or four quarter notes. Description The whole note or semibreve has a note head in the shape of a hollow ov ...
. Its numerator describes the number of beats per measure, and the denominator describes the length of each beat.


In mathematics education

In theories of childhood development of the concept of a fraction based on the work of
Jean Piaget Jean William Fritz Piaget (, ; ; 9 August 1896 – 16 September 1980) was a Swiss psychologist known for his work on child development. Piaget's theory of cognitive development and epistemological view are together called genetic epistemology. ...
, fractional numbers arising from halving and repeated halving are among the earliest forms of fractions to develop. This stage of development of the concept of fractions has been called "algorithmic halving". Addition and subtraction of these numbers can be performed in steps that only involve doubling, halving, adding, and subtracting integers. In contrast, addition and subtraction of more general fractions involves integer multiplication and factorization to reach a common denominator. Therefore, dyadic fractions can be easier for students to calculate with than more general fractions.


Definitions and arithmetic

The dyadic numbers are the
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example, The set of all ...
s that result from dividing an
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
by a
power of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number 2, two as the Base (exponentiation), base and integer  as the exponent. In the fast-growing hierarchy, is exactly equal to f_1^ ...
. A rational number p/q in simplest terms is a dyadic rational when q is a power of two. Another equivalent way of defining the dyadic rationals is that they are the
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s that have a terminating binary representation.
Addition Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
,
subtraction Subtraction (which is signified by the minus sign, –) is one of the four Arithmetic#Arithmetic operations, arithmetic operations along with addition, multiplication and Division (mathematics), division. Subtraction is an operation that repre ...
, and
multiplication Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
of any two dyadic rationals produces another dyadic rational, according to the following formulas: : \begin \frac+\frac&=\frac \\ px\frac-\frac&=\frac \\ px\frac\cdot \frac &= \frac \end However, the result of dividing one dyadic rational by another is not necessarily a dyadic rational. For instance, 1 and 3 are both dyadic rational numbers, but 1/3 is not.


Additional properties

Every integer, and every half-integer, is a dyadic rational. They both meet the definition of being an integer divided by a power of two: every integer is an integer divided by one (the zeroth power of two), and every half-integer is an integer divided by two. Every
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
can be arbitrarily closely approximated by dyadic rationals. In particular, for a real number x, consider the dyadic rationals of the form where i can be any integer and \lfloor\dots\rfloor denotes the
floor function In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
that rounds its argument down to an integer. These numbers approximate x from below to within an error of 1/2^i, which can be made arbitrarily small by choosing i to be arbitrarily large. For a
fractal In mathematics, a fractal is a Shape, geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension. Many fractals appear similar at various scale ...
subset of the real numbers, this error bound is within a constant factor of optimal: for these numbers, there is no approximation n/2^i with error smaller than a constant times 1/2^i.More precisely, for small positive values of \varepsilon, the set of real numbers that have no approximation n/2^i with error smaller than a constant times \varepsilon/2^i forms a
Cantor set In mathematics, the Cantor set is a set of points lying on a single line segment that has a number of unintuitive properties. It was discovered in 1874 by Henry John Stephen Smith and mentioned by German mathematician Georg Cantor in 1883. Throu ...
whose
Hausdorff dimension In mathematics, Hausdorff dimension is a measure of ''roughness'', or more specifically, fractal dimension, that was introduced in 1918 by mathematician Felix Hausdorff. For instance, the Hausdorff dimension of a single point is zero, of a line ...
, as a function of \varepsilon, goes to one as \varepsilon approaches zero. The illustration shows this set for \varepsilon=\tfrac16.
The existence of accurate dyadic approximations can be expressed by saying that the set of all dyadic rationals is dense in the
real line A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin (geometry), origin point representing the number zero and evenly spaced mark ...
. More strongly, this set is uniformly dense, in the sense that the dyadic rationals with denominator 2^i are uniformly spaced on the real line. The dyadic rationals are precisely those numbers possessing finite binary expansions. Their binary expansions are not unique; there is one finite and one infinite representation of each dyadic rational other than 0 (ignoring terminal 0s). For example, 0.112 = 0.10111...2, giving two different representations for 3/4. The dyadic rationals are the only numbers whose binary expansions are not unique.


In advanced mathematics


Algebraic structure

Because they are closed under addition, subtraction, and multiplication, but not division, the dyadic rationals are a ring but not a field. The ring of dyadic rationals may be denoted \Z tfrac12/math>, meaning that it can be generated by evaluating polynomials with integer coefficients, at the argument 1/2. As a ring, the dyadic rationals are a
subring In mathematics, a subring of a ring is a subset of that is itself a ring when binary operations of addition and multiplication on ''R'' are restricted to the subset, and that shares the same multiplicative identity as .In general, not all s ...
of the rational numbers, and an overring of the integers. Algebraically, this ring is the localization of the integers with respect to the set of
powers of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In the fast-growing hierarchy, is exactly equal to f_1^n(1). In the Hardy hi ...
. As well as forming a subring of the
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, the dyadic rational numbers form a subring of the 2-adic numbers, a system of numbers that can be defined from binary representations that are finite to the right of the binary point but may extend infinitely far to the left. The 2-adic numbers include all rational numbers, not just the dyadic rationals. Embedding the dyadic rationals into the 2-adic numbers does not change the arithmetic of the dyadic rationals, but it gives them a different topological structure than they have as a subring of the real numbers. As they do in the reals, the dyadic rationals form a dense subset of the 2-adic numbers, and are the set of 2-adic numbers with finite binary expansions. Every 2-adic number can be decomposed into the sum of a 2-adic integer and a dyadic rational; in this sense, the dyadic rationals can represent the
fractional part The fractional part or decimal part of a non‐negative real number x is the excess beyond that number's integer part. The latter is defined as the largest integer not greater than , called ''floor'' of or \lfloor x\rfloor. Then, the fractional ...
s of 2-adic numbers, but this decomposition is not unique. Addition of dyadic rationals modulo 1 (the
quotient group A quotient group or factor group is a mathematical group obtained by aggregating similar elements of a larger group using an equivalence relation that preserves some of the group structure (the rest of the structure is "factored out"). For ex ...
\Z tfrac12\Z of the dyadic rationals by the integers) forms the Prüfer 2-group.


Dyadic solenoid

Considering only the addition and subtraction operations of the dyadic rationals gives them the structure of an additive
abelian group In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commu ...
. Pontryagin duality is a method for understanding abelian groups by constructing dual groups, whose elements are characters of the original group,
group homomorphism In mathematics, given two groups, (''G'',∗) and (''H'', ·), a group homomorphism from (''G'',∗) to (''H'', ·) is a function ''h'' : ''G'' → ''H'' such that for all ''u'' and ''v'' in ''G'' it holds that : h(u*v) = h(u) \cdot h(v) whe ...
s to the multiplicative group of the
complex number In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s, with pointwise multiplication as the dual group operation. The dual group of the additive dyadic rationals, constructed in this way, can also be viewed as a
topological group In mathematics, topological groups are the combination of groups and topological spaces, i.e. they are groups and topological spaces at the same time, such that the continuity condition for the group operations connects these two structures ...
. It is called the dyadic solenoid, and is isomorphic to the topological product of the real numbers and 2-adic numbers, quotiented by the diagonal embedding of the dyadic rationals into this product. It is an example of a
protorus In mathematics, a protorus is a compact space, compact connected space, connected topological abelian group. Equivalently, it is a projective limit of torus, tori (products of a finite number of copies of the circle group), or the Pontryagin dual o ...
, a
solenoid upright=1.20, An illustration of a solenoid upright=1.20, Magnetic field created by a seven-loop solenoid (cross-sectional view) described using field lines A solenoid () is a type of electromagnet formed by a helix, helical coil of wire whos ...
, and an indecomposable continuum.


Functions with dyadic rationals as distinguished points

Because they are a dense subset of the real numbers, the dyadic rationals, with their numeric ordering, form a
dense order In mathematics, a partial order or total order < on a X is said to be dense if, for all x
. As with any two unbounded countable dense linear orders, by Cantor's isomorphism theorem, the dyadic rationals are order-isomorphic to the rational numbers. In this case, Minkowski's question-mark function provides an order-preserving
bijection In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equival ...
between the set of all rational numbers and the set of dyadic rationals. The dyadic rationals play a key role in the analysis of Daubechies wavelets, as the set of points where the scaling function of these wavelets is non-smooth. Similarly, the dyadic rationals parameterize the discontinuities in the boundary between stable and unstable points in the parameter space of the Hénon map. The set of piecewise linear
homeomorphism In mathematics and more specifically in topology, a homeomorphism ( from Greek roots meaning "similar shape", named by Henri Poincaré), also called topological isomorphism, or bicontinuous function, is a bijective and continuous function ...
s from the
unit interval In mathematics, the unit interval is the closed interval , that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1. It is often denoted ' (capital letter ). In addition to its role in real analysi ...
to itself that have power-of-2 slopes and dyadic-rational breakpoints forms a group under the operation of
function composition In mathematics, the composition operator \circ takes two function (mathematics), functions, f and g, and returns a new function h(x) := (g \circ f) (x) = g(f(x)). Thus, the function is function application, applied after applying to . (g \c ...
. This is Thompson's group, the first known example of an infinite but finitely presented
simple group SIMPLE Group Limited is a conglomeration of separately run companies that each has its core area in International Consulting. The core business areas are Legal Services, Fiduciary Activities, Banking Intermediation and Corporate Service. The d ...
. The same group can also be represented by an action on rooted binary trees, or by an action on the dyadic rationals within the unit interval.


Other related constructions

In reverse mathematics, one way of constructing the
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s is to represent them as functions from unary numbers to dyadic rationals, where the value of one of these functions for the argument i is a dyadic rational with denominator 2^i that approximates the given real number. Defining real numbers in this way allows many of the basic results of
mathematical analysis Analysis is the branch of mathematics dealing with continuous functions, limit (mathematics), limits, and related theories, such as Derivative, differentiation, Integral, integration, measure (mathematics), measure, infinite sequences, series ( ...
to be proven within a restricted theory of
second-order arithmetic In mathematical logic, second-order arithmetic is a collection of axiomatic systems that formalize the natural numbers and their subsets. It is an alternative to axiomatic set theory as a foundation of mathematics, foundation for much, but not all, ...
called "feasible analysis" (BTFA). The
surreal number In mathematics, the surreal number system is a total order, totally ordered proper class containing not only the real numbers but also Infinity, infinite and infinitesimal, infinitesimal numbers, respectively larger or smaller in absolute value th ...
s are generated by an iterated construction principle which starts by generating all finite dyadic rationals, and then goes on to create new and strange kinds of infinite, infinitesimal and other numbers. This number system is foundational to
combinatorial game theory Combinatorial game theory is a branch of mathematics and theoretical computer science that typically studies sequential games with perfect information. Research in this field has primarily focused on two-player games in which a ''position'' ev ...
, and dyadic rationals arise naturally in this theory as the set of values of certain combinatorial games. The fusible numbers are a subset of the dyadic rationals, the closure of the set \ under the operation x,y\mapsto(x+y+1)/2, restricted to pairs x,y with , x-y, <1. They are
well-order In mathematics, a well-order (or well-ordering or well-order relation) on a set is a total ordering on with the property that every non-empty subset of has a least element in this ordering. The set together with the ordering is then calle ...
ed, with
order type In mathematics, especially in set theory, two ordered sets and are said to have the same order type if they are order isomorphic, that is, if there exists a bijection (each element pairs with exactly one in the other set) f\colon X \to Y su ...
equal to the
epsilon number In mathematics, the epsilon numbers are a collection of transfinite numbers whose defining property is that they are fixed points of an exponential map. Consequently, they are not reachable from 0 via a finite series of applications of the chos ...
\varepsilon_0. For each integer n the smallest fusible number that is greater than n has the form n+1/2^k. The existence of k for each n cannot be proven in
Peano arithmetic In mathematical logic, the Peano axioms (, ), also known as the Dedekind–Peano axioms or the Peano postulates, are axioms for the natural numbers presented by the 19th-century Italian mathematician Giuseppe Peano. These axioms have been used nea ...
, and k grows so rapidly as a function of n that for n=3 it is (in
Knuth's up-arrow notation In mathematics, Knuth's up-arrow notation is a method of notation for very large integers, introduced by Donald Knuth in 1976. In his 1947 paper, R. L. Goodstein introduced the specific sequence of operations that are now called ''hyperoperatio ...
for large numbers) already larger than 2\uparrow^9 16. The usual proof of Urysohn's lemma utilizes the dyadic fractions for constructing the separating function from the lemma.


References

{{Ring theory sidebar Fractions (mathematics) Rational numbers Ring theory Number theory