We present a newly developed, self-contained theory for discrete space-filling curves (SFCs). Mesh partitioning according to such SFCs has been established as a fast and reliable technique, in particular when combined with frequent adaptive mesh refinement (AMR) and coarsening. SFCs map the elements of a uniform or adaptive mesh onto a finite index set, thus providing a linear order of the elements. AMR operations change this order only locally. In addition to practical use in HPC, investigating the properties of SFCs and developing new constructions are subjects of many theoretical studies. The definition for discrete SFCs is usually stated as an iteration step in a sequence that converges to an analytical SFC, or provided in the langua...