feat(spatial): 诱饵隐藏家族 area.sup2d / dof.c6d,与新的 unknown 语义对齐

单调规则之后,隐藏家族变成"永远 unknown",于是"看到隐藏就弃权"成了完美答案,
反而不区分任何能力。新增两个族:诱饵块 H 自己藏在视野外、悬挂在地面上而从不悬挂
在目标上,可见结构仍能证明目标成立 —— 同族内因此既有可判也有不可判。

同时把 check_insufficient 改到新语义:unknown 不再意味着"手上那个全状态给出相反
答案",而是"观测没有裁决它且确有内容被隐藏"。
This commit is contained in:
x committed 2026-12-03 20:48:01 +08:00
1 parent 813be2906b
commit c3748c36c7
2 files changed
+46 -11

No files matched your search

+16 -7
View File
@@ -83,23 +83,32 @@ def check_labels() -> bool:
def check_insufficient() -> bool:
"""The point of the unknown label: identical observation, opposite truth."""
"""The point of the unknown label: the observation does not settle it.
Under the monotone rule an unknown label no longer implies that *the one full
state we hold* answers differently from the observation's own world -- it
implies that the withheld content could be the missing piece. So the check is
that something is withheld and the visible structure does not already prove
the answer, which is exactly the condition the label promises.
"""
found = 0
for fam in ("cond.p1h", "area.sup2h", "dof.c6h"):
for fam in generator.FAMILIES:
for i in range(8):
sc = generator.make(fam, seed=5, index=i)
if sc.label.answer != "unknown":
continue
restricted = FullState(entities=list(sc.obs.entities), edges=list(sc.obs.edges))
a_full = checker.evaluate(sc.full.entities, sc.full.edges, sc.query)
a_obs = checker.evaluate(restricted.entities, restricted.edges, sc.query)
if a_full != a_obs:
a_vis = checker.evaluate(restricted.entities, restricted.edges, sc.query)
withheld = bool(sc.obs.dangling) or bool((sc.obs.hidden or {}).get("entity")) \
or bool((sc.obs.hidden or {}).get("edge"))
if withheld and a_vis is not True:
found += 1
else:
return _fail(f"{fam}[{i}] unknown but both worlds agree; label is not justified")
return _fail(f"{fam}[{i}] unknown without withheld content or with a "
f"visible proof; label is not justified")
if found == 0:
return _fail("no insufficient-evidence sample was produced")
print(f"ok {found} unknown samples have same observation, different truth")
print(f"ok {found} unknown samples are undecided by the observation")
return True