section ‹K-dimensional Region Trees - Version 2› (* This version does not move quadrants by +2^n but by 2*. Is internally consistent but not the image one expects. Advantages: no need for 2^n, very concise, eg "even" test instead of ≥ 2^n. Maybe reverse bits to get the desired image? *) theory KD_Region_Tree2 imports "HOL-Library.NList" "HOL-Library.Tree" (* only for ‹height› *) begin