dual_process_verdict tool v0.1

STEP: 1515 / 公開日: 2026-08-28 / Test: 28/28 PASS / Lean 4: 7 theorem zero sorry / Type: STEP 1504 認知科学 arc candidate #1 実装 (cognitive science domain 未着手 first)

Kahneman-Tversky dual-process theory: System 1 (直感) と System 2 (熟考) の 出力 → verdict。 一致 → TRUE (double confirmation)、 不一致 → BOTH (dual-process conflict ★)、 unavailable → NEITHER。

Generic type: string / number / boolean 全対応、 T generic parameter で 型 preserve。

10 姉妹 verdict tool 目 (cognitive science domain 未着手 first)。

決定表 (5 case)

#ConditionVerdictReason
1両方 null/undefinedNEITHERneither_active
2system1 のみ availableTRUEs1_only_available
3system2 のみ availableTRUEs2_only_available
4両方 present, 出力一致TRUEboth_agree_double_confirm
5両方 present, 出力不一致BOTH ★dual_process_conflict

使用例

// A: neither → NEITHER
dualProcessVerdict({});
// { verdict: 'NEITHER', reason: 'neither_active', agreedAnswer: null }

// B: s1 only → TRUE (intuitive answer available)
dualProcessVerdict({ system1: 'gut says A' });
// { verdict: 'TRUE', reason: 's1_only_available', agreedAnswer: 'gut says A' }

// C: both agree → TRUE (double confirmation)
dualProcessVerdict({ system1: 42, system2: 42 });
// { verdict: 'TRUE', reason: 'both_agree_double_confirm', agreedAnswer: 42 }

// D: both disagree → BOTH ★ dual-process conflict
dualProcessVerdict({ system1: 'gut_says_X', system2: 'thought_says_Y' });
// { verdict: 'BOTH', reason: 'dual_process_conflict', agreedAnswer: null }
// = 直感 と 熟考 が 分かれた case、 追加 熟考 or 判断保留 discipline

// Generic: boolean type
dualProcessVerdict<boolean>({ system1: true, system2: false });
// { verdict: 'BOTH' }

Lean 4 (7 theorem zero sorry)

dp_neither_gives_neither       : neither → NEITHER
dp_s1_only_gives_true          : s1 only → TRUE
dp_s2_only_gives_true          : s2 only → TRUE
dp_both_agree_gives_true       : both agree → TRUE
dp_both_disagree_gives_both    : both disagree → BOTH ★
outputs_equal_agrees           : Nat 出力 equality
outputs_diff_disagrees         : Nat 出力 disequality

Test coverage (28/28 PASS)

Neither 2 + s1/s2 only 4 + both agree 3 + both disagree ★ 6 + Numeric 4 + Boolean 4 + Determinism 5

Rei stack との 対応

姉妹 verdict tool 群 (10 tool 揃った)

#toolSTEP
1d8_verdict_from_measurement (SNR)1350
2d8_verdict_from_multi_trial (BH FDR)1371
3d8_verdict_from_sample_pair (Welch)1376+1379
4shannonEntropyVerdict (分布)1499
5peaceAxiomVerdict (payoffs)1506
6hammingDistanceGate (bit strings)1507
7lyapunovVerdict (V(t))1509
8waGaVerdict (「は/が」)1510
9evolutionVerdict (population)1514
10dualProcessVerdict (S1/S2)1515

Honest scope

❶ 単純 equality 判定のみ (semantic similarity は 呼び出し側)。 「gut says X」 vs 「gut is X」 の semantic 一致は 判別しない (文字列 strict compare)。

❷ Kahneman-Tversky theory は 診断的 mapping、 real cognitive architecture (dual-process model 論争 Evans-Stanovich 等) 未 embed。

❸ 「世界初」 なし = Kahneman 2011 既知 の D-FUMT₈ verdict mapping。 novelty = 10 姉妹 tool 統一 API 拡張。

❹ 累計 defer 42 → 41 (本 tool 実装)。