Left to Solve
Problems / MathOverflow (not formalized)

Bijective voxel surface compression

Open, not yet stated in LeanMathOverflow (not formalized)Combinatoricsdifficulty55/100

Statement

Motivation

It's straightforward to see that in any 4x4x4 voxel grid, if we represent voxels as being either solid (1) or empty (0), we can represent that grid as a 64-bit unsigned integer. Using the provided mathematical proof, we can see that there are unique representations of the surface topography of the set of all 4x4x4 voxel grids.

Extrapolating from this, my objective is to come up with a bijective 64 ↔ 32 bit voxel surface compression algorithm which would be helpful in voxel rendering. However I couldn't find any efficient algorithm or lightweight lookup table to facilitate this encode/decode pattern. It's a shame because this could be a very powerful tool in the field of voxel rendering where we often only care about the voxels on the surface "shell" and can ignore the inner structure.

To better depict the objective, here's an example with the original shape in blue and the compressed and uncompressed shape in green:

In layer 2 we do lose some voxels which are theoretically visible but from a "surface shell reconstruction" perspective are not strictly necessary.

Here's the full problem statement and proof in case anyone wants to give this a shot:

Problem …

Posed by Kael Eppcohen · co.combinatorics, computational-geometry

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-488962.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-488962.lean

import Mathlib

/-!
# Bijective voxel surface compression

Source: https://mathoverflow.net/questions/488962
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_488962

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_488962