Provedmachine-checked: its own exact check passesid simulations.averaged-pair-operator, version 6
The averaged pair operator $P_{ij}$ is symmetric, so the contracted forces conserve momentum and, step by step, energy; it is the sheet projection for parallel normals and is idempotent only when the normals agree up to sign.
The simulations model three-dimensional dark matter as sheets that can only push along their own surface. Forces between two such particles are filtered through an averaged projection that keeps the part lying in the sheets. This result checks that the filter still conserves momentum and, within each step, energy, that it is an exact projection when the sheets are parallel, and that it is only a partial one when they are not.
(i) $P_{ij}$ is symmetric in $i$ and $j$ and $\mathbf{g}_{ij} = -\mathbf{g}_{ji}$, so the force of $j$ on $i$, $-m_{i}m_{j}F_{ij}P_{ij}\mathbf{g}_{ij}$ with $F_{ij}$ the symmetric bracket, is minus the force of $i$ on $j$. The kinetic power of the pair is $-m_{i}m_{j}F_{ij}\,\mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$, and the two internal-energy terms sum to $+m_{i}m_{j}F_{ij}\,\mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$, since $\mathbf{v}_{ji}\cdot P_{ji}\mathbf{g}_{ji} = \mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$ and the viscous term is split equally. (ii) With $Q(\mathbf{n}) = \mathbf{n}\mathbf{n} = 1$ (The product of two vectors) and $\mathbf{v}\mathbf{n} = \mathbf{v}\cdot\mathbf{n} + \mathbf{v}\wedge\mathbf{n}$ (A vector times a multivector), $(\mathbf{v}\wedge\mathbf{n})\mathbf{n} = (\mathbf{v}\mathbf{n} - \mathbf{v}\cdot\mathbf{n})\mathbf{n} = \mathbf{v} - (\mathbf{v}\cdot\mathbf{n})\mathbf{n}$, which is $P_{ij}(\mathbf{v})$ for $\mathbf{n}_{i} = \mathbf{n}_{j} = \mathbf{n}$. (iii) For $\mathbf{n}_{i}\perp\mathbf{n}_{j}$, $P_{ij}\mathbf{n}_{i} = \tfrac{1}{2}\mathbf{n}_{i}$, $P_{ij}\mathbf{n}_{j} = \tfrac{1}{2}\mathbf{n}_{j}$ and $P_{ij}$ fixes the direction dual to $\mathbf{n}_{i}\wedge\mathbf{n}_{j}$, $(\mathbf{n}_{i}\wedge\mathbf{n}_{j})I_{3}$ with $I_{3}$ the pseudoscalar of $\Cl(3,0)$, so $P_{ij}^{2} \ne P_{ij}$; in general $P_{ij}$ is idempotent only when $(\mathbf{v}\cdot\mathbf{n}_{i})\mathbf{n}_{i} = (\mathbf{v}\cdot\mathbf{n}_{j})\mathbf{n}_{j}$ for every $\mathbf{v}$, that is $\mathbf{n}_{i} = \pm\mathbf{n}_{j}$. Not covered by (i): variable smoothing lengths without correction terms, and what acts after these equations (the integrator, the energy floor and cooling). The script checks (i) on a rational instance with distinct normals and viscosity, (ii) exactly in the blade engine, and (iii) in exact rationals.
none
check.py::check_conservationcheck.py::check_parallel_normals_rejectioncheck.py::check_orthogonal_normals_and_idempotenceRun them on a clone of the repository: python -m tp check-one simulations.averaged-pair-operator --store store
Leon Butler (idea, direction and review); Claude Fable 5 (mathematics and drafting); Claude Opus 5.5 (consistency pass, the pair operator written as a linear map of vectors, the cross product as the dual of the outer product, version 6).