{
  "schema_version": "ocme-reviewed-question-reader-v1",
  "question_id": "q-20260930-r04-composition-table-evaluation-0016",
  "pilot_number": "R0005-03116",
  "number": 3116,
  "family_id": "qf-composition-table-evaluation",
  "title": {
    "zh-Hant": "第 3116 題：有限函數表的合成值",
    "en": "Question 3116: Composition Value from Finite Function Tables"
  },
  "original_question": {
    "schema_version": "ocme-question-v0.1",
    "id": "q-20260930-r04-composition-table-evaluation-0016",
    "batch_id": "batch-20260930-r04-composition-foundations",
    "language": "zh-Hant",
    "source_mko_ids": [
      "mko-composition"
    ],
    "title_zh": "有限函數表的合成值",
    "stem_zh": "明示總函數 f:A→B、g:B→C，A={3, 4, 5}、B={-17, 0, 18}、C={-31, 0, 34}；f 表=[(3, -17), (4, 0), (5, 18)]，g 表=[(-17, -31), (0, 34), (18, 0)]。求 (g∘f)(3)。",
    "answer": {
      "kind": "short_text",
      "value": "-31",
      "explanation_zh": "先取 f(3)，再以其中間值查 g 表；中間值與結果為 -17, -31。"
    },
    "difficulty": {
      "band": "upper_secondary",
      "level": 1,
      "skills": [
        "中間值",
        "總函數合成"
      ]
    },
    "variant": {
      "family_id": "qf-composition-table-evaluation",
      "seed": 202609304116,
      "parameters": {
        "operation": "table_evaluate",
        "A": [
          3,
          4,
          5
        ],
        "B": [
          -17,
          0,
          18
        ],
        "C": [
          -31,
          0,
          34
        ],
        "F": [
          [
            3,
            -17
          ],
          [
            4,
            0
          ],
          [
            5,
            18
          ]
        ],
        "G": [
          [
            -17,
            -31
          ],
          [
            0,
            34
          ],
          [
            18,
            0
          ]
        ],
        "x": 3,
        "semantic_template": "qf-composition-table-evaluation/{\"A\":[3,4,5],\"B\":[-17,0,18],\"C\":[-31,0,34],\"F\":[[3,-17],[4,0],[5,18]],\"G\":[[-17,-31],[0,34],[18,0]],\"operation\":\"table_evaluate\",\"x\":3}"
      }
    },
    "verification": {
      "status": "candidate",
      "checks": [
        "json_schema",
        "producer_local_answer_invariants",
        "explanation_witness_accuracy"
      ],
      "warning_zh": "本題保持 candidate；有限精確計算與產生者自檢不構成人工審查、形式證明或主架構者驗收。"
    },
    "provenance": {
      "generator_role": "question_producer",
      "generator_model": "Codex GPT-6 question producer",
      "generated_at": "2026-09-30",
      "contract_version": "ocme-question-factory-v0.1"
    }
  },
  "original_english_edition": {
    "schema_version": "ocme-question-localization-v0.1",
    "question_id": "q-20260930-r04-composition-table-evaluation-0016",
    "batch_id": "batch-20260930-r04-composition-foundations",
    "locale": "en",
    "translation_state": "ai_candidate",
    "source": {
      "question_sha256": "e50c4447bd79a2e3af6194fc81cb966185d35e7d261d5f2e613a6852dd1f0a44",
      "family_id": "qf-composition-table-evaluation",
      "seed": 202609304116,
      "semantic_template": "qf-composition-table-evaluation/{\"A\":[3,4,5],\"B\":[-17,0,18],\"C\":[-31,0,34],\"F\":[[3,-17],[4,0],[5,18]],\"G\":[[-17,-31],[0,34],[18,0]],\"operation\":\"table_evaluate\",\"x\":3}"
    },
    "fields": {
      "title": "Composition Value from Finite Function Tables",
      "stem": "The explicit total functions have A={3, 4, 5}, B={-17, 0, 18}, C={-31, 0, 34}, f=[(3, -17), (4, 0), (5, 18)], and g=[(-17, -31), (0, 34), (18, 0)]. Find (g∘f)(3).",
      "answer": {
        "kind": "short_text",
        "value": "-31",
        "explanation": "First read f(3)=-17, then use that intermediate input in g to obtain -31."
      },
      "skills": [
        "intermediate value",
        "composition of total functions"
      ],
      "verification_warning": "This is a candidate exercise. Mechanical recomputation checks only the stated conditions and this instance; it is neither a formal proof nor human review."
    }
  },
  "givens": [
    {
      "id": "G001",
      "text": {
        "zh-Hant": "明示總函數 f:A→B、g:B→C，A={3, 4, 5}、B={-17, 0, 18}、C={-31, 0, 34}；f 表=[(3, -17), (4, 0), (5, 18)]，g 表=[(-17, -31), (0, 34), (18, 0)]。求 (g∘f)(3)。",
        "en": "The explicit total functions have A={3, 4, 5}, B={-17, 0, 18}, C={-31, 0, 34}, f=[(3, -17), (4, 0), (5, 18)], and g=[(-17, -31), (0, 34), (18, 0)]. Find (g∘f)(3)."
      }
    }
  ],
  "steps": [
    {
      "id": "S001",
      "uses": [
        "G001"
      ],
      "before": "(g∘f)(x)",
      "after": "g(f(x)):apply f first,then g",
      "relation": "implies",
      "rule_id": "composition_order",
      "conditions": [],
      "explanation": {
        "zh-Hant": "合成符號的右邊函數先作用，不是把兩個函數值相乘。",
        "en": "The function on the right acts first;composition is not multiplication of two function values."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S002",
      "uses": [
        "G001",
        "S001"
      ],
      "before": "f:A→B;g:D→C;D={-17, 0, 18}",
      "after": "both tables are total on their declared domains",
      "relation": "implies",
      "rule_id": "composition_totality_guard",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐表確認每個來源輸入恰有一值且輸出合法；g的定義域D不必等於f的陪域B。",
        "en": "Audit totality and codomain membership for each table;g's domain D need not equal f's codomain B."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S003",
      "uses": [
        "G001",
        "S002"
      ],
      "before": "x=3;f(x)=-17;D={-17, 0, 18}",
      "after": "f(x)∈D=是",
      "relation": "implies",
      "rule_id": "composition_domain_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "輸入可用當且僅當f的中間值落在g的定義域；不能只看x是否在B。",
        "en": "An input is permitted exactly when its intermediate f-value lies in g's domain;membership of x in B is not the criterion."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S004",
      "uses": [
        "G001",
        "S003"
      ],
      "before": "x=4;f(x)=0;D={-17, 0, 18}",
      "after": "f(x)∈D=是",
      "relation": "implies",
      "rule_id": "composition_domain_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "輸入可用當且僅當f的中間值落在g的定義域；不能只看x是否在B。",
        "en": "An input is permitted exactly when its intermediate f-value lies in g's domain;membership of x in B is not the criterion."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S005",
      "uses": [
        "G001",
        "S004"
      ],
      "before": "x=5;f(x)=18;D={-17, 0, 18}",
      "after": "f(x)∈D=是",
      "relation": "implies",
      "rule_id": "composition_domain_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "輸入可用當且僅當f的中間值落在g的定義域；不能只看x是否在B。",
        "en": "An input is permitted exactly when its intermediate f-value lies in g's domain;membership of x in B is not the criterion."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S006",
      "uses": [
        "G001",
        "S005"
      ],
      "before": "x=3∈A;f(3)=-17∈D",
      "after": "g(-17)=-31∈C",
      "relation": "implies",
      "rule_id": "composition_table_lookup",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先依x查f，再用所得中間值查g；兩個查表鍵不可混用。",
        "en": "Look up f at x,then g at the intermediate value;do not interchange the lookup keys."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "回到原始資料與本步條件核對，不把單向推論誤稱等價。",
          "en": "Check against the original data and this step's premises; a one-way implication is not an equivalence."
        }
      },
      "arithmetic": null
    }
  ],
  "math_model": {
    "result": -31,
    "intermediate_f": -17,
    "domain_rows": [
      [
        3,
        -17,
        true
      ],
      [
        4,
        0,
        true
      ],
      [
        5,
        18,
        true
      ]
    ]
  },
  "conclusion": {
    "canonical_value": "-31",
    "explanation": {
      "zh-Hant": "依上列完整代值及條件核對得到原題答案；原題編號、格式與狀態保持不變。",
      "en": "The full substitutions and premise checks give the original answer; source identity,format and status are unchanged."
    }
  },
  "definition_note": {
    "zh-Hant": "沿用原題明示的論域、假設與來源 MKO 定義。本題已完成第二對話數理與中英語義覆核，並由原始參數逐題獨立重算模型、答案與每個算術步驟；原題仍為 candidate。",
    "en": "Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate."
  },
  "source": {
    "input_commit": "0f7be61e2c22317a4075561dc822c87d881a50db",
    "question_binding": {
      "batch_id": "batch-20260930-r04-composition-foundations",
      "batch_path": "public/data/questions/batches/batch-20260930-r04-composition-foundations/questions.jsonl",
      "batch_sha256": "36c06ad1401a2402e83fc4db2843422ed626fdaa20ea488f30a0832aaf4c781f",
      "original_line": 41,
      "original_line_sha256": "1b1efe660a4a2c7f77486c10e0e4e871cbdb3962ee4f7d79ba50206e91f4f3f6",
      "question_compact_sha256": "e50c4447bd79a2e3af6194fc81cb966185d35e7d261d5f2e613a6852dd1f0a44",
      "english_row_compact_sha256": "0c131d77a9dced7786a20d20012a9dacff39a02226fe2da7ebbe374aed1c8d36",
      "english_manifest_path": "public/data/i18n/editions/batch-20260930-r04-composition-foundations.en.json",
      "english_rows_path": "public/data/i18n/questions/batch-20260930-r04-composition-foundations.en.jsonl"
    },
    "mko_bindings": {
      "mko-composition": {
        "sha256": "a915b980c52ed5cfa4fd9ef59e2a23ef237a0eebbe262cd6f1a67b15f052bfa9",
        "english_sha256": "702841fe3d6cacc8f4b48338fbd4fc96731540292253b3030c43dce8e1cf1979",
        "original_path": "public/data/mko/composition.json",
        "english_path": "public/data/i18n/editions/mko-composition.en.json"
      }
    },
    "selected_manifest_sha256": "5233edba9654a6cffd8b6b2d83c932f82ded15f9c0b7c733bd049943e672acff",
    "selected_part_sha256": "66b95c054a23815e6aa9999f9605667abcb96e0c5a97b71cd67b67041065878a",
    "original_candidate_sha256": "bb9732e7c920cc3677ddfbda14165b614c886f9a29041a36f186e0cbcf111a9c",
    "original_candidate_line_sha256": "bb9732e7c920cc3677ddfbda14165b614c886f9a29041a36f186e0cbcf111a9c"
  },
  "historical_source_state": {
    "review_state": {
      "derivation": "candidate_authored_and_locally_checked",
      "source_question_state": "candidate",
      "independent_AI_or_human_review": "NOT_PERFORMED",
      "formalization": "not_formalized",
      "Lean": "NOT_RUN"
    },
    "scope_note": {
      "zh-Hant": "來源綁定教學推導候選；精確核對不等於獨立AI／人工審查或一般形式證明。原題、答案、MKO、公式、AST與歷史不變。",
      "en": "Source-bound pedagogical derivation candidate.Exact checking is not independent AI/human review or general formal proof.Original questions,answers,MKOs,formulas,ASTs and history remain unchanged."
    },
    "label": "Frozen producer metadata; current per-question review is separate below."
  },
  "revision": {
    "id": "review-20261026-004-p6",
    "review_date": "2026-10-26",
    "owner_authorized_reader_publication": true,
    "scope": "One hundred sixty family prototypes and their mathematical/bilingual reasoning variants, stems, boundary statements and every distinct explanation shape were reviewed in a context independent of the producer; parameter substitutions, source bindings, full math models, both answer strings and every arithmetic step were independently reconstructed per question from the original parameters only, with negative controls. This grouped method does not claim a separate literal AI reading of every repeated sentence or an extra AI voter.",
    "review_receipts": {
      "semantic_review_sha256": "5d74de11610ebc6037a4fc9946d77154d4ed18389f8f0feeb823148b6320c4c2",
      "question_first_witness_sha256": "1fba4ab0f13c2cfcc4d9fdebe492c442d43dd45700394a443daa28f333355ed9"
    },
    "status": "second_context_reviewed",
    "mathematical_semantics": true,
    "bilingual_semantics": true,
    "steps_reviewed": 6,
    "method": "family_template_semantic_review_plus_independent_per_instance_reconstruction",
    "exact_question_first_check": {
      "model_sha256": "eb3730f3197194cf18a46986431d5f315fb06b8d05bd73fb45fd7ae3c1bff4e2",
      "arithmetic_steps": 0
    },
    "uses_answer_as_premise": false,
    "human_review": "NOT_PERFORMED",
    "formalization": "not_formalized",
    "Lean": "NOT_RUN",
    "Canonical_truth_promotion": false,
    "authority": "Owner-authorized reviewed reader publication; original question/candidate states remain historical and unchanged."
  }
}
