Space group: equal-order point groups are ordered by operator agreement before screw evidence

Two candidates of the same order were ranked by the screw absences of their own two-folds first and
by their weakest operator-class CC only then. A screw is a property of the space group inside a
point group; its absences cannot say which point group is right, yet they outranked the operator
agreement. Where a refused 422 fell back to 4 or 222 that handed 222 the tie whenever its two-folds
carried axial absences, which a 4-fold never counts: a simulated P4_3 crystal whose NCS copy sits
3 deg off a two-fold (4-fold H 0.075, pseudo two-folds 0.14) was written P2_12_12_1, and a P4_1
crystal twinned at alpha 0.45 by a two-fold P2_12_12. The tie now goes to the smaller disagreement H
of the group's worst-agreeing operator, and the screw evidence only breaks an exact tie. H and not
the CC: the CC of an operator with few pairs is read on whatever corner of reciprocal space they fall
in - ranked by CC, a monoclinic battery crystal (6p8j) took its pseudo two-fold (CC 0.90 on 2142
pairs, H 0.18) over its real one (CC 0.86 on 56583, H 0.16), and the twin-immune zone then promoted
it to 222.

A promotion's H ratio is also judged against every subgroup one order below it, the a- and c-unique
two-folds included. Those rungs are only offered by the widened enumeration and were left out as
parents, so a 222 pooling one real two-fold with two false ones was normalised against a false
one - the P4_3 crystal above read H ratio 0.73 against the pseudo two-fold on b and 1.90 against
its real two-fold on c. They still do not set the reference chi^2. Over the rotation battery's
orthorhombic merges (80 sets adopting 222, operator tables of the rc189-2 cycle) the largest ratio
against the worst-agreeing two-fold is 1.71, under the bound of 1.85.

