The earliest available mathematical documents (
see the article "Sources and the variety of so-called Chinese mathematics") date from the beginnings of the Chinese Empire, whose first phase of political unification took place between the third century BCE and the third century CE. It was during this period that the essential institutions of the Empire were put in place, including in the sphere of knowledge: archives were organized, bibliographies were drawn up, and data—astronomical data, for instance—were collected during measurement campaigns and put in order. This was also the time when the classics, such as the Confucian texts in philosophy, were defined as such, and when work was undertaken to establish their text. The same holds for mathematics: probably in the first century, the work that was to become, in a sense, the classic of the discipline was completed:
The Nine Chapters on Mathematical Procedures (
see the article "The Nine Chapters, a foundational work"), whose title will hereafter be abbreviated to
The Nine Chapters. The editorial work that produced this text continued over centuries, beginning, according to the earliest available testimony, in the second century BCE, and drawing on fragments of ancient texts. We are still unable to describe the genesis of this synthesis of earlier mathematical knowledge. However, since the 1980s, archaeology has been bringing to light mathematical manuscripts from the early Empire and gradually providing elements of an answer to this question. Many later mathematicians, up to the 17
th century, would refer to this work, work on it, and take it as both a source and a model.