{
  "schema_version": "ocme-reviewed-question-reader-v1",
  "question_id": "q-20261008-advance-20261010-r02-set-operations-0024",
  "pilot_number": "R0007-04499",
  "number": 4499,
  "family_id": "qf-density10-set-union-intersection-sizes",
  "title": {
    "zh-Hant": "第 4499 題：有限集合聯交的基數對",
    "en": "Question 4499: Union and Intersection Cardinalities"
  },
  "original_question": {
    "schema_version": "ocme-question-v0.1",
    "id": "q-20261008-advance-20261010-r02-set-operations-0024",
    "batch_id": "batch-20261008-advance-20261010-r02-set-operations-foundations",
    "language": "zh-Hant",
    "source_mko_ids": [
      "mko-set-operations"
    ],
    "title_zh": "有限集合聯交的基數對",
    "stem_zh": "有限整數集合 A=[0, 1, 2, 3]、B=[0, 1, 2, 3, 100]。依序求 (|A∪B|, |A∩B|)，重列元素只算一次。",
    "answer": {
      "kind": "expression",
      "value": "(5, 4)",
      "explanation_zh": "聯交基數=(5, 4)。依隸屬逐元素計數；交集元素在聯集只算一次，空集大小為零。"
    },
    "difficulty": {
      "band": "upper_secondary",
      "level": 3,
      "skills": [
        "有限集合聯交的基數對"
      ]
    },
    "variant": {
      "family_id": "qf-density10-set-union-intersection-sizes",
      "seed": 202610102024,
      "parameters": {
        "A": [
          0,
          1,
          2,
          3
        ],
        "B": [
          0,
          1,
          2,
          3,
          100
        ],
        "operation": "density10_set_union_intersection_sizes",
        "domain": "finite_integer_sets",
        "semantic_template": "qf-density10-set-union-intersection-sizes/[[0,1],4]"
      }
    },
    "verification": {
      "status": "candidate",
      "checks": [
        "producer_exact_integer_rational_arithmetic",
        "producer_finite_enumeration",
        "producer_source_snapshot_check",
        "producer_substantive_template_deduplication",
        "producer_json_schema"
      ],
      "warning_zh": "僅為產生端候選及自檢；主端須另做獨立驗收，不構成人工審定、普遍證明或形式 Evidence。"
    },
    "provenance": {
      "generator_role": "question_producer",
      "generator_model": "model_unknown",
      "generated_at": "2026-10-08",
      "contract_version": "ocme-question-factory-v0.1"
    }
  },
  "original_english_edition": {
    "schema_version": "ocme-question-localization-v0.1",
    "question_id": "q-20261008-advance-20261010-r02-set-operations-0024",
    "batch_id": "batch-20261008-advance-20261010-r02-set-operations-foundations",
    "locale": "en",
    "translation_state": "ai_candidate",
    "source": {
      "question_sha256": "f310bef5355856ca66150018a6e583be07339bc20c047ab7ce2fd319ecca0695",
      "family_id": "qf-density10-set-union-intersection-sizes",
      "seed": 202610102024,
      "semantic_template": "qf-density10-set-union-intersection-sizes/[[0,1],4]"
    },
    "fields": {
      "title": "Union and Intersection Cardinalities",
      "stem": "Finite integer sets A=[0, 1, 2, 3] and B=[0, 1, 2, 3, 100]; repeated elements count once. Give (|A∪B|, |A∩B|).",
      "answer": {
        "kind": "expression",
        "value": "(5, 4)",
        "explanation": "Count membership in the two sets; common elements enter the union once, and the empty set has size zero. The exact result, retaining the requested order, is (5, 4)."
      },
      "skills": [
        "Union and Intersection Cardinalities"
      ],
      "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": "有限整數集合 A=[0, 1, 2, 3]、B=[0, 1, 2, 3, 100]。依序求 (|A∪B|, |A∩B|)，重列元素只算一次。",
        "en": "Finite integer sets A=[0, 1, 2, 3] and B=[0, 1, 2, 3, 100]; repeated elements count once. Give (|A∪B|, |A∩B|)."
      }
    }
  ],
  "steps": [
    {
      "id": "S001",
      "uses": [
        "G001"
      ],
      "before": "raw A=[0, 1, 2, 3];raw B=[0, 1, 2, 3, 100]",
      "after": "A=[0, 1, 2, 3];B=[0, 1, 2, 3, 100]",
      "relation": "implies",
      "rule_id": "finite_set_extensionality",
      "conditions": [],
      "explanation": {
        "zh-Hant": "整數集合先去重及數值排序；重列或列序不改元素隸屬，原來源清單仍保存。",
        "en": "Deduplicate and numerically sort integer sets;repetition and input order do not change membership.The original lists remain retained."
      },
      "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": "element=0",
      "after": "in A=是;in B=是",
      "relation": "implies",
      "rule_id": "finite_set_membership_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐元素保留兩側隸屬，集合運算由這兩個布林值決定，不重複計數。",
        "en": "Record membership on both sides for each element;these Boolean values determine the set operations without duplicate counting."
      },
      "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": "element=1",
      "after": "in A=是;in B=是",
      "relation": "implies",
      "rule_id": "finite_set_membership_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐元素保留兩側隸屬，集合運算由這兩個布林值決定，不重複計數。",
        "en": "Record membership on both sides for each element;these Boolean values determine the set operations without duplicate counting."
      },
      "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": "element=2",
      "after": "in A=是;in B=是",
      "relation": "implies",
      "rule_id": "finite_set_membership_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐元素保留兩側隸屬，集合運算由這兩個布林值決定，不重複計數。",
        "en": "Record membership on both sides for each element;these Boolean values determine the set operations without duplicate counting."
      },
      "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": "element=3",
      "after": "in A=是;in B=是",
      "relation": "implies",
      "rule_id": "finite_set_membership_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐元素保留兩側隸屬，集合運算由這兩個布林值決定，不重複計數。",
        "en": "Record membership on both sides for each element;these Boolean values determine the set operations without duplicate counting."
      },
      "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": "element=100",
      "after": "in A=否;in B=是",
      "relation": "implies",
      "rule_id": "finite_set_membership_row",
      "conditions": [],
      "explanation": {
        "zh-Hant": "逐元素保留兩側隸屬，集合運算由這兩個布林值決定，不重複計數。",
        "en": "Record membership on both sides for each element;these Boolean values determine the set operations without duplicate counting."
      },
      "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": "S007",
      "uses": [
        "G001",
        "S006"
      ],
      "before": "separate set cardinalities sum := sum(4, 5)",
      "after": "separate set cardinalities sum = 9",
      "relation": "calculation",
      "rule_id": "exact_rational_arithmetic",
      "conditions": [],
      "explanation": {
        "zh-Hant": "兩側基數相加會把交集重複一次。",
        "en": "Adding the two set sizes counts their intersection twice."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "以精確有理數重算 separate set cardinalities sum，不以小數近似替代。",
          "en": "Recompute separate set cardinalities sum with exact rational arithmetic, not rounded decimals."
        }
      },
      "arithmetic": {
        "operation": "sum",
        "inputs": [
          "4",
          "5"
        ],
        "output": "9",
        "label": "separate set cardinalities sum"
      }
    },
    {
      "id": "S008",
      "uses": [
        "G001",
        "S007"
      ],
      "before": "union cardinality check := sub(9, 4)",
      "after": "union cardinality check = 5",
      "relation": "calculation",
      "rule_id": "exact_rational_arithmetic",
      "conditions": [],
      "explanation": {
        "zh-Hant": "減去一次交集，與去重聯集列長比較。",
        "en": "Subtract one intersection count and compare with the deduplicated union size."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "以精確有理數重算 union cardinality check，不以小數近似替代。",
          "en": "Recompute union cardinality check with exact rational arithmetic, not rounded decimals."
        }
      },
      "arithmetic": {
        "operation": "sub",
        "inputs": [
          "9",
          "4"
        ],
        "output": "5",
        "label": "union cardinality check"
      }
    },
    {
      "id": "S009",
      "uses": [
        "G001",
        "S008"
      ],
      "before": "union=[0, 1, 2, 3, 100];intersection=[0, 1, 2, 3]",
      "after": "(5, 4)",
      "relation": "implies",
      "rule_id": "union_intersection_cardinality",
      "conditions": [],
      "explanation": {
        "zh-Hant": "第一欄聯集數、第二欄交集數；空集合基數0，交集成員在聯集只計一次。",
        "en": "Report union size before intersection size;the empty set has size0 and a shared element is counted once in the union."
      },
      "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": [
      5,
      4
    ],
    "membership_rows": [
      [
        0,
        true,
        true
      ],
      [
        1,
        true,
        true
      ],
      [
        2,
        true,
        true
      ],
      [
        3,
        true,
        true
      ],
      [
        100,
        false,
        true
      ]
    ]
  },
  "conclusion": {
    "canonical_value": "(5, 4)",
    "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-20261008-advance-20261010-r02-set-operations-foundations",
      "batch_path": "public/data/questions/batches/batch-20261008-advance-20261010-r02-set-operations-foundations/questions.jsonl",
      "batch_sha256": "1eb875be701255297ceef2bd83ebaceff2f7cdec925101d78d161062916bde7d",
      "original_line": 24,
      "original_line_sha256": "5a1a17db95d6b908a4fcc71de59fa5acdc1b3ceb2279d85913cb6f9b0ca9ae4f",
      "question_compact_sha256": "f310bef5355856ca66150018a6e583be07339bc20c047ab7ce2fd319ecca0695",
      "english_row_compact_sha256": "48aabb78ed0a8a777d87ce8d4fdce0e92a0c01a91673e5a7c3cd616d303c1a15",
      "english_manifest_path": "public/data/i18n/editions/batch-20261008-advance-20261010-r02-set-operations-foundations.en.json",
      "english_rows_path": "public/data/i18n/questions/batch-20261008-advance-20261010-r02-set-operations-foundations.en.jsonl"
    },
    "mko_bindings": {
      "mko-set-operations": {
        "sha256": "e857b27da045df1a33d58d7cd56b319d6c8ec23162a8cfc3c15f7c70d30f317b",
        "english_sha256": "3cad86e57536464f92b934935e0803aa9aee386b3c235758ae9da575c56f3ac3",
        "original_path": "public/data/mko/set-operations.json",
        "english_path": "public/data/i18n/editions/mko-set-operations.en.json"
      }
    },
    "selected_manifest_sha256": "5233edba9654a6cffd8b6b2d83c932f82ded15f9c0b7c733bd049943e672acff",
    "selected_part_sha256": "de1fb611cf230f243ddd3334fbc53c9205cbe528b78346a10544972dede78b95",
    "original_candidate_sha256": "5dc775720a97bc4946b526b95a50295487dcc0605b073440114ecc64b2865035",
    "original_candidate_line_sha256": "5dc775720a97bc4946b526b95a50295487dcc0605b073440114ecc64b2865035"
  },
  "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-p8",
    "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": "faf0582c0184613e6fae207374056133eae600883a29c67d8438113bbe3c485a",
      "question_first_witness_sha256": "4b283b6ff424b1d22caa36f3552b0fa21b1b66a0a883d7cbe9cedc8dd77b2e42"
    },
    "status": "second_context_reviewed",
    "mathematical_semantics": true,
    "bilingual_semantics": true,
    "steps_reviewed": 9,
    "method": "family_template_semantic_review_plus_independent_per_instance_reconstruction",
    "exact_question_first_check": {
      "model_sha256": "c02cb1fe90e15ec8335e0d5790db4b601da613b8d18d48a4dbd6afc5241e172b",
      "arithmetic_steps": 2
    },
    "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."
  }
}