Simulated cases (kept images, rugnux re-run): the alpha 0.45 twin P2_12_12 -> P4_1 (correct); the
P4_3 + 3 deg copy P2_12_12_1 -> P4_12_12 - 4 is now the fallback of the refused 422 and the
twin-immune zone then adopts 422 as it does on the other near-exact pseudo-symmetries (warned as
SYMMETRY_AMBIGUITY, the P4_1 merge written beside it); controls unchanged. Holton's 100 15-frame
wedges: point-group classes unchanged (41 under / 36 correct / 13 over; checked with the CC order,
which moved one under-called wedge's screw). Battery: the 17 sets whose promotion was refused plus 19
others with a fallback or doubled-cell decision (rc189-2 cycle as baseline, run with items 1-5):
no space group changes from this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-11-22 11:45:49 +01:00
1 parent 32dbc98bb1
commit a3da74b4f4
2 files changed
+35 -19

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ Both search merges also drop the **frames whose fitted per-frame scale came out
**A confirmed promotion that is refused is decided by the twin-immune zone of its added operators, and only where that is undecided by merging under it.** The zone (§13.2) is the one reading that does not depend on the per-frame scales or on a reference operator: read on the all-observation P1 merge where the two search arms disagree, and on the adopted group's own merge at the remerge, an index-2 promotion whose calibrated zone evidence is acentric by 20 nats stays refused — on all observations, and the first added operator is recorded as the twin law — and one whose zone is centric by 20 nats is taken — with a `SYMMETRY_AMBIGUITY` warning that names the lower group, because the zone rules out a twin law but not a pseudo-symmetry close to exact, which leaves the zone just as centric (simulated copies 1.5° and 3° off a 2-fold read +135 and +68 nats, a genuine promotion on the battery +143). Where the zone cannot decide (a higher index, no zone reflections in the shells with signal, within the margin, or an acentric control more compressed than a perfect twin's 0.541 — something other than a twin, the overlapping spots of a long axis, then compresses the zone too and a genuine one reads acentric), the merge is asked. Every gate that refuses a *confirmed* higher point group is a **ratio** — the added operators' disagreement against the parent's, or their $R$ against the best-agreeing operator anywhere — and both references are properties of how the crystal was mounted rather than of its symmetry. A 2-fold within a degree of the spindle records its mates on the same detector pixel half a turn later, so it carries no geometry-dependent systematic at all, and by being that clean it makes every other operator look bad against it; the best-agreeing operator can also be one of the operators under test, which collapses the ratio on worse data and raises it on better. So where a promotion is confirmed and then refused, the **merge** is asked instead of the ratio. Both groups are scaled and merged over one pinned resolution range — the adopted group's own cut — and the promotion is taken only if **neither $R_\mathrm{meas}$ nor ISa gets worse**. $R_\mathrm{meas}$ is multiplicity-corrected, so folding non-equivalent reflections together has to inflate it, and the error model is refitted per merge, so ISa says whether the extra multiplicity was bought with systematic disagreement. $CC_{1/2}$ and $\langle I/\sigma\rangle$ cannot arbitrate this: both *rise* on a false promotion too. Two details the comparison turns on: the refused point group's representative is primitive and symmorphic, so the arm merged under it takes the **adopted group's centring** — merged in the bare representative, a centred crystal is handed its centring-absent class as data, which inverts the decision — and the absence stage is asked of the adopted merge, so both arms carry the same absence classes and differ by the added rotations alone. That merge no longer holds the adopted group's screw-absent axial reflections, so the higher group also **keeps the screws the adopted group decided** — among the higher candidates the merge cannot separate, the one that predicts every such axial absence is taken — rather than the lowest-numbered one, which claims none. The cost is two extra merges, and only on a run that records a refusal, which is a few in a hundred.
**On a merge that reads twinned, the search asks the zone itself.** A twin of an index-2 subgroup by exactly the operators a promotion adds defeats every agreement gate once its fraction is high — the added operators then agree like real ones — so where the P1 merge's $\langle|L|\rangle$ lies in the partial-twin band (0.375 to 0.44), the candidate is refused when the twin-immune zone of one of its index-2 subgroups reads acentric by 20 nats. That holds for a candidate that is the whole symmetry of its lattice too: the subgroup's twin law is one of the candidate's own operators, so a crystal in 4 twinned by $k,h,\bar{l}$ is exactly such a twin of 422. Below 0.375 something other than a twin compresses the intensities, the zones with them, and they are not read. A $P3_1$ crystal twinned at $\alpha \ge 0.4$ by its 321 law, whose 32 promotion every agreement gate passed, reads −230 nats there; a body-centred crystal in 4 twinned at about 0.3, promoted to 422 at an $H$ ratio of 1.51, −58 nats. Between two candidates of the same order the one whose own two-folds carry screw absences is preferred, but an axial row whose odd class a lattice centring extinguishes is not counted where the merge reads that centring in its general reflections: on a body-centred crystal every principal row reads extinct whatever the two-folds are, which would hand 222 the tie over 4.
**On a merge that reads twinned, the search asks the zone itself.** A twin of an index-2 subgroup by exactly the operators a promotion adds defeats every agreement gate once its fraction is high — the added operators then agree like real ones — so where the P1 merge's $\langle|L|\rangle$ lies in the partial-twin band (0.375 to 0.44), the candidate is refused when the twin-immune zone of one of its index-2 subgroups reads acentric by 20 nats. That holds for a candidate that is the whole symmetry of its lattice too: the subgroup's twin law is one of the candidate's own operators, so a crystal in 4 twinned by $k,h,\bar{l}$ is exactly such a twin of 422. Below 0.375 something other than a twin compresses the intensities, the zones with them, and they are not read. A $P3_1$ crystal twinned at $\alpha \ge 0.4$ by its 321 law, whose 32 promotion every agreement gate passed, reads −230 nats there; a body-centred crystal in 4 twinned at about 0.3, promoted to 422 at an $H$ ratio of 1.51, −58 nats. Between two candidates of the same order the one whose own operators agree the better (the smaller disagreement $H$ of its worst-agreeing operator) is preferred: a screw is a property of the space group inside a point group, so its absences cannot say which point group is right, and read first they handed 222 the tie over 4 on a $P4_3$ crystal whose NCS copy sits 3° off a two-fold (4-fold $H$ 0.075, pseudo two-folds 0.14), because the pseudo two-folds carried axial absences and a 4-fold counts none. $H$ rather than the operator CC, because the CC of an operator with few pairs is read on whatever part of reciprocal space they fall in: a monoclinic crystal's pseudo two-fold read CC 0.90 on two thousand pairs against 0.86 for its real one on fifty thousand, and $H$ 0.18 against 0.16. Only where the two tie exactly - their worst operator is one they share - is the one whose own two-folds carry screw absences preferred, and an axial row whose odd class a lattice centring extinguishes is not counted there where the merge reads that centring in its general reflections: on a body-centred crystal every principal row reads extinct whatever the two-folds are. A promotion's disagreement $H$ is judged against every subgroup one order below it, the two-folds on $a$ and $c$ included, so a 222 pooling one real two-fold with two false ones is measured against the real one.
**A point group's own operators must agree with each other.** A point group is the claim that all of its operators are symmetries of one crystal, and a mixture of real and false operators has a specific shape: the real ones form a subgroup — the true group's intersection with the candidate — and everything outside it is false. The gate therefore reads the operators sorted by their $R$ against the merge, finds every prefix that closes into a subgroup, and takes the largest factor by which every operator outside such a subgroup reads worse than every operator inside it; above 3.2 the candidate is refused. A genuine group whose operators merely spread over a continuum — anisotropic systematic error spreads a cubic crystal's operators twofold — has no such gap. The earlier form, worst-agreeing over best-agreeing operator, divided by an extreme order statistic and refused a genuine $432$ as soon as one of its operators happened to agree unusually well.
+34 -18
View File
@@ -707,8 +707,8 @@ RowModulation FindRowModulation(const gemmi::UnitCell& cell, const std::array<in
std::vector<gemmi::Op> rotations; // non-identity proper rotations
const gemmi::SpaceGroup* representative = nullptr;
// This rung exists only because no reference setting names it (the a- and c-unique monoclinic
// 2-folds). It may be ADOPTED like any other, but it must not take part in judging a higher
// promotion - see the two sites that read it below.
// 2-folds). It may be ADOPTED like any other and is a parent of a higher promotion, but it does
// not set the reference chi^2 - see the site that reads it below.
bool widened = false;
};
@@ -1476,8 +1476,8 @@ SearchSpaceGroupResult SearchSpaceGroup(
// three already and drops them on the floor; the ledger is that table kept.
double parent_b_used = -1.0;
bool eligible = false;
// Offered by the closure below rather than confirmed operator by operator. Like a
// widened rung it may be ADOPTED but must not JUDGE - see the two sites that read it.
// Offered by the closure below rather than confirmed operator by operator. It may be
// ADOPTED but must not JUDGE - see the two sites that read it.
bool closure = false;
std::string why; };
int refused_order = 0;
@@ -1510,8 +1510,8 @@ SearchSpaceGroupResult SearchSpaceGroup(
//
// So the generated group is offered as a candidate too. It is PROPOSED, not adopted: it goes
// through the same chi^2, systematic-b, H and added-operator-R tests as every other candidate,
// and like a widened rung it does not set chi2_ref and is not a parent, so offering it cannot
// make any other promotion harder than it was.
// and it does not set chi2_ref and is not a parent, so offering it cannot make any other
// promotion harder than it was.
//
// EXACTLY the generated group, never a supergroup of it. Offering the smallest candidate that
// CONTAINS the generated set - to reach a rotation set the basis cannot name, such as a diagonal
@@ -1593,11 +1593,11 @@ SearchSpaceGroupResult SearchSpaceGroup(
}
// Choose the largest point group that is both operator-confirmed AND self-consistent (its merge
// chi^2 is not inflated past the miscalibration-widened bound below; ties -> higher min class CC).
// chi^2 is not inflated past the miscalibration-widened bound below; ties -> the smaller worst H).
// Identity (no operators) is always consistent, so it stays the P1 fallback.
const PointGroupInfo* best_pg = nullptr;
int best_pg_order = 0;
double best_pg_min_cc = -2.0;
double best_pg_max_h = std::numeric_limits<double>::infinity();
// The chi^2 ratio compares two merges' systematic error but divides by their total, so it only
// measures a ratio where the reference merge HAS systematic error to be the denominator. Once
// chi2_ref falls to the measurement floor a fitted error model pins it at, the bound is an
@@ -1808,11 +1808,14 @@ SearchSpaceGroupResult SearchSpaceGroup(
if (!c.pg->rotations.empty()) {
int parent_order = 0;
for (const auto& s : pg_cands)
// Same reason as chi2_ref above: a rung only the widened enumeration offers, and the
// closure proposal, are not parents. The promotion answers to the most damning of its
// parents, so admitting two more order-2 subgroups of 222 makes the 222 step strictly
// harder than it was before the rung was offered at all.
if (!s.pg->widened && !s.closure && s.order < c.order && s.order >= parent_order
// The closure proposal is not a parent (same reason as chi2_ref above). A rung only the
// widened enumeration offers is: the a- and c-unique two-folds are subgroups of 222 like
// the b-unique one, and leaving them out let a 222 built from one real two-fold and two
// false ones be normalised against a false one - a P4_3 crystal with an NCS copy 3 deg
// off a two-fold read H ratio 0.73 against the pseudo two-fold on b, 1.90 against its
// real two-fold on c. The battery's 80 orthorhombic crystals read at most 1.71 against
// their worst-agreeing two-fold.
if (!s.closure && s.order < c.order && s.order >= parent_order
&& std::includes(c.pg->rotation_set.begin(), c.pg->rotation_set.end(),
s.pg->rotation_set.begin(), s.pg->rotation_set.end())) {
if (s.order > parent_order) {
@@ -2152,16 +2155,29 @@ SearchSpaceGroupResult SearchSpaceGroup(
continue;
}
c.eligible = true;
// Ties in order go to the group whose own two-folds carry the more screw evidence (see
// screwed_two_folds), and only then to the higher class CC.
// Ties in order go to the group whose own operators agree the better - the smaller disagreement H
// of its worst-agreeing operator - and only where that ties exactly - two groups whose worst
// operator is one they share - to the one whose own two-folds carry the more screw evidence (see
// screwed_two_folds). A screw is a property of the space group inside a point group, so its
// absences cannot say which point group is right: read first, they handed 222 the tie over 4 on a
// P4_3 crystal with an NCS copy 3 deg off a two-fold, whose 4-fold reads H 0.075 against 0.14 for
// the pseudo two-folds, because those carried axial absences along a and b and a 4-fold counts
// none. H, not the operator CC: the CC of an operator with few pairs is read on whatever corner of
// reciprocal space they fall in - a monoclinic crystal's pseudo two-fold read CC 0.90 on 2142 pairs
// against 0.86 for its real one on 56583, and H 0.18 against 0.16.
double max_h = 0.0;
for (const auto& rot : c.pg->rotations) {
const auto& os = operator_score(rot);
if (os.n_pairs >= opt.min_pairs_per_operator)
max_h = std::max(max_h, os.h_stat);
}
const double screwed = screwed_two_folds(*c.pg);
if (c.order > best_pg_order
|| (c.order == best_pg_order
&& (screwed > best_pg_screwed
|| (screwed == best_pg_screwed && c.min_class_cc > best_pg_min_cc)))) {
&& (max_h < best_pg_max_h || (max_h == best_pg_max_h && screwed > best_pg_screwed)))) {
best_pg = c.pg;
best_pg_order = c.order;
best_pg_min_cc = c.min_class_cc;
best_pg_max_h = max_h;
best_pg_screwed = screwed;
}
}