{
  "schemaVersion": 1,
  "batch": "WORK-R05-100-20261020",
  "scope": "20 complete declared hypothetical finite mathematical models. Classic methods credited. Original programs/inputs/results; no private local paths, real accounts or original publisher texts/images.",
  "generatedAtUtc": "2026-10-20T10:34:39.310523+00:00",
  "cases": [
    {
      "id": "WORK-R05-B001",
      "title": "把符号列表随机交换几次，就等于公平洗牌吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "输入符号先用互异身份标记，重复外观需另做投影；所有抽取均独立均匀且为自拟算法。没有证据说明CQ9、MG或任何客户端使用所列错误算法。",
      "classicMethodAttribution": [
        {
          "title": "Fast Random Integer Generation in an Interval",
          "url": "https://arxiv.org/pdf/1805.10941v4",
          "version": "Daniel Lemire; arXiv1805.10941v4,28Dec2018; ACM TOMACS29(1),2019"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef shuffle(n,correct):\n    stages=list(range(n-1,0,-1)) if correct else list(range(n))\n    ranges=[range(i+1) if correct else range(n) for i in stages]\n    c=Counter()\n    for js in product(*ranges):\n        a=list(range(n))\n        for i,j in zip(stages,js):a[i],a[j]=a[j],a[i]\n        c[tuple(a)]+=1\n    total=sum(c.values()); direct={a:F(k,total) for a,k in c.items()}\n    d={tuple(range(n)):F(1)}\n    for i,rr in zip(stages,ranges):\n        new=defaultdict(F)\n        for a,p in d.items():\n            for j in rr:\n                b=list(a);b[i],b[j]=b[j],b[i];new[tuple(b)]+=p/len(rr)\n        d=dict(new)\n    assert direct==d and sum(d.values())==1\n    tv=sum((abs(d.get(a,0)-F(1,factorial(n))) for a in permutations(range(n))),F(0))/2\n    return c,total,tv\nrows=[];all_dist={}\nfor n in [1,2,3,4]:\n    for correct in [False,True]:\n        c,total,tv=shuffle(n,correct)\n        if correct:assert len(c)==factorial(n) and len(set(c.values()))==1\n        rows.append([n,'Fisher-Yates' if correct else 'full-range swaps',total,min(c.values()),max(c.values()),str(tv)])\n        all_dist[f'{n}:{correct}']={''.join(map(str,k)):str(F(v,total)) for k,v in sorted(c.items())}\nassert 3**3%factorial(3)!=0 and 4**4%factorial(4)!=0\nresult={'input':{'n':[1,2,3,4],'independent_uniform_choices':True,'distinct_identities':True},'headers':['n','algorithm','paths','min_preimages','max_preimages','TV'],'rows':rows,'full_distributions':all_dist,'checks':'path enumeration=state probability propagation; correct uniform; integer divisibility certificate'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "DA3B4D6D4D6BED6CFEDCE723BF9C4CA13AAEE44CAEC8608917728960E311662E",
        "bytes": 2057
      },
      "result": {
        "checks": "path enumeration=state probability propagation; correct uniform; integer divisibility certificate",
        "full_distributions": {
          "1:False": {
            "0": "1"
          },
          "1:True": {
            "0": "1"
          },
          "2:False": {
            "01": "1/2",
            "10": "1/2"
          },
          "2:True": {
            "01": "1/2",
            "10": "1/2"
          },
          "3:False": {
            "012": "4/27",
            "021": "5/27",
            "102": "5/27",
            "120": "5/27",
            "201": "4/27",
            "210": "4/27"
          },
          "3:True": {
            "012": "1/6",
            "021": "1/6",
            "102": "1/6",
            "120": "1/6",
            "201": "1/6",
            "210": "1/6"
          },
          "4:False": {
            "0123": "5/128",
            "0132": "5/128",
            "0213": "5/128",
            "0231": "7/128",
            "0312": "11/256",
            "0321": "9/256",
            "1023": "5/128",
            "1032": "15/256",
            "1203": "7/128",
            "1230": "7/128",
            "1302": "11/256",
            "1320": "11/256",
            "2013": "11/256",
            "2031": "11/256",
            "2103": "9/256",
            "2130": "11/256",
            "2301": "11/256",
            "2310": "5/128",
            "3012": "1/32",
            "3021": "9/256",
            "3102": "9/256",
            "3120": "1/32",
            "3201": "5/128",
            "3210": "5/128"
          },
          "4:True": {
            "0123": "1/24",
            "0132": "1/24",
            "0213": "1/24",
            "0231": "1/24",
            "0312": "1/24",
            "0321": "1/24",
            "1023": "1/24",
            "1032": "1/24",
            "1203": "1/24",
            "1230": "1/24",
            "1302": "1/24",
            "1320": "1/24",
            "2013": "1/24",
            "2031": "1/24",
            "2103": "1/24",
            "2130": "1/24",
            "2301": "1/24",
            "2310": "1/24",
            "3012": "1/24",
            "3021": "1/24",
            "3102": "1/24",
            "3120": "1/24",
            "3201": "1/24",
            "3210": "1/24"
          }
        },
        "headers": [
          "n",
          "algorithm",
          "paths",
          "min_preimages",
          "max_preimages",
          "TV"
        ],
        "input": {
          "distinct_identities": true,
          "independent_uniform_choices": true,
          "n": [
            1,
            2,
            3,
            4
          ]
        },
        "rows": [
          [
            1,
            "full-range swaps",
            1,
            1,
            1,
            "0"
          ],
          [
            1,
            "Fisher-Yates",
            1,
            1,
            1,
            "0"
          ],
          [
            2,
            "full-range swaps",
            4,
            2,
            2,
            "0"
          ],
          [
            2,
            "Fisher-Yates",
            2,
            1,
            1,
            "0"
          ],
          [
            3,
            "full-range swaps",
            27,
            4,
            5,
            "1/18"
          ],
          [
            3,
            "Fisher-Yates",
            6,
            1,
            1,
            "0"
          ],
          [
            4,
            "full-range swaps",
            256,
            8,
            15,
            "25/384"
          ],
          [
            4,
            "Fisher-Yates",
            24,
            1,
            1,
            "0"
          ]
        ]
      },
      "expectedStdoutSha256": "283F3B3797EE03AC03982CAC8835F8EB98898E4A4FFAE69D5A9EEB8D6ACE3BFA",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B002",
      "title": "轮带符号占比相同，连续三格同符号的概率会相同吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "循环条带、停点均匀和无额外转化都是显式假设。未公开实际轮带时不能以界或例子反推真实中奖率；不是独立格子模型。",
      "classicMethodAttribution": [
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef windows(a):\n    n=len(a);return sum(all(a[(s+j)%n]=='A' for j in range(3)) for s in range(n))\ndef runs(a):\n    n=len(a)\n    if all(x=='A' for x in a):return n\n    out=0\n    for i in range(n):\n        if a[i]=='A' and a[(i-1)%n]!='A':\n            k=0\n            while k<n and a[(i+k)%n]=='A':k+=1\n            out+=max(k-2,0)\n    return out\ndist=Counter(); witnesses={}\nfor pos in combinations(range(8),4):\n    a=['B']*8\n    for i in pos:a[i]='A'\n    k=windows(a);assert k==runs(a)\n    dist[k]+=1;witnesses.setdefault(k,''.join(a))\nassert sum(dist.values())==comb(8,4)\nfor a in ['A','B','AAAA','BBBB','AAAB','ABAA']:assert windows(a)==runs(a)\nrows=[[k,str(F(k,8)),dist[k],witnesses[k]] for k in sorted(dist)]\nassert min(dist)==0 and max(dist)==2\nresult={'input':{'length':8,'A_count':4,'uniform_stop':True,'window':3},'headers':['AAA_windows','probability','labelled_strips','witness'],'rows':rows,'checks':'all70strips ×8stops; cyclic run formula matches everystrip; full-A/full-B boundaries'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "B05BB764F481DC951F56FE2FA968418BAB8060977F7883339F2D60E69E736C79",
        "bytes": 1511
      },
      "result": {
        "checks": "all70strips ×8stops; cyclic run formula matches everystrip; full-A/full-B boundaries",
        "headers": [
          "AAA_windows",
          "probability",
          "labelled_strips",
          "witness"
        ],
        "input": {
          "A_count": 4,
          "length": 8,
          "uniform_stop": true,
          "window": 3
        },
        "rows": [
          [
            0,
            "0",
            38,
            "AABAABBB"
          ],
          [
            1,
            "1/8",
            24,
            "AAABABBB"
          ],
          [
            2,
            "1/4",
            8,
            "AAAABBBB"
          ]
        ]
      },
      "expectedStdoutSha256": "D6954CB1C881484EDAEAAA84D5995D1877425FA316CF6EAB365F5556DECBFE20",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B003",
      "title": "镜像盘面看着一样，计算中奖组合时能直接去重吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "只有样本分布和待算事件均满足相应对称性才可按轨道压缩。位置奖金不对称时先拒绝压缩。不是把真实中奖路径的左右方向认成同一条，也不假设真实各盘面等可能。",
      "classicMethodAttribution": [
        {
          "title": "Topics in Algebraic Combinatorics",
          "url": "https://math.mit.edu/~rstan/algcomb/algcomb.pdf",
          "version": "Richard P. Stanley；封面明确Version of1 February2013；本次所存PDF元数据创建/修改2013-02-03，不把生成日期当版本日期。"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef rotate(a):return tuple(a[(2-c)*3+r] for r in range(3) for c in range(3))\ndef mirror(a):return tuple(a[r*3+2-c] for r in range(3) for c in range(3))\ndef transforms(a):\n    out=[]\n    for _ in range(4):out.append(a);out.append(mirror(a));a=rotate(a)\n    return out\nboards=list(product([0,1],repeat=9));orbits={}\nfor a in boards:\n    images=set(transforms(a));rep=min(images);orbits.setdefault(rep,images)\n    assert len(images)*sum(b==a for b in transforms(a))==8\nfixed=[sum(transforms(a)[g]==a for a in boards) for g in range(8)]\nassert sum(fixed)//8==len(orbits) and sum(map(len,orbits.values()))==512\ndef event(a):return sum(a)==2 and a[4]==0\nfull=F(sum(map(event,boards)),512)\nweighted=sum((F(len(v),512) for a,v in orbits.items() if event(a)),F(0))\nwrong=F(sum(event(a) for a in orbits),len(orbits))\nassert full==weighted and full!=wrong\nassert any(len(set(a[0] for a in images))>1 for images in orbits.values())\nresult={'input':{'shape':[3,3],'symbols':[0,1],'uniform_labelled_boards':True,'group':'D4'},'headers':['calculation','event_probability'],'rows':[['all512',str(full)],['orbit-size weighted',str(weighted)],['wrong:one vote per orbit',str(wrong)]],'orbit_size_counts':dict(sorted(Counter(map(len,orbits.values())).items())),'fixed_by_group_element':fixed,'orbit_count':len(orbits),'checks':'orbit-stabilizer everyboard; Burnside independently counts; top-left-specific event fails invariance'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "044E2FBE2B8E014A990CAB13EFE793BC9BDB9241A63F94D1EB39DAC696F80A27",
        "bytes": 1924
      },
      "result": {
        "checks": "orbit-stabilizer everyboard; Burnside independently counts; top-left-specific event fails invariance",
        "fixed_by_group_element": [
          512,
          64,
          8,
          64,
          32,
          64,
          8,
          64
        ],
        "headers": [
          "calculation",
          "event_probability"
        ],
        "input": {
          "group": "D4",
          "shape": [
            3,
            3
          ],
          "symbols": [
            0,
            1
          ],
          "uniform_labelled_boards": true
        },
        "orbit_count": 102,
        "orbit_size_counts": {
          "1": 8,
          "2": 8,
          "4": 50,
          "8": 36
        },
        "rows": [
          [
            "all512",
            "7/128"
          ],
          [
            "orbit-size weighted",
            "7/128"
          ],
          [
            "wrong:one vote per orbit",
            "1/17"
          ]
        ]
      },
      "expectedStdoutSha256": "2552376598032BAD88F2F45596C98176750C35966A2438988CE9E3E962E29593",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B004",
      "title": "金币一次加2或3，“达到10”和“至少10”是同一个条件吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "固定正增量分布与既定门槛，例子是自拟计数器，不把真实奖励阈值的中文歧义用模型擅自裁定。没有负增量、重置或上限隐藏规则。",
      "classicMethodAttribution": [
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        },
        {
          "title": "Lecture15:The last renewal",
          "url": "https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/61c15adb62248b208b3cf78fdf5c1b08_MIT6_262S11_lec15.pdf",
          "version": "Robert Gallager,MIT6.262 Spring2011"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\njumps=[(2,F(1,2)),(3,F(1,2))];b=10\ndirect=defaultdict(F)\ndef visit(s,n,p):\n    if s>=b:direct[n,s-b]+=p;return\n    for j,w in jumps:visit(s+j,n+1,p*w)\nvisit(0,0,F(1))\nlive={(0,0):F(1)};dp=defaultdict(F)\nwhile live:\n    new=defaultdict(F)\n    for (s,n),p in live.items():\n        for j,w in jumps:\n            if s+j>=b:dp[n+1,s+j-b]+=p*w\n            else:new[s+j,n+1]+=p*w\n    live=new\nassert direct==dp and sum(dp.values())==1\nu={0:F(1)}\nfor t in range(1,b+1):u[t]=sum((p*u.get(t-j,F(0)) for j,p in jumps),F(0))\nexact=sum((p for (n,o),p in dp.items() if o==0),F(0));assert exact==u[b]\nrows=[[n,o,str(p)] for (n,o),p in sorted(dp.items())]\nassert all(n<=5 and 0<=o<=2 for n,o in dp)\nresult={'input':{'positive_jumps':[[j,str(p)] for j,p in jumps],'threshold':b},'headers':['first_crossing_round','overshoot','probability'],'rows':rows,'exact_hit_probability':str(exact),'ever_cross_probability':'1','checks':'absorbing-prefix enumeration=state DP; renewal exact-hit recurrence; positive jumps bound path length; even-only increments cannot hit odd threshold'}\neven_reachable={0}\nfor _ in range(5):even_reachable|={s+2 for s in even_reachable if s<9}\nassert 9 not in even_reachable and 10 in even_reachable\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "93E5AECDEE5A0C4DD00F277217F0D3DF03A7901504A23F9BD0CE6D4A1D7729F7",
        "bytes": 1718
      },
      "result": {
        "checks": "absorbing-prefix enumeration=state DP; renewal exact-hit recurrence; positive jumps bound path length; even-only increments cannot hit odd threshold",
        "ever_cross_probability": "1",
        "exact_hit_probability": "13/32",
        "headers": [
          "first_crossing_round",
          "overshoot",
          "probability"
        ],
        "input": {
          "positive_jumps": [
            [
              2,
              "1/2"
            ],
            [
              3,
              "1/2"
            ]
          ],
          "threshold": 10
        },
        "rows": [
          [
            4,
            0,
            "3/8"
          ],
          [
            4,
            1,
            "1/4"
          ],
          [
            4,
            2,
            "1/16"
          ],
          [
            5,
            0,
            "1/32"
          ],
          [
            5,
            1,
            "5/32"
          ],
          [
            5,
            2,
            "1/8"
          ]
        ]
      },
      "expectedStdoutSha256": "8B9254077293A92A5D914E65CD00A825BE1FE8A6E0128F9CED02F04B40D2EB6D",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B005",
      "title": "两个同样长的触发顺序，谁先出现的机会一定各一半吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "输入字母独立且概率明确，词触发即停止，同长不同词不会同一时点同时完成；不预测真实游戏下一步，更不提供下注序列策略。",
      "classicMethodAttribution": [
        {
          "title": "The Penney's Game with Group Action",
          "url": "https://arxiv.org/pdf/2009.06080v2",
          "version": "Tanya Khovanova and Sean Li,arXiv2009.06080v2,14Dec2020; AnnComb26(2022)145-170"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef solve(a,b):\n    n=len(b); z=[[F(x) for x in row]+[F(y)] for row,y in zip(a,b)]\n    for c in range(n):\n        k=next(k for k in range(c,n) if z[k][c]);z[c],z[k]=z[k],z[c]\n        q=z[c][c];z[c]=[x/q for x in z[c]]\n        for k in range(n):\n            if k!=c:\n                q=z[k][c];z[k]=[x-q*y for x,y in zip(z[k],z[c])]\n    return [row[-1] for row in z]\n\nwords=('HHT','THH');alphabet='HT'\ndef automaton(patterns,full_suffix=False):\n    states=['']+(['H','T','HH','HT','TH','TT'] if full_suffix else sorted({w[:i] for w in patterns for i in range(1,len(w))}))\n    idx={s:i for i,s in enumerate(states)};n=len(states);a=[[F(i==j) for j in range(n)] for i in range(n)];b=[F(0)]*n\n    transitions={}\n    for s,i in idx.items():\n        for c in alphabet:\n            t=s+c;hit=next((j for j,w in enumerate(patterns) if t.endswith(w)),None)\n            if hit is not None:\n                b[i]+=F(hit==0,2);transitions[s,c]=('end',hit)\n            else:\n                t=t[-2:] if full_suffix else max((v for v in states if t.endswith(v)),key=len)\n                a[i][idx[t]]-=F(1,2);transitions[s,c]=('live',t)\n    h=solve(a,b);e=solve(a,[1]*n)\n    return states,transitions,h,e\nst,tr,h,e=automaton(words);st2,tr2,h2,e2=automaton(words,True)\nassert h[0]==h2[0] and e[0]==e2[0]\nlive={'':F(1)};hits=[F(0),F(0)];truncated_mean=F(0)\nfor n in range(60):\n    truncated_mean+=sum(live.values());nxt=defaultdict(F)\n    for s,p in live.items():\n        for c in alphabet:\n            kind,t=tr[s,c]\n            if kind=='end':hits[t]+=p/2\n            else:nxt[t]+=p/2\n    live=nxt\nsurvival=sum(live.values());assert hits[0]<=h[0]<=hits[0]+survival\nassert truncated_mean<=e[0]\nsingle=[]\nfor w in words:\n    ss,tt,hh,ee=automaton((w,))\n    border=sum(2**k for k in range(1,len(w)+1) if w[:k]==w[-k:])\n    assert ee[0]==border;single.append(str(ee[0]))\nresult={'input':{'patterns':words,'iid_fair_letters':True},'headers':['measure','value'],'rows':[['P(HHT first)',str(h[0])],['P(THH first)',str(1-h[0])],['expected race length',str(e[0])],['single HHT waiting mean',single[0]],['single THH waiting mean',single[1]]],'prefix_states':st,'full_suffix_states':st2,'survival_after60':str(survival),'checks':'two differently constructed finite-state linear systems agree exactly; border waiting identity; finite60mass only a bounded approximation, not an infinite proof'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "5EC496BEBB6763C336C7706DEE3B15CE6ADFD64DEAF373A3195EF398D9C115B1",
        "bytes": 2877
      },
      "result": {
        "checks": "two differently constructed finite-state linear systems agree exactly; border waiting identity; finite60mass only a bounded approximation, not an infinite proof",
        "full_suffix_states": [
          "",
          "H",
          "T",
          "HH",
          "HT",
          "TH",
          "TT"
        ],
        "headers": [
          "measure",
          "value"
        ],
        "input": {
          "iid_fair_letters": true,
          "patterns": [
            "HHT",
            "THH"
          ]
        },
        "prefix_states": [
          "",
          "H",
          "HH",
          "T",
          "TH"
        ],
        "rows": [
          [
            "P(HHT first)",
            "1/4"
          ],
          [
            "P(THH first)",
            "3/4"
          ],
          [
            "expected race length",
            "13/2"
          ],
          [
            "single HHT waiting mean",
            "8"
          ],
          [
            "single THH waiting mean",
            "8"
          ]
        ],
        "survival_after60": "2026369768941/576460752303423488"
      },
      "expectedStdoutSha256": "3DD06C26708C755462131F3688301542EE30BE8694558F631E77A4ADE2A81A52",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B006",
      "title": "两种版本各占一半，能把转移表取平均后计算整个功能吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "版本概率、完整矩阵和启动状态均为自拟已知输入，不假设运营商随机切版本。用于说明平均化需要定义机制，不诊断实际平台。",
      "classicMethodAttribution": [
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef matmul(a,b):return [[sum((x*y for x,y in zip(row,col)),F(0)) for col in zip(*b)] for row in a]\ndef power(p,n):\n    q=[[F(1),F(0)],[F(0),F(1)]]\n    for _ in range(n):q=matmul(q,p)\n    return q\np0=[[F(1),F(0)],[F(0),F(1)]];p1=[[F(0),F(1)],[F(1),F(0)]];avg=[[F(1,2)]*2 for _ in range(2)]\nrows=[];rewards={}\nfor n in range(6):\n    fixed=defaultdict(F)\n    for v in [0,1]:\n        s=r=0\n        for _ in range(n):s=s^v;r+=s\n        fixed[s,r]+=F(1,2)\n    step=defaultdict(F)\n    for vs in product([0,1],repeat=n):\n        s=r=0\n        for v in vs:s^=v;r+=s\n        step[s,r]+=F(1,2**n)\n    fprob=sum((p for (s,r),p in fixed.items() if s==1),F(0));sprob=sum((p for (s,r),p in step.items() if s==1),F(0))\n    assert fprob==(power(p0,n)[0][1]+power(p1,n)[0][1])/2 and sprob==power(avg,n)[0][1]\n    # Reward-state DP is separate from complete version-sequence enumeration.\n    d={(0,0):F(1)}\n    for _ in range(n):\n        nd=defaultdict(F)\n        for (s,r),p in d.items():\n            for t in [0,1]:nd[t,r+t]+=p/2\n        d=nd\n    assert dict(d)==dict(step)\n    fm=sum((r*p for (s,r),p in fixed.items()),F(0));sm=sum((r*p for (s,r),p in step.items()),F(0))\n    rows.append([n,str(fprob),str(sprob),str(fm),str(sm)])\n    rewards[str(n)]={'fixed':{str(r):str(sum(p for (s,k),p in fixed.items() if k==r)) for r in sorted({r for s,r in fixed})},'step':{str(r):str(sum(p for (s,k),p in step.items() if k==r)) for r in sorted({r for s,r in step})}}\nassert rows[1][1:3]==['1/2','1/2'] and rows[2][1:3]==['0','1/2']\nresult={'input':{'P0':[[1,0],[0,1]],'P1':[[0,1],[1,0]],'version_weights':['1/2','1/2'],'initial_state':0,'reward':'new state1 gives1'},'headers':['steps','P1_fixed_version','P1_stepwise_version','mean_reward_fixed','mean_reward_stepwise'],'rows':rows,'reward_distributions':rewards,'checks':'all version paths=matrix powers; separate reward DP; n0/1 agree; if two matrices identical both mechanisms identical'}\nidentical_fixed=power(p1,4)\nidentical_step=power([[ (p1[i][j]+p1[i][j])/2 for j in range(2)] for i in range(2)],4)\nassert identical_fixed==identical_step\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "EEF559E98811589C144BCE6BADC3E4CCCDDCA1FD22F6FCF9D094E03E72F2C3E4",
        "bytes": 2584
      },
      "result": {
        "checks": "all version paths=matrix powers; separate reward DP; n0/1 agree; if two matrices identical both mechanisms identical",
        "headers": [
          "steps",
          "P1_fixed_version",
          "P1_stepwise_version",
          "mean_reward_fixed",
          "mean_reward_stepwise"
        ],
        "input": {
          "P0": [
            [
              1,
              0
            ],
            [
              0,
              1
            ]
          ],
          "P1": [
            [
              0,
              1
            ],
            [
              1,
              0
            ]
          ],
          "initial_state": 0,
          "reward": "new state1 gives1",
          "version_weights": [
            "1/2",
            "1/2"
          ]
        },
        "reward_distributions": {
          "0": {
            "fixed": {
              "0": "1"
            },
            "step": {
              "0": "1"
            }
          },
          "1": {
            "fixed": {
              "0": "1/2",
              "1": "1/2"
            },
            "step": {
              "0": "1/2",
              "1": "1/2"
            }
          },
          "2": {
            "fixed": {
              "0": "1/2",
              "1": "1/2"
            },
            "step": {
              "0": "1/4",
              "1": "1/2",
              "2": "1/4"
            }
          },
          "3": {
            "fixed": {
              "0": "1/2",
              "2": "1/2"
            },
            "step": {
              "0": "1/8",
              "1": "3/8",
              "2": "3/8",
              "3": "1/8"
            }
          },
          "4": {
            "fixed": {
              "0": "1/2",
              "2": "1/2"
            },
            "step": {
              "0": "1/16",
              "1": "1/4",
              "2": "3/8",
              "3": "1/4",
              "4": "1/16"
            }
          },
          "5": {
            "fixed": {
              "0": "1/2",
              "3": "1/2"
            },
            "step": {
              "0": "1/32",
              "1": "5/32",
              "2": "5/16",
              "3": "5/16",
              "4": "5/32",
              "5": "1/32"
            }
          }
        },
        "rows": [
          [
            0,
            "0",
            "0",
            "0",
            "0"
          ],
          [
            1,
            "1/2",
            "1/2",
            "1/2",
            "1/2"
          ],
          [
            2,
            "0",
            "1/2",
            "1/2",
            "1"
          ],
          [
            3,
            "1/2",
            "1/2",
            "1",
            "3/2"
          ],
          [
            4,
            "0",
            "1/2",
            "1",
            "2"
          ],
          [
            5,
            "1/2",
            "1/2",
            "3/2",
            "5/2"
          ]
        ]
      },
      "expectedStdoutSha256": "0936786C9B467F9D1CAABCC37D5176337261EF4E2F09D187FD8606EE4222B813",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B007",
      "title": "两版规则的短演示一样，能证明所有输入下功能相同吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "只验证给定完整有限机的输出/接受语义，不验证未知客户端、概率分布或厂商实现。输入域/可见标签不完整时输出未知，不把演示等同形式化证明。",
      "classicMethodAttribution": [
        {
          "title": "Lecture32:Language of a machine",
          "url": "https://www.cs.cornell.edu/courses/cs2800/2016sp/lectures/lec32-languages.html",
          "version": "CornellCS2800 Spring2016 course lecture"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        },
        {
          "title": "CornellCS4120 Spring2022 Automating Lexical Analysis, DFA minimization",
          "url": "https://www.cs.cornell.edu/courses/cs4120/2022sp/notes/leximpl/",
          "version": "2022course, primaryHTML actually opened2026-10-20; definitions/partition distinctions explicitly read"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nalphabet='AB'\ndef machine(cap,prefix):\n    states=[prefix+str(i) for i in range(cap+1)];d={}\n    for i,s in enumerate(states):d[s]={'A':states[min(i+1,cap)],'B':states[0]}\n    return states[0],d,{states[-1]}\ndef witness(m1,m2):\n    s1,d1,f1=m1;s2,d2,f2=m2;q=deque([(s1,s2,'')]);seen={(s1,s2)}\n    while q:\n        a,b,w=q.popleft()\n        if (a in f1)!=(b in f2):return w,sorted(seen)\n        for c in alphabet:\n            t=(d1[a][c],d2[b][c])\n            if t not in seen:seen.add(t);q.append((*t,w+c))\n    return None,sorted(seen)\ndef partition(m1,m2):\n    dd={};accept=set()\n    for tag,(s,d,f) in enumerate([m1,m2]):\n        for x,arcs in d.items():dd[tag,x]={c:(tag,t) for c,t in arcs.items()}\n        accept|={(tag,x) for x in f}\n    cls={x:int(x in accept) for x in dd}\n    while True:\n        sig={x:(cls[x],tuple(cls[dd[x][c]] for c in alphabet)) for x in dd};ids={v:i for i,v in enumerate(sorted(set(sig.values())))}\n        nxt={x:ids[v] for x,v in sig.items()}\n        if all((cls[x]==cls[y])==(nxt[x]==nxt[y]) for x in dd for y in dd):return nxt\n        cls=nxt\na=machine(3,'x');b=machine(4,'y');eq=machine(3,'z')\neq[1]['unreachable']={'A':'unreachable','B':'unreachable'};eq[2].add('unreachable')\nwa,reach=witness(a,b);we,certificate=witness(a,eq)\nassert wa=='AAA' and we is None\nfor m,expect in [(b,False),(eq,True)]:\n    c=partition(a,m);assert (c[0,a[0]]==c[1,m[0]])==expect\ndef run(m,w):\n    s,d,f=m\n    for c in w:s=d[s][c]\n    return s in f\nfor n in range(3):\n    for w in product(alphabet,repeat=n):assert run(a,w)==run(b,w)\nassert run(a,wa)!=run(b,wa)\nresult={'input':{'alphabet':list(alphabet),'machineA':'trailing-A run≥3','machineB':'trailing-A run≥4','equivalentC':'renamedA+unreachable accepting state'},'headers':['pair','shortest_distinguishing_word','certificate_size'],'rows':[['A/B',wa,len(reach)],['A/C','none',len(certificate)]],'equivalent_reachable_pairs':certificate,'checks':'product BFS=union partition refinement; all7words length≤2 equal; complete input and labels required'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "6ACB77245E36D770B6F9CDEC1088BFBE968728DD7DFCF3FF918232EA1B743B59",
        "bytes": 2538
      },
      "result": {
        "checks": "product BFS=union partition refinement; all7words length≤2 equal; complete input and labels required",
        "equivalent_reachable_pairs": [
          [
            "x0",
            "z0"
          ],
          [
            "x1",
            "z1"
          ],
          [
            "x2",
            "z2"
          ],
          [
            "x3",
            "z3"
          ]
        ],
        "headers": [
          "pair",
          "shortest_distinguishing_word",
          "certificate_size"
        ],
        "input": {
          "alphabet": [
            "A",
            "B"
          ],
          "equivalentC": "renamedA+unreachable accepting state",
          "machineA": "trailing-A run≥3",
          "machineB": "trailing-A run≥4"
        },
        "rows": [
          [
            "A/B",
            "AAA",
            4
          ],
          [
            "A/C",
            "none",
            4
          ]
        ]
      },
      "expectedStdoutSha256": "008CC81F13E0374BD9682AB35512AB5A03D5C8E1D1C442A55C94BE8610FECA7F",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B008",
      "title": "三张概率表分别合理，为什么合在一起可能没有任何联合模型？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "所有表是为研究自制；没有获得真实厂家概率表，不据此指控任何规则造假。可行不表示真实，更不唯一确定联合分布。",
      "classicMethodAttribution": [
        {
          "title": "Polytopes, Polyhedra, and the Farkas Lemma",
          "url": "https://arxiv.org/pdf/2212.00221v2",
          "version": "Melvyn B. Nathanson，arXiv2212.00221v2；首页arXiv版本标识18 January2023，内文Date为January19,2023；2026-10-20新核明确v2，不倒推原未固定版本的读取。"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef solve(a,b):\n    n=len(b); z=[[F(x) for x in row]+[F(y)] for row,y in zip(a,b)]\n    for c in range(n):\n        k=next(k for k in range(c,n) if z[k][c]);z[c],z[k]=z[k],z[c]\n        q=z[c][c];z[c]=[x/q for x in z[c]]\n        for k in range(n):\n            if k!=c:\n                q=z[k][c];z[k]=[x-q*y for x,y in zip(z[k],z[c])]\n    return [row[-1] for row in z]\n\natoms=list(product([0,1],repeat=3))\nassert all(sum([a!=b,b!=c,c!=a])<=2 for a,b,c in atoms)\ndef construct(d,t):\n    e=(1-d)/2\n    a=[[1]*8]+[[x[j] for x in atoms] for j in range(3)]+[[x[i]*x[j] for x in atoms] for i,j in [(0,1),(0,2),(1,2)]]+[[int(x==(1,1,1)) for x in atoms]]\n    return solve(a,[1,F(1,2),F(1,2),F(1,2),e,e,e,t])\nrows=[];distributions={}\nfor d,t in [(F(1),F(0)),(F(2,3),F(0)),(F(1,2),F(0)),(F(1,2),F(1,4))]:\n    q=construct(d,t);valid=min(q)>=0 and sum(q)==1\n    if valid:\n        for i,j in [(0,1),(0,2),(1,2)]:assert sum(p for x,p in zip(atoms,q) if x[i]!=x[j])==d\n    rows.append([str(d),str(t),str(min(q)),valid,str(3*d),str(F(2))])\n    distributions[f'd={d},t={t}']={''.join(map(str,x)):str(p) for x,p in zip(atoms,q)}\nassert rows[0][3] is False and all(x[3] for x in rows[1:])\nresult={'input':{'marginal_one_probability':'1/2','equal_pair_disagreement':['1','2/3','1/2']},'headers':['pair_disagreement','q111','min_atom_mass','feasible_example','required_disagreement_sum','universal_max'],'rows':rows,'full_atom_solutions':distributions,'checks':'8atom inequality is impossible-case certificate for every joint distribution, not just t0; rational8×8systems; all valid pair marginals verified; d1/2 has distinct feasible joints'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "B3DD6EC2402D36ED626DC5DB6C249B1B04243A6CE6B732D5A94AB56705F9FA12",
        "bytes": 2132
      },
      "result": {
        "checks": "8atom inequality is impossible-case certificate for every joint distribution, not just t0; rational8×8systems; all valid pair marginals verified; d1/2 has distinct feasible joints",
        "full_atom_solutions": {
          "d=1,t=0": {
            "000": "-1/2",
            "001": "1/2",
            "010": "1/2",
            "011": "0",
            "100": "1/2",
            "101": "0",
            "110": "0",
            "111": "0"
          },
          "d=1/2,t=0": {
            "000": "1/4",
            "001": "0",
            "010": "0",
            "011": "1/4",
            "100": "0",
            "101": "1/4",
            "110": "1/4",
            "111": "0"
          },
          "d=1/2,t=1/4": {
            "000": "0",
            "001": "1/4",
            "010": "1/4",
            "011": "0",
            "100": "1/4",
            "101": "0",
            "110": "0",
            "111": "1/4"
          },
          "d=2/3,t=0": {
            "000": "0",
            "001": "1/6",
            "010": "1/6",
            "011": "1/6",
            "100": "1/6",
            "101": "1/6",
            "110": "1/6",
            "111": "0"
          }
        },
        "headers": [
          "pair_disagreement",
          "q111",
          "min_atom_mass",
          "feasible_example",
          "required_disagreement_sum",
          "universal_max"
        ],
        "input": {
          "equal_pair_disagreement": [
            "1",
            "2/3",
            "1/2"
          ],
          "marginal_one_probability": "1/2"
        },
        "rows": [
          [
            "1",
            "0",
            "-1/2",
            false,
            "3",
            "2"
          ],
          [
            "2/3",
            "0",
            "0",
            true,
            "2",
            "2"
          ],
          [
            "1/2",
            "0",
            "0",
            true,
            "3/2",
            "2"
          ],
          [
            "1/2",
            "1/4",
            "0",
            true,
            "3/2",
            "2"
          ]
        ]
      },
      "expectedStdoutSha256": "314F2E9E60E626995E1DF682B7777F29EB16D2E81500D273984E792F63AF0522",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B009",
      "title": "官方没公开符号概率，按每项等概率计算就客观吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "最大熵是指定状态与约束后的建模选择，不是未知游戏概率的证据。禁止把自制身份集合冒称真实轮带或实际RNG映射。",
      "classicMethodAttribution": [
        {
          "title": "Information Theory and Statistical Mechanics",
          "url": "https://bayes.wustl.edu/etj/articles/theory.1.pdf",
          "version": "E T Jaynes,PhysicalReview106(4),620-630,15May1957"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nidentities=['A1','A2','A3','B1','C1'];symbol=[x[0] for x in identities]\nfine={x:F(1,5) for x in identities};coarse={x:F(1,3) for x in 'ABC'}\npushed={s:sum((p for x,p in fine.items() if x[0]==s),F(0)) for s in 'ABC'}\nlift={x:coarse[x[0]]/symbol.count(x[0]) for x in identities}\nassert sum(fine.values())==sum(lift.values())==1 and pushed['A']==F(3,5)!=coarse['A']\ndef entropy(p):return -sum(float(x)*log(float(x)) for x in p.values() if x)\nassert abs(entropy(fine)-log(5))<1e-12 and abs(entropy(coarse)-log(3))<1e-12\nassert entropy(lift)<entropy(fine)\nrows=[[s,str(coarse[s]),str(pushed[s])] for s in 'ABC']\nresult={'input':{'assumed_identity_space':identities,'observed_public_information_assumed':'symbol namesABC only; identity multiplicities are a separate hypothetical model'},'headers':['symbol','uniform_on_symbols','pushforward_uniform_on_identities'],'rows':rows,'identity_probabilities':{'fine_uniform':{k:str(v) for k,v in fine.items()},'lifted_coarse_uniform':{k:str(v) for k,v in lift.items()}},'rounded_entropy_nats':{'fine_uniform':round(entropy(fine),6),'lifted_coarse':round(entropy(lift),6),'coarse_uniform':round(entropy(coarse),6)},'checks':'exact pushforward sum by identities=category counts/5; both distributions positive normalized; entropy upper bound logm proved in text, not inferred from sampled optimization'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "A6333EC329E582181E2B06065CD7626FA31EE9A0393F3C422AC6C54F5104C690",
        "bytes": 1850
      },
      "result": {
        "checks": "exact pushforward sum by identities=category counts/5; both distributions positive normalized; entropy upper bound logm proved in text, not inferred from sampled optimization",
        "headers": [
          "symbol",
          "uniform_on_symbols",
          "pushforward_uniform_on_identities"
        ],
        "identity_probabilities": {
          "fine_uniform": {
            "A1": "1/5",
            "A2": "1/5",
            "A3": "1/5",
            "B1": "1/5",
            "C1": "1/5"
          },
          "lifted_coarse_uniform": {
            "A1": "1/9",
            "A2": "1/9",
            "A3": "1/9",
            "B1": "1/3",
            "C1": "1/3"
          }
        },
        "input": {
          "assumed_identity_space": [
            "A1",
            "A2",
            "A3",
            "B1",
            "C1"
          ],
          "observed_public_information_assumed": "symbol namesABC only; identity multiplicities are a separate hypothetical model"
        },
        "rounded_entropy_nats": {
          "coarse_uniform": 1.098612,
          "fine_uniform": 1.609438,
          "lifted_coarse": 1.464816
        },
        "rows": [
          [
            "A",
            "1/3",
            "3/5"
          ],
          [
            "B",
            "1/3",
            "1/5"
          ],
          [
            "C",
            "1/3",
            "1/5"
          ]
        ]
      },
      "expectedStdoutSha256": "B480F08C0B63C032B0618948B2301F67CAADC22ACB39D08952D28FFEAC0497C5",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B010",
      "title": "两版命中率怎样比较？同组输入与独立记录不能用同一种检验",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "配对单位独立同分布，共享完整二元联合分布；零假设使两个不一致单元概率相等。独立异质单位仅总体平均边际相等不足以套条件二项。只有已知同输入配对及独立配对单位时才用配对模型；没有真实同种子接口或原始记录，本题是自拟方法演示。不凭显著性认证平台公平。",
      "classicMethodAttribution": [
        {
          "title": "Tests for Ordinal Data and Small Samples",
          "url": "https://online.stat.psu.edu/stat504/Lesson04",
          "version": "PennStateSTAT504,current course text read20Oct2026"
        },
        {
          "title": "Advanced Topics I",
          "url": "https://online.stat.psu.edu/stat504/Lesson11",
          "version": "PennStateSTAT504,current course text read20Oct2026"
        },
        {
          "title": "Exact Binomial Test",
          "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/binom.test.html",
          "version": "Rstats official R-devel manual; changing version read20Oct2026"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef exact_paired(b,c):\n    m=b+c\n    if not m:return F(1)\n    tail=F(sum(comb(m,k) for k in range(b,m+1)),2**m)\n    enum=F(sum(sum(bits)>=b for bits in product([0,1],repeat=m)),2**m)\n    assert tail==enum;return tail\nrows=[]\nfor overlap in [4,0]:\n    b=10-overlap;c=4-overlap;p=exact_paired(b,c)\n    rows.append([overlap,b,c,b+c,str(p),p<=F(1,20)])\nN=32;K=14;n=16;den=comb(N,n)\ntables={a:F(comb(K,a)*comb(N-K,n-a),den) for a in range(max(0,n-(N-K)),min(n,K)+1)}\nassert sum(tables.values())==1\nfisher=sum((p for a,p in tables.items() if a>=10),F(0))\nassert exact_paired(0,0)==1 and rows[0][-1] and not rows[1][-1]\nresult={'input':{'paired_units':16,'A_hits':10,'B_hits':4,'direction':'A>B fixed in advance','alpha':'1/20'},'headers':['both_hit','A_only','B_only','discordant','paired_one_sided_p','reject_at_alpha'],'rows':rows,'independent_Fisher_one_sided_p':str(fisher),'independent_table_distribution':{str(k):str(v) for k,v in tables.items()},'checks':'paired conditional sign enumeration=binomial sum; independent conditional hypergeometric tables mass1; fixed marginals cannot recover pairing; m0 p1'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "534028844E95EA177E47693FABA30990F3E7E27723838B34B79927EDED0450DF",
        "bytes": 1620
      },
      "result": {
        "checks": "paired conditional sign enumeration=binomial sum; independent conditional hypergeometric tables mass1; fixed marginals cannot recover pairing; m0 p1",
        "headers": [
          "both_hit",
          "A_only",
          "B_only",
          "discordant",
          "paired_one_sided_p",
          "reject_at_alpha"
        ],
        "independent_Fisher_one_sided_p": "431203/11785890",
        "independent_table_distribution": {
          "0": "1/3928630",
          "1": "112/5892945",
          "10": "182182/5892945",
          "11": "10192/1964315",
          "12": "182/392863",
          "13": "112/5892945",
          "14": "1/3928630",
          "2": "182/392863",
          "3": "10192/1964315",
          "4": "182182/5892945",
          "5": "208208/1964315",
          "6": "429429/1964315",
          "7": "327184/1178589",
          "8": "429429/1964315",
          "9": "208208/1964315"
        },
        "input": {
          "A_hits": 10,
          "B_hits": 4,
          "alpha": "1/20",
          "direction": "A>B fixed in advance",
          "paired_units": 16
        },
        "rows": [
          [
            4,
            6,
            0,
            6,
            "1/64",
            true
          ],
          [
            0,
            10,
            4,
            14,
            "1471/16384",
            false
          ]
        ]
      },
      "expectedStdoutSha256": "14CF0DDD03DE9D5E5E05BCD5C153BEC314CA8CE7B2AD48F066C8F773DBF8A550",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B011",
      "title": "命中率没有显著偏离基准，就能证明两者足够接近吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "pL/pU和n必须预设，容差不代表法律/监管/厂商认可标准；仅假设IID固定期限，不能看数据后放宽容差或连续窥看沿用保证。",
      "classicMethodAttribution": [
        {
          "title": "Exact Binomial Test",
          "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/binom.test.html",
          "version": "Rstats official R-devel manual; changing version read20Oct2026"
        },
        {
          "title": "Equivalence Tests:A Practical Primer for t Tests,Correlations,and Meta-Analyses",
          "url": "https://pmc.ncbi.nlm.nih.gov/articles/PMC5502906/",
          "version": "Daniel Lakens,2017,SocPsycholPersonalSci8(4)355-362,DOI10.1177/1948550617697177"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef pmf(n,p):\n    return [F(comb(n,k))*p**k*(1-p)**(n-k) for k in range(n+1)]\ndef tails(v):\n    lo=[];q=F(0)\n    for x in v:q+=x;lo.append(q)\n    return lo,[sum(v[k:],F(0)) for k in range(len(v))]\n\np0=F(1,2);lower=F(2,5);upper=F(3,5);alpha=F(1,20)\nrows=[];regions={}\nfor n in [20,100,400]:\n    vl=pmf(n,lower);vu=pmf(n,upper);v0=pmf(n,p0)\n    ll,hl=tails(vl);lu,hu=tails(vu);l0,h0=tails(v0)\n    equivalent=[k for k in range(n+1) if hl[k]<=alpha and lu[k]<=alpha]\n    different=[k for k in range(n+1) if min(F(1),2*min(l0[k],h0[k]))<=alpha]\n    # Exact boundary errors plus monotonic tail-coupling argument in the article.\n    error_l=sum((vl[k] for k in equivalent),F(0));error_u=sum((vu[k] for k in equivalent),F(0))\n    assert error_l<=alpha and error_u<=alpha\n    assert not equivalent or equivalent==list(range(min(equivalent),max(equivalent)+1))\n    regions[str(n)]={'equivalence_counts':equivalent,'difference_counts':different,'lower_boundary_error_exact':str(error_l),'upper_boundary_error_exact':str(error_u)}\n    ks=[n//2]\n    both=[k for k in equivalent if k in different]\n    if both:ks.append(min(both,key=lambda k:abs(k-F(n,2))))\n    for k in ks:\n        rows.append([n,k,k in different,k in equivalent,f'{float(hl[k]):.6g}',f'{float(lu[k]):.6g}'])\nassert rows[0][2:4]==[False,False] and any(r[2] and r[3] for r in rows)\nresult={'input':{'p0':str(p0),'equivalence_open_interval':[str(lower),str(upper)],'alpha':str(alpha),'fixed_n':[20,100,400],'difference_test':'twice smaller inclusive tail, capped at1'},'headers':['n','hits','reject_point_null','establish_equivalence','lower_test_p_rounded6significant','upper_test_p_rounded6significant'],'rows':rows,'decision_regions':regions,'checks':'exact tail regions; both composite-null boundary errors≤alpha; stochastic monotonicity covers whole union null, not a finite p-grid; TOST is an intersection, no alpha/2 required'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "E6C3FFA259CA9F6431E905112156C14842C77ACC6BF28CA1A0322B17084F8976",
        "bytes": 2401
      },
      "result": {
        "checks": "exact tail regions; both composite-null boundary errors≤alpha; stochastic monotonicity covers whole union null, not a finite p-grid; TOST is an intersection, no alpha/2 required",
        "decision_regions": {
          "100": {
            "difference_counts": [
              0,
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9,
              10,
              11,
              12,
              13,
              14,
              15,
              16,
              17,
              18,
              19,
              20,
              21,
              22,
              23,
              24,
              25,
              26,
              27,
              28,
              29,
              30,
              31,
              32,
              33,
              34,
              35,
              36,
              37,
              38,
              39,
              61,
              62,
              63,
              64,
              65,
              66,
              67,
              68,
              69,
              70,
              71,
              72,
              73,
              74,
              75,
              76,
              77,
              78,
              79,
              80,
              81,
              82,
              83,
              84,
              85,
              86,
              87,
              88,
              89,
              90,
              91,
              92,
              93,
              94,
              95,
              96,
              97,
              98,
              99,
              100
            ],
            "equivalence_counts": [
              49,
              50,
              51
            ],
            "lower_boundary_error_exact": "254772703009253351135715421437945158126218832238225822669944081350656/7888609052210118054117285652827862296732064351090230047702789306640625",
            "upper_boundary_error_exact": "254772703009253351135715421437945158126218832238225822669944081350656/7888609052210118054117285652827862296732064351090230047702789306640625"
          },
          "20": {
            "difference_counts": [
              0,
              1,
              2,
              3,
              4,
              5,
              15,
              16,
              17,
              18,
              19,
              20
            ],
            "equivalence_counts": [],
            "lower_boundary_error_exact": "0",
            "upper_boundary_error_exact": "0"
          },
          "400": {
            "difference_counts": [
              0,
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9,
              10,
              11,
              12,
              13,
              14,
              15,
              16,
              17,
              18,
              19,
              20,
              21,
              22,
              23,
              24,
              25,
              26,
              27,
              28,
              29,
              30,
              31,
              32,
              33,
              34,
              35,
              36,
              37,
              38,
              39,
              40,
              41,
              42,
              43,
              44,
              45,
              46,
              47,
              48,
              49,
              50,
              51,
              52,
              53,
              54,
              55,
              56,
              57,
              58,
              59,
              60,
              61,
              62,
              63,
              64,
              65,
              66,
              67,
              68,
              69,
              70,
              71,
              72,
              73,
              74,
              75,
              76,
              77,
              78,
              79,
              80,
              81,
              82,
              83,
              84,
              85,
              86,
              87,
              88,
              89,
              90,
              91,
              92,
              93,
              94,
              95,
              96,
              97,
              98,
              99,
              100,
              101,
              102,
              103,
              104,
              105,
              106,
              107,
              108,
              109,
              110,
              111,
              112,
              113,
              114,
              115,
              116,
              117,
              118,
              119,
              120,
              121,
              122,
              123,
              124,
              125,
              126,
              127,
              128,
              129,
              130,
              131,
              132,
              133,
              134,
              135,
              136,
              137,
              138,
              139,
              140,
              141,
              142,
              143,
              144,
              145,
              146,
              147,
              148,
              149,
              150,
              151,
              152,
              153,
              154,
              155,
              156,
              157,
              158,
              159,
              160,
              161,
              162,
              163,
              164,
              165,
              166,
              167,
              168,
              169,
              170,
              171,
              172,
              173,
              174,
              175,
              176,
              177,
              178,
              179,
              221,
              222,
              223,
              224,
              225,
              226,
              227,
              228,
              229,
              230,
              231,
              232,
              233,
              234,
              235,
              236,
              237,
              238,
              239,
              240,
              241,
              242,
              243,
              244,
              245,
              246,
              247,
              248,
              249,
              250,
              251,
              252,
              253,
              254,
              255,
              256,
              257,
              258,
              259,
              260,
              261,
              262,
              263,
              264,
              265,
              266,
              267,
              268,
              269,
              270,
              271,
              272,
              273,
              274,
              275,
              276,
              277,
              278,
              279,
              280,
              281,
              282,
              283,
              284,
              285,
              286,
              287,
              288,
              289,
              290,
              291,
              292,
              293,
              294,
              295,
              296,
              297,
              298,
              299,
              300,
              301,
              302,
              303,
              304,
              305,
              306,
              307,
              308,
              309,
              310,
              311,
              312,
              313,
              314,
              315,
              316,
              317,
              318,
              319,
              320,
              321,
              322,
              323,
              324,
              325,
              326,
              327,
              328,
              329,
              330,
              331,
              332,
              333,
              334,
              335,
              336,
              337,
              338,
              339,
              340,
              341,
              342,
              343,
              344,
              345,
              346,
              347,
              348,
              349,
              350,
              351,
              352,
              353,
              354,
              355,
              356,
              357,
              358,
              359,
              360,
              361,
              362,
              363,
              364,
              365,
              366,
              367,
              368,
              369,
              370,
              371,
              372,
              373,
              374,
              375,
              376,
              377,
              378,
              379,
              380,
              381,
              382,
              383,
              384,
              385,
              386,
              387,
              388,
              389,
              390,
              391,
              392,
              393,
              394,
              395,
              396,
              397,
              398,
              399,
              400
            ],
            "equivalence_counts": [
              177,
              178,
              179,
              180,
              181,
              182,
              183,
              184,
              185,
              186,
              187,
              188,
              189,
              190,
              191,
              192,
              193,
              194,
              195,
              196,
              197,
              198,
              199,
              200,
              201,
              202,
              203,
              204,
              205,
              206,
              207,
              208,
              209,
              210,
              211,
              212,
              213,
              214,
              215,
              216,
              217,
              218,
              219,
              220,
              221,
              222,
              223
            ],
            "lower_boundary_error_exact": "36110591265784168107183711992751627631617372732822790628952361815495751075726250323230015395314695529412918378895133014563479237843466193169517457214584056269084665750603171911474603769732277023598373681990135662894540497755851817078036430246139938322485849632824155815987380224/774518382969863654563606126657270369514043838409758173097552588268883269619537192972536446855402919381611508501510893507874167279798470063104463610130670098400487213054106160547686407674634950818161873529290988480036254032515793769363252226078930817720902268774807453155517578125",
            "upper_boundary_error_exact": "36110591265784168107183711992751627631617372732822790628952361815495751075726250323230015395314695529412918378895133014563479237843466193169517457214584056269084665750603171911474603769732277023598373681990135662894540497755851817078036430246139938322485849632824155815987380224/774518382969863654563606126657270369514043838409758173097552588268883269619537192972536446855402919381611508501510893507874167279798470063104463610130670098400487213054106160547686407674634950818161873529290988480036254032515793769363252226078930817720902268774807453155517578125"
          }
        },
        "headers": [
          "n",
          "hits",
          "reject_point_null",
          "establish_equivalence",
          "lower_test_p_rounded6significant",
          "upper_test_p_rounded6significant"
        ],
        "input": {
          "alpha": "1/20",
          "difference_test": "twice smaller inclusive tail, capped at1",
          "equivalence_open_interval": [
            "2/5",
            "3/5"
          ],
          "fixed_n": [
            20,
            100,
            400
          ],
          "p0": "1/2"
        },
        "rows": [
          [
            20,
            10,
            false,
            false,
            "0.244663",
            "0.244663"
          ],
          [
            100,
            50,
            false,
            true,
            "0.0270992",
            "0.0270992"
          ],
          [
            400,
            200,
            false,
            true,
            "3.2585e-05",
            "3.2585e-05"
          ],
          [
            400,
            179,
            true,
            true,
            "0.0300159",
            "5.36254e-10"
          ]
        ]
      },
      "expectedStdoutSha256": "DB2B87F27FCC072A511555B114635312D94376D1248F6380005FC59727A876A8",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B012",
      "title": "多加一条记录，离散检验的识别能力一定更高吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "固定预设IID假设模型与统计协议，不分析真实玩家数据，也不建议为达到显著性继续游戏。不能跨任意检验概括为样本量越多越差。",
      "classicMethodAttribution": [
        {
          "title": "Exact Power and Sample Size methods for Bernoulli responses",
          "url": "https://search.r-project.org/CRAN/refmans/exactci/html/powerBinom.html",
          "version": "Michael P. Fay，exactci1.4-4的powerBinom作者文档；所存网页页脚明确该包版本，读取日2026-10-20；本文未调用R程序。"
        },
        {
          "title": "Exact Binomial Test",
          "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/binom.test.html",
          "version": "Rstats official R-devel manual; changing version read20Oct2026"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ndef pmf(n,p):\n    return [F(comb(n,k))*p**k*(1-p)**(n-k) for k in range(n+1)]\ndef tails(v):\n    lo=[];q=F(0)\n    for x in v:q+=x;lo.append(q)\n    return lo,[sum(v[k:],F(0)) for k in range(len(v))]\n\np0=F(1,10);p1=F(1,5);alpha=F(1,20)\nrows=[];last=None;d0=[F(1)];d1=[F(1)];falls=[]\nfor n in range(1,61):\n    def advance(v,p):\n        z=[F(0)]*(len(v)+1)\n        for k,w in enumerate(v):z[k]+=w*(1-p);z[k+1]+=w*p\n        return z\n    d0=advance(d0,p0);d1=advance(d1,p1)\n    assert d0==pmf(n,p0) and d1==pmf(n,p1)\n    c=next(k for k in range(n+2) if sum(d0[k:],F(0))<=alpha)\n    level=sum(d0[c:],F(0));power=sum(d1[c:],F(0));assert level<=alpha\n    if last:\n        prev_n,prev_c,prev_power,prev_dist=last\n        assert c in [prev_c,prev_c+1]\n        if c==prev_c+1:\n            predicted=-(1-p1)*(prev_dist[prev_c] if prev_c<=prev_n else 0)\n        else:predicted=p1*(prev_dist[prev_c-1] if prev_c>0 else 0)\n        assert power-prev_power==predicted\n        if power<prev_power:falls.append([prev_n,n,prev_c,c,str(prev_power),str(power)])\n    rows.append([n,c,str(level),str(power)])\n    last=n,c,power,d1[:]\nassert falls and rows[2][1]==2 and rows[3][1]==3\nresult={'input':{'p0':str(p0),'p1':str(p1),'alpha':str(alpha),'n_range':[1,60],'never_reject_cutoff':'n+1 allowed'},'headers':['n','critical_hits','actual_level','power'],'rows':rows[:8],'all60rows':rows,'downward_jumps':falls,'checks':'combinatorial binomial pmf=separate Bernoulli convolution every n; exact threshold-jump/no-jump identities; everyactuallevel≤alpha'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "2B465F8EDE67B927B4B5B0507FFE7B071F197F28FA7E5873FA949D9E14D72A14",
        "bytes": 2041
      },
      "result": {
        "all60rows": [
          [
            1,
            2,
            "0",
            "0"
          ],
          [
            2,
            2,
            "1/100",
            "1/25"
          ],
          [
            3,
            2,
            "7/250",
            "13/125"
          ],
          [
            4,
            3,
            "37/10000",
            "17/625"
          ],
          [
            5,
            3,
            "107/12500",
            "181/3125"
          ],
          [
            6,
            3,
            "317/20000",
            "309/3125"
          ],
          [
            7,
            3,
            "51383/2000000",
            "2313/15625"
          ],
          [
            8,
            3,
            "3809179/100000000",
            "79329/390625"
          ],
          [
            9,
            4,
            "4165547/500000000",
            "167269/1953125"
          ],
          [
            10,
            4,
            "7996999/625000000",
            "1180409/9765625"
          ],
          [
            11,
            4,
            "46336903/2500000000",
            "12589/78125"
          ],
          [
            12,
            4,
            "5127494033/200000000000",
            "10030813/48828125"
          ],
          [
            13,
            4,
            "34160720923/1000000000000",
            "61688401/244140625"
          ],
          [
            14,
            4,
            "2206646215493/50000000000000",
            "1842102761/6103515625"
          ],
          [
            15,
            5,
            "12720483641251/1000000000000000",
            "5012015501/30517578125"
          ],
          [
            16,
            5,
            "34007996555759/2000000000000000",
            "6157060493/30517578125"
          ],
          [
            17,
            5,
            "221442158418337/10000000000000000",
            "36892209089/152587890625"
          ],
          [
            18,
            5,
            "352423206415709/12500000000000000",
            "216404864709/762939453125"
          ],
          [
            19,
            5,
            "17597077502237393/500000000000000000",
            "1246306822617/3814697265625"
          ],
          [
            20,
            5,
            "1079362382111584531/25000000000000000000",
            "35319493875249/95367431640625"
          ],
          [
            21,
            6,
            "1805658784563054797/125000000000000000000",
            "110008296419061/476837158203125"
          ],
          [
            22,
            6,
            "182159810587990496269/10000000000000000000000",
            "637439771601609/2384185791015625"
          ],
          [
            23,
            6,
            "141298438047432774421/6250000000000000000000",
            "3639613533099501/11920928955078125"
          ],
          [
            24,
            6,
            "27658284470697967329889/1000000000000000000000000",
            "20510409338187169/59604644775390625"
          ],
          [
            25,
            6,
            "166999723057476264524873/5000000000000000000000000",
            "114235457247683621/298023223876953125"
          ],
          [
            26,
            6,
            "398593122698921991769459/10000000000000000000000000",
            "125918867804431397/298023223876953125"
          ],
          [
            27,
            6,
            "9190799487297476985491/195312500000000000000000",
            "687455038922241209/1490116119384765625"
          ],
          [
            28,
            7,
            "17906689899426006061203439/1000000000000000000000000000",
            "2395782596409690013/7450580596923828125"
          ],
          [
            29,
            7,
            "6755223686347669693737287/312500000000000000000000000",
            "13304449016123106833/37252902984619140625"
          ],
          [
            30,
            7,
            "1291339433095493704527375599/50000000000000000000000000000",
            "73207557252470324821/186264514923095703125"
          ],
          [
            31,
            7,
            "12225248254282748617983691903/400000000000000000000000000000",
            "79892869424325115477/186264514923095703125"
          ],
          [
            32,
            7,
            "3584886711846432070408270679719/100000000000000000000000000000000",
            "10815587387350633475969/23283064365386962890625"
          ],
          [
            33,
            7,
            "20851923918913209117094356066731/500000000000000000000000000000000",
            "58159062890279291891077/116415321826934814453125"
          ],
          [
            34,
            7,
            "120360816572811813793263295008403/2500000000000000000000000000000000",
            "310747485779746401510297/582076609134674072265625"
          ],
          [
            35,
            8,
            "249877920339544420996016225722523/12500000000000000000000000000000000",
            "1166095243090790276198909/2910383045673370361328125"
          ],
          [
            36,
            8,
            "587737381310217503984607513774919/25000000000000000000000000000000000",
            "1263005789542775709037053/2910383045673370361328125"
          ],
          [
            37,
            8,
            "3430169995593944183467767227406989/125000000000000000000000000000000000",
            "6796239936992702763416049/14551915228366851806640625"
          ],
          [
            38,
            8,
            "198785811221575754000120857418897317/6250000000000000000000000000000000000",
            "181775869493695233135093897/363797880709171295166015625"
          ],
          [
            39,
            8,
            "71524639104648131119737882508529777/1953125000000000000000000000000000000",
            "967080005612650518435252909/1818989403545856475830078125"
          ],
          [
            40,
            8,
            "419019426733636887431293801841410894537/10000000000000000000000000000000000000000",
            "5119128236516102561880208737/9094947017729282379150390625"
          ],
          [
            41,
            8,
            "476633908025824294083914721911671006861/10000000000000000000000000000000000000000",
            "1078851724094076264076200621/1818989403545856475830078125"
          ],
          [
            42,
            9,
            "4217742261312197617974014561751924775331/200000000000000000000000000000000000000000",
            "21331120231289192052638730981/45474735088646411895751953125"
          ],
          [
            43,
            9,
            "48742931665080214623139550170819918494467/2000000000000000000000000000000000000000000",
            "113622873526582254706404947577/227373675443232059478759765625"
          ],
          [
            44,
            9,
            "2800125440840844770813487445987761578555887/100000000000000000000000000000000000000000000",
            "3011767673545048173979029737937/5684341886080801486968994140625"
          ],
          [
            45,
            9,
            "31994021841863622144356483771792037977716777/1000000000000000000000000000000000000000000000",
            "15895795785140978589676467149077/28421709430404007434844970703125"
          ],
          [
            46,
            9,
            "14545793396798795502790973802041508150896389/400000000000000000000000000000000000000000000",
            "16710132731815750425139371596053/28421709430404007434844970703125"
          ],
          [
            47,
            9,
            "822519728953372079225078879764762629302872973/20000000000000000000000000000000000000000000000",
            "87493768874556594697411974249833/142108547152020037174224853515625"
          ],
          [
            48,
            9,
            "9258077161456332705793847008604464621327617941/200000000000000000000000000000000000000000000000",
            "456476633616624881268660944548621/710542735760100185871124267578125"
          ],
          [
            49,
            10,
            "21501268881138977603935837980058203227464772641/1000000000000000000000000000000000000000000000000",
            "1876883664214497040335815159021377/3552713678800500929355621337890625"
          ],
          [
            50,
            10,
            "1226896785229572831487621456013565395633175199067/50000000000000000000000000000000000000000000000000",
            "49405776066557768625191252553330009/88817841970012523233890533447265625"
          ],
          [
            51,
            10,
            "174192891912135865545975029762303862081272343529/6250000000000000000000000000000000000000000000000",
            "51828882857967858983040885312154969/88817841970012523233890533447265625"
          ],
          [
            52,
            10,
            "1260531031439553289269482211387227126780723244427/40000000000000000000000000000000000000000000000000",
            "54182758026766232473523385706442073/88817841970012523233890533447265625"
          ],
          [
            53,
            10,
            "35477576533574971469807593993120780938561776171941/1000000000000000000000000000000000000000000000000000",
            "282299976996855852740183442067366589/444089209850062616169452667236328125"
          ],
          [
            54,
            10,
            "795504778698707993785226741859048756081864729994451/20000000000000000000000000000000000000000000000000000",
            "1466360603506125499132374048278949297/2220446049250313080847263336181640625"
          ],
          [
            55,
            10,
            "1388022322762645692695980613774082100589600426678957/31250000000000000000000000000000000000000000000000000",
            "37975672332177447128664315317584524873/55511151231257827021181583404541015625"
          ],
          [
            56,
            10,
            "98822690916667084880890459547497792526052334660635929/2000000000000000000000000000000000000000000000000000000",
            "7847016721909705184931204023807665269/11102230246251565404236316680908203125"
          ],
          [
            57,
            11,
            "1211920228174599292930451255176921014023252040014880419/50000000000000000000000000000000000000000000000000000000",
            "839823027173152322965329565213132393761/1387778780781445675529539585113525390625"
          ],
          [
            58,
            11,
            "426426455314069218042250846571311657673688609985074343/15625000000000000000000000000000000000000000000000000000",
            "4370180701711228998520499814416323002789/6938893903907228377647697925567626953125"
          ],
          [
            59,
            11,
            "612226189343242258184147966036584108203981328473645662231/20000000000000000000000000000000000000000000000000000000000",
            "22677720410142570680456117015776476678201/34694469519536141888238489627838134765625"
          ],
          [
            60,
            11,
            "6841824615746607744633837100525780958951270651774222279339/200000000000000000000000000000000000000000000000000000000000",
            "117370822229782168960106173542392329365789/173472347597680709441192448139190673828125"
          ]
        ],
        "checks": "combinatorial binomial pmf=separate Bernoulli convolution every n; exact threshold-jump/no-jump identities; everyactuallevel≤alpha",
        "downward_jumps": [
          [
            3,
            4,
            2,
            3,
            "13/125",
            "17/625"
          ],
          [
            8,
            9,
            3,
            4,
            "79329/390625",
            "167269/1953125"
          ],
          [
            14,
            15,
            4,
            5,
            "1842102761/6103515625",
            "5012015501/30517578125"
          ],
          [
            20,
            21,
            5,
            6,
            "35319493875249/95367431640625",
            "110008296419061/476837158203125"
          ],
          [
            27,
            28,
            6,
            7,
            "687455038922241209/1490116119384765625",
            "2395782596409690013/7450580596923828125"
          ],
          [
            34,
            35,
            7,
            8,
            "310747485779746401510297/582076609134674072265625",
            "1166095243090790276198909/2910383045673370361328125"
          ],
          [
            41,
            42,
            8,
            9,
            "1078851724094076264076200621/1818989403545856475830078125",
            "21331120231289192052638730981/45474735088646411895751953125"
          ],
          [
            48,
            49,
            9,
            10,
            "456476633616624881268660944548621/710542735760100185871124267578125",
            "1876883664214497040335815159021377/3552713678800500929355621337890625"
          ],
          [
            56,
            57,
            10,
            11,
            "7847016721909705184931204023807665269/11102230246251565404236316680908203125",
            "839823027173152322965329565213132393761/1387778780781445675529539585113525390625"
          ]
        ],
        "headers": [
          "n",
          "critical_hits",
          "actual_level",
          "power"
        ],
        "input": {
          "alpha": "1/20",
          "n_range": [
            1,
            60
          ],
          "never_reject_cutoff": "n+1 allowed",
          "p0": "1/10",
          "p1": "1/5"
        },
        "rows": [
          [
            1,
            2,
            "0",
            "0"
          ],
          [
            2,
            2,
            "1/100",
            "1/25"
          ],
          [
            3,
            2,
            "7/250",
            "13/125"
          ],
          [
            4,
            3,
            "37/10000",
            "17/625"
          ],
          [
            5,
            3,
            "107/12500",
            "181/3125"
          ],
          [
            6,
            3,
            "317/20000",
            "309/3125"
          ],
          [
            7,
            3,
            "51383/2000000",
            "2313/15625"
          ],
          [
            8,
            3,
            "3809179/100000000",
            "79329/390625"
          ]
        ]
      },
      "expectedStdoutSha256": "403EA9DADBA10B91B6889A56F7EEF383D9391D3443D0BB7BB6934061B8BDB7F7",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B013",
      "title": "从一份固定记录不放回抽样，误差能照搬独立抽样公式吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "总体是已存在且完整的固定表，抽样来自它，不是把真实游戏设成有限奖票池；无正态性/30条自动保证或实际游戏RTP认证声明。",
      "classicMethodAttribution": [
        {
          "title": "Estimating Population Mean and Total under SRS",
          "url": "https://online.stat.psu.edu/stat506/Lesson01",
          "version": "PennStateSTAT506,current course text read20Oct2026"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ny=[0,0,1,2,5,10];N=len(y);mu=F(sum(y),N)\nsigma=sum((F(x)-mu)**2 for x in y)/N;S2=sigma*N/(N-1)\ndef distribution(samples):\n    out=Counter(F(sum(a),len(a)) for a in samples);t=sum(out.values())\n    return [(x,F(c,t)) for x,c in out.items()]\nrows=[]\nfor n in [1,3,6]:\n    wor=distribution(combinations(y,n));m,v=meanvar(wor)\n    expected=(1-F(n,N))*S2/n;assert m==mu and v==expected\n    rows.append([n,'without replacement',str(m),str(v),comb(N,n)])\n    if n<=3:\n        wr=distribution(product(y,repeat=n));m,v=meanvar(wr)\n        assert m==mu and v==sigma/n\n        rows.append([n,'with replacement',str(m),str(v),N**n])\n# Inclusion indicator covariance is a second independent derivation of WOR variance.\nn=3;pi=F(n,N);pij=F(n*(n-1),N*(N-1))\niv=sum(F(a*b)*(pi*(1-pi) if i==j else pij-pi*pi) for i,a in enumerate(y) for j,b in enumerate(y))/n**2\nassert iv==(1-F(n,N))*S2/n\nresult={'input':{'fixed_population':y,'N':N,'variance_denominators':['N','N-1']},'headers':['sample_size','design','mean','variance_of_mean','equally_likely_samples'],'rows':rows,'population_variance_N':str(sigma),'population_variance_Nminus1':str(S2),'checks':'all indexed subsets (duplicate values retain position multiplicity) vs all replacement sequences; independent inclusion covariance; n1 matches and nN variance0'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "027CBBCE2F2309EDA048AC2473D7659AE46AAA53FD20772A05DEAEF1BE9E7778",
        "bytes": 1809
      },
      "result": {
        "checks": "all indexed subsets (duplicate values retain position multiplicity) vs all replacement sequences; independent inclusion covariance; n1 matches and nN variance0",
        "headers": [
          "sample_size",
          "design",
          "mean",
          "variance_of_mean",
          "equally_likely_samples"
        ],
        "input": {
          "N": 6,
          "fixed_population": [
            0,
            0,
            1,
            2,
            5,
            10
          ],
          "variance_denominators": [
            "N",
            "N-1"
          ]
        },
        "population_variance_N": "38/3",
        "population_variance_Nminus1": "76/5",
        "rows": [
          [
            1,
            "without replacement",
            "3",
            "38/3",
            6
          ],
          [
            1,
            "with replacement",
            "3",
            "38/3",
            6
          ],
          [
            3,
            "without replacement",
            "3",
            "38/15",
            20
          ],
          [
            3,
            "with replacement",
            "3",
            "38/9",
            216
          ],
          [
            6,
            "without replacement",
            "3",
            "0",
            1
          ]
        ]
      },
      "expectedStdoutSha256": "7AF1489C595CAC920C9D4EF4E67CEBCCC9E9F8510FBD0FB95F2FFDE9AA3F75C2",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B014",
      "title": "高奖记录更容易被保留，知道入选概率后怎样还原总体均值？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "必须已知抽样设计与正确π_i，不从获奖视频猜权重；未知漏报机制下不声称可校正真实玩家收益。完全自制记录而非真实用户日志。",
      "classicMethodAttribution": [
        {
          "title": "Unequal Probability Sampling",
          "url": "https://online.stat.psu.edu/stat506/Lesson03",
          "version": "PennStateSTAT506,current course text read20Oct2026"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\ny=[0,2,10];p=[F(1,6),F(1,3),F(1,2)];N=3\ndraws=3;pi=[1-(1-x)**draws for x in p];design=[]\nfor ids in product(range(N),repeat=draws):\n    q=F(1)\n    for i in ids:q*=p[i]\n    s=set(ids)\n    ht=sum((F(y[i])/pi[i] for i in s),F(0))/N\n    wrong=sum((F(y[i])/p[i] for i in s),F(0))/N\n    raw=F(sum(y[i] for i in ids),draws);unique=F(sum(y[i] for i in s),len(s))\n    design.append((q,[raw,unique,wrong,ht]))\nrows=[]\nfor j,name in enumerate(['draw mean','distinct-ID mean','wrong:distinct-ID divided by single-draw p','HT with inclusion pi']):\n    m,v=meanvar([(a[j],q) for q,a in design]);rows.append([name,str(m),str(v)])\nassert rows[-1][1]==str(F(sum(y),N))\nvar=sum(F(y[i]*y[j])*((pi[i] if i==j else 1-(1-p[i])**draws-(1-p[j])**draws+(1-p[i]-p[j])**draws)-pi[i]*pi[j])/(pi[i]*pi[j]) for i in range(N) for j in range(N))/N**2\nassert var==F(rows[-1][2])\nfor i in range(N):\n    mass=F(0)\n    for ids in product(range(N),repeat=draws):\n        q=F(1)\n        for j in ids:q*=p[j]\n        if i in ids:mass+=q\n    assert mass==pi[i]\ndef require_positive(x):\n    if min(x)<=0:raise ValueError('unknown record with zero inclusion probability is not identifiable')\ntry:require_positive([F(1),F(1),F(0)])\nexcept ValueError:zero_guard=True\nassert zero_guard\nresult={'input':{'fixed_y':y,'single_draw_p':list(map(str,p)),'independent_draw_count':draws,'distinct_ID_inclusion_pi':list(map(str,pi))},'headers':['estimator','design_expectation','design_variance'],'rows':rows,'true_population_mean':str(F(sum(y),N)),'checks':'all27ordered samples; inclusion indicator covariance independently matches HTvariance; deduplicate ID before HT; zero-inclusion guard'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "BDB75C5654CE5F78C136A155E34184CD176D6A03C76CF80B210DE75C498A2F8F",
        "bytes": 2153
      },
      "result": {
        "checks": "all27ordered samples; inclusion indicator covariance independently matches HTvariance; deduplicate ID before HT; zero-inclusion guard",
        "headers": [
          "estimator",
          "design_expectation",
          "design_variance"
        ],
        "input": {
          "distinct_ID_inclusion_pi": [
            "91/216",
            "19/27",
            "7/8"
          ],
          "fixed_y": [
            0,
            2,
            10
          ],
          "independent_draw_count": 3,
          "single_draw_p": [
            "1/6",
            "1/3",
            "1/2"
          ]
        },
        "rows": [
          [
            "draw mean",
            "17/3",
            "173/27"
          ],
          [
            "distinct-ID mean",
            "146/27",
            "15527/2916"
          ],
          [
            "wrong:distinct-ID divided by single-draw p",
            "391/54",
            "14087/2916"
          ],
          [
            "HT with inclusion pi",
            "4",
            "1844/1197"
          ]
        ],
        "true_population_mean": "4"
      },
      "expectedStdoutSha256": "126A063228F5BD4C2881AE74E70F41A4E4A6A92DBB5809DB4B7DA65AD4C95A24",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B015",
      "title": "不同规则阶段各抽同样多，真是最精确的复算方案吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "层权重、方差、成本和记录总体全部预先指定；不声称真实阶段概率已知，不建议玩家额外投注收集。这里只是模型复算/既存资料抽样设计。",
      "classicMethodAttribution": [
        {
          "title": "Part A:Stratified Sampling",
          "url": "https://online.stat.psu.edu/stat506/Lesson06",
          "version": "PennStateSTAT506,current course text read20Oct2026"
        },
        {
          "title": "Monte Carlo theory, methods and examples, Chapter8: Variance reduction",
          "url": "https://artowen.su.domains/mc/Ch-var-basic.pdf",
          "version": "Art Owen，作者公开第8章Variance reduction；页脚©2009–2013,2018；所存PDF元数据创建/修改2018-02-21，此为文件元数据而非另行声明的修订日。"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\npop=[[0,0,2,2],[0,0,0,4,4,4],[0,0,0,0,6,6,6,6]]\nN=list(map(len,pop));W=[F(x,sum(N)) for x in N];cost=[1,2,3];budget=18\nS2=[]\nfor ys in pop:\n    m=F(sum(ys),len(ys));S2.append(sum((F(y)-m)**2 for y in ys)/(len(ys)-1))\ndef value(ns):return sum(W[h]**2*S2[h]*(F(1,ns[h])-F(1,N[h])) for h in range(3))\ndef expense(ns):return sum(c*n for c,n in zip(cost,ns))\nalloc=[ns for ns in product(*(range(1,z+1) for z in N)) if expense(ns)<=budget]\nbest=min(map(value,alloc));opt=sorted(ns for ns in alloc if value(ns)==best)\ndp={0:(F(0),[()])}\nfor h in range(3):\n    nd={}\n    for used,(v,paths) in dp.items():\n        for n in range(1,N[h]+1):\n            k=used+cost[h]*n\n            if k>budget:continue\n            q=v+W[h]**2*S2[h]*(F(1,n)-F(1,N[h]))\n            additions=[path+(n,) for path in paths]\n            if k not in nd or q<nd[k][0]:nd[k]=(q,additions)\n            elif q==nd[k][0]:nd[k][1].extend(additions)\n    dp=nd\nassert min(v for v,paths in dp.values())==best\nassert sorted(path for v,paths in dp.values() if v==best for path in paths)==opt\nscale=budget/sum(float(W[h])*sqrt(float(S2[h])*cost[h]) for h in range(3))\ncontinuous=[scale*float(W[h])*sqrt(float(S2[h])/cost[h]) for h in range(3)]\nrounded=tuple(round(x) for x in continuous)\nrows=[['equal counts',[3,3,3],18,str(value((3,3,3)))],['rough population-proportion',[2,2,4],18,str(value((2,2,4)))]]\nif expense(rounded)<=budget:rows.append(['nearest rounding of continuous relaxation',list(rounded),expense(rounded),str(value(rounded))])\nfor ns in opt:rows.append(['exact integer optimum',list(ns),expense(ns),str(value(ns))])\nresult={'input':{'populations':pop,'weights':list(map(str,W)),'cost':cost,'budget':budget,'sampling':'independent SRS without replacement within each stratum'},'headers':['allocation_type','counts','cost','variance'],'rows':rows,'stratum_sample_variances':list(map(str,S2)),'continuous_relaxation_rounded6':[round(x,6) for x in continuous],'nearest_integer_counts':list(rounded),'nearest_integer_cost':expense(rounded),'feasible_allocation_count':len(alloc),'checks':'all feasible integer allocations=cost DP incl allties; exact fraction objective; continuous sqrt output only rounded guidance, not optimization certificate'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "D7680C35F044AE3C2B5606FDB7BDF0F4D4CB855FB9B8A2F7B86122876619CB59",
        "bytes": 2727
      },
      "result": {
        "checks": "all feasible integer allocations=cost DP incl allties; exact fraction objective; continuous sqrt output only rounded guidance, not optimization certificate",
        "continuous_relaxation_rounded6": [
          1.228977,
          2.473269,
          3.941495
        ],
        "feasible_allocation_count": 60,
        "headers": [
          "allocation_type",
          "counts",
          "cost",
          "variance"
        ],
        "input": {
          "budget": 18,
          "cost": [
            1,
            2,
            3
          ],
          "populations": [
            [
              0,
              0,
              2,
              2
            ],
            [
              0,
              0,
              0,
              4,
              4,
              4
            ],
            [
              0,
              0,
              0,
              0,
              6,
              6,
              6,
              6
            ]
          ],
          "sampling": "independent SRS without replacement within each stratum",
          "weights": [
            "2/9",
            "1/3",
            "4/9"
          ]
        },
        "nearest_integer_cost": 17,
        "nearest_integer_counts": [
          1,
          2,
          4
        ],
        "rows": [
          [
            "equal counts",
            [
              3,
              3,
              3
            ],
            18,
            "13208/25515"
          ],
          [
            "rough population-proportion",
            [
              2,
              2,
              4
            ],
            18,
            "3812/8505"
          ],
          [
            "nearest rounding of continuous relaxation",
            [
              1,
              2,
              4
            ],
            17,
            "1364/2835"
          ],
          [
            "exact integer optimum",
            [
              2,
              2,
              4
            ],
            18,
            "3812/8505"
          ]
        ],
        "stratum_sample_variances": [
          "4/3",
          "24/5",
          "72/7"
        ]
      },
      "expectedStdoutSha256": "3D7863CB24B90157EFC4DC8002DD40AF9C3EBE4D638903CA457D59E5FB67BD38",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B016",
      "title": "为了检查罕见大奖而多抽大奖路径，怎样避免把概率算高？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "原概率p必须已知，不能由人为重放推真实自然发生率。只计算自拟模型的解析期望/方差，没有实际游戏实验；与C020只判断测试协议证据范围分开。",
      "classicMethodAttribution": [
        {
          "title": "Monte Carlo theory, methods and examples, Chapter9: Importance sampling",
          "url": "https://artowen.su.domains/mc/Ch-var-is.pdf",
          "version": "Art Owen，作者公开第9章Importance sampling；页脚©2009–2013,2018；所存PDF元数据创建/修改2020-06-23，此为文件元数据而非另行声明的修订日。"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\np=[F(4,5),F(19,100),F(1,100)];f=[0,1,100]\nmu,varp=meanvar(list(zip(f,p)))\nqs={'original':p,'oversample_rare':[F(1,2),F(1,4),F(1,4)],'bad_undersample_rare':[F(98,100),F(19,1000),F(1,1000)],'omit_zero_contribution':[F(0),F(1,2),F(1,2)],'miss_winning_path':[F(1,2),F(1,2),F(0)]}\nrows=[];profiles={}\nfor name,q in qs.items():\n    assert sum(q)==1\n    supported=all(qi>0 or fi*pi==0 for fi,pi,qi in zip(f,p,q))\n    if not supported:rows.append([name,'rejected','missing nonzero contribution','unknown']);continue\n    z=[F(fi)*pi/qi if qi else F(0) for fi,pi,qi in zip(f,p,q)]\n    m,v=meanvar([(zi,qi) for zi,qi in zip(z,q) if qi]);assert m==mu\n    second=sum((F(fi)**2*pi*pi/qi for fi,pi,qi in zip(f,p,q) if qi),F(0));assert second-mu*mu==v\n    naive,_=meanvar(list(zip(f,q)))\n    rows.append([name,str(naive),str(m),str(v)]);profiles[name]=list(map(str,z))\nresult={'input':{'p':list(map(str,p)),'f':f,'proposals':{k:list(map(str,v)) for k,v in qs.items()}},'headers':['proposal','naive_mean','weighted_mean','weighted_variance'],'rows':rows,'target_mean':str(mu),'original_variance':str(varp),'weighted_value_profiles':profiles,'checks':'finite weighted distribution moments=direct p/q second-moment identity; support of nonzero integrand sufficient; missing winning support rejected; no random simulation'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "0D2BD5E29C61A527BF511C93120EBEC97DD4A6226D3899F26E8D391798F177E2",
        "bytes": 1816
      },
      "result": {
        "checks": "finite weighted distribution moments=direct p/q second-moment identity; support of nonzero integrand sufficient; missing winning support rejected; no random simulation",
        "headers": [
          "proposal",
          "naive_mean",
          "weighted_mean",
          "weighted_variance"
        ],
        "input": {
          "f": [
            0,
            1,
            100
          ],
          "p": [
            "4/5",
            "19/100",
            "1/100"
          ],
          "proposals": {
            "bad_undersample_rare": [
              "49/50",
              "19/1000",
              "1/1000"
            ],
            "miss_winning_path": [
              "1/2",
              "1/2",
              "0"
            ],
            "omit_zero_contribution": [
              "0",
              "1/2",
              "1/2"
            ],
            "original": [
              "4/5",
              "19/100",
              "1/100"
            ],
            "oversample_rare": [
              "1/2",
              "1/4",
              "1/4"
            ]
          }
        },
        "original_variance": "987739/10000",
        "rows": [
          [
            "original",
            "119/100",
            "119/100",
            "987739/10000"
          ],
          [
            "oversample_rare",
            "101/4",
            "119/100",
            "27283/10000"
          ],
          [
            "bad_undersample_rare",
            "119/1000",
            "119/100",
            "10004839/10000"
          ],
          [
            "omit_zero_contribution",
            "101/2",
            "119/100",
            "6561/10000"
          ],
          [
            "miss_winning_path",
            "rejected",
            "missing nonzero contribution",
            "unknown"
          ]
        ],
        "target_mean": "119/100",
        "weighted_value_profiles": {
          "bad_undersample_rare": [
            "0",
            "10",
            "1000"
          ],
          "omit_zero_contribution": [
            "0",
            "19/50",
            "2"
          ],
          "original": [
            "0",
            "1",
            "100"
          ],
          "oversample_rare": [
            "0",
            "19/25",
            "4"
          ]
        }
      },
      "expectedStdoutSha256": "7D3A930BC33D5A8F9BBD835D5DB5EA730C6AAE4F488F44608524F9FD05B792CC",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B017",
      "title": "用同一组假设输入比较两个版本，误差一定更小吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "自拟完整输入与支付函数已知，不能假设真实两个版本可同种子控制。只研究复算误差，不判断哪版更赚钱；共同输入也可能增大方差。",
      "classicMethodAttribution": [
        {
          "title": "Monte Carlo theory, methods and examples, Chapter8: Variance reduction",
          "url": "https://artowen.su.domains/mc/Ch-var-basic.pdf",
          "version": "Art Owen，作者公开第8章Variance reduction；页脚©2009–2013,2018；所存PDF元数据创建/修改2018-02-21，此为文件元数据而非另行声明的修订日。"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nx=[0,1,4,7];y=[0,2,3,9];n=4\nmx,vx=meanvar([(F(a),F(1,n)) for a in x]);my,vy=meanvar([(F(b),F(1,n)) for b in y])\nallv=[]\nfor yy in permutations(y):\n    m,v=meanvar([(F(b-a),F(1,n)) for a,b in zip(x,yy)])\n    cov=sum((F(a)-mx)*(F(b)-my) for a,b in zip(x,yy))/n\n    assert m==my-mx and v==vx+vy-2*cov\n    allv.append((v,yy))\nlo=min(v for v,yy in allv);hi=max(v for v,yy in allv)\nsame=next(v for v,yy in allv if yy==tuple(y));reverse=next(v for v,yy in allv if yy==tuple(reversed(y)))\nassert same==lo and reverse==hi\nmi,vi=meanvar([(F(b-a),F(1,n*n)) for a,b in product(x,y)])\nassert vi==vx+vy and mi==my-mx\nassert lo<vi<hi\nresult={'input':{'equal_weight_X':x,'equal_weight_Y':y,'all_pairings':factorial(n)},'headers':['coupling','mean_difference','variance_of_one_difference'],'rows':[['same order',str(my-mx),str(lo)],['independent16pairs',str(mi),str(vi)],['reverse order',str(my-mx),str(hi)]],'all24_pairings':[[list(yy),str(v)] for v,yy in allv],'checks':'all24permutations=sorted/reverse rearrangement bounds; covariance identity everypairing; independent Cartesian product baseline; repeated independent comparisons divide variance by sample count'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "6563540494C5356B4F1D2AF054F072F4A8E14067C1E130B82649055DD21E3B23",
        "bytes": 1664
      },
      "result": {
        "all24_pairings": [
          [
            [
              0,
              2,
              3,
              9
            ],
            "5/4"
          ],
          [
            [
              0,
              2,
              9,
              3
            ],
            "41/4"
          ],
          [
            [
              0,
              3,
              2,
              9
            ],
            "11/4"
          ],
          [
            [
              0,
              3,
              9,
              2
            ],
            "53/4"
          ],
          [
            [
              0,
              9,
              2,
              3
            ],
            "83/4"
          ],
          [
            [
              0,
              9,
              3,
              2
            ],
            "89/4"
          ],
          [
            [
              2,
              0,
              3,
              9
            ],
            "9/4"
          ],
          [
            [
              2,
              0,
              9,
              3
            ],
            "45/4"
          ],
          [
            [
              2,
              3,
              0,
              9
            ],
            "27/4"
          ],
          [
            [
              2,
              3,
              9,
              0
            ],
            "81/4"
          ],
          [
            [
              2,
              9,
              0,
              3
            ],
            "99/4"
          ],
          [
            [
              2,
              9,
              3,
              0
            ],
            "117/4"
          ],
          [
            [
              3,
              0,
              2,
              9
            ],
            "17/4"
          ],
          [
            [
              3,
              0,
              9,
              2
            ],
            "59/4"
          ],
          [
            [
              3,
              2,
              0,
              9
            ],
            "29/4"
          ],
          [
            [
              3,
              2,
              9,
              0
            ],
            "83/4"
          ],
          [
            [
              3,
              9,
              0,
              2
            ],
            "113/4"
          ],
          [
            [
              3,
              9,
              2,
              0
            ],
            "125/4"
          ],
          [
            [
              9,
              0,
              2,
              3
            ],
            "101/4"
          ],
          [
            [
              9,
              0,
              3,
              2
            ],
            "107/4"
          ],
          [
            [
              9,
              2,
              0,
              3
            ],
            "113/4"
          ],
          [
            [
              9,
              2,
              3,
              0
            ],
            "131/4"
          ],
          [
            [
              9,
              3,
              0,
              2
            ],
            "125/4"
          ],
          [
            [
              9,
              3,
              2,
              0
            ],
            "137/4"
          ]
        ],
        "checks": "all24permutations=sorted/reverse rearrangement bounds; covariance identity everypairing; independent Cartesian product baseline; repeated independent comparisons divide variance by sample count",
        "headers": [
          "coupling",
          "mean_difference",
          "variance_of_one_difference"
        ],
        "input": {
          "all_pairings": 24,
          "equal_weight_X": [
            0,
            1,
            4,
            7
          ],
          "equal_weight_Y": [
            0,
            2,
            3,
            9
          ]
        },
        "rows": [
          [
            "same order",
            "1/2",
            "5/4"
          ],
          [
            "independent16pairs",
            "1/2",
            "75/4"
          ],
          [
            "reverse order",
            "1/2",
            "137/4"
          ]
        ]
      },
      "expectedStdoutSha256": "A60EEDA6AC5C28B05496EF65D2A5C89C3CAD3B14DEEC5FCC16244AAC27F759EA",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B018",
      "title": "已知一个中间量的精确均值，能减少假设奖额复算的误差吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "辅助均值和联合分布在自拟模型中精确已知；不从官方未披露信息假造已知常数，没有真实游戏MonteCarlo实验。经典方法归Owen等数学来源。",
      "classicMethodAttribution": [
        {
          "title": "Monte Carlo theory, methods and examples, Chapter8: Variance reduction",
          "url": "https://artowen.su.domains/mc/Ch-var-basic.pdf",
          "version": "Art Owen，作者公开第8章Variance reduction；页脚©2009–2013,2018；所存PDF元数据创建/修改2018-02-21，此为文件元数据而非另行声明的修订日。"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nxy=[(F(0),F(0)),(F(1),F(1)),(F(2),F(5)),(F(3),F(6))];w=F(1,4)\nmx,vx=meanvar([(x,w) for x,y in xy]);my,vy=meanvar([(y,w) for x,y in xy]);cov=sum((x-mx)*(y-my)*w for x,y in xy)\nbeta=cov/vx;rows=[]\nfor m in [mx,F(2)]:\n    for b in [F(0),F(1),F(2),beta,F(3)]:\n        z=[(y-b*(x-m),w) for x,y in xy];ez,vz=meanvar(z);bias=ez-my;mse=vz+bias*bias\n        assert bias==b*(m-mx) and vz==vy+b*b*vx-2*b*cov\n        assert vz==vy-cov*cov/vx+vx*(b-beta)**2\n        rows.append([str(m),str(b),str(ez),str(vz),str(bias),str(mse)])\nassert beta==F(11,5) and vy-cov*cov/vx==F(9,20)\ndef optimal(v,c):return None if v==0 else c/v\nassert optimal(F(0),F(0)) is None\nresult={'input':{'joint_equal_weight':[[str(x),str(y)] for x,y in xy],'true_auxiliary_mean':str(mx),'incorrect_auxiliary_mean':'2'},'headers':['assumed_m','fixed_beta','expectation','variance','bias','MSE'],'rows':rows,'optimal_fixed_beta':str(beta),'checks':'finite support moments=completed-square variance and exact bias identities for everyrow; wrong mean shifts target even with small variance; VarX0 guard; no same-sample coefficient fitting claim'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "3E26AAB020DFE58DBB344E6BD38379DBCEB5BFA08F1B9D9D372C0236319FCEE7",
        "bytes": 1613
      },
      "result": {
        "checks": "finite support moments=completed-square variance and exact bias identities for everyrow; wrong mean shifts target even with small variance; VarX0 guard; no same-sample coefficient fitting claim",
        "headers": [
          "assumed_m",
          "fixed_beta",
          "expectation",
          "variance",
          "bias",
          "MSE"
        ],
        "input": {
          "incorrect_auxiliary_mean": "2",
          "joint_equal_weight": [
            [
              "0",
              "0"
            ],
            [
              "1",
              "1"
            ],
            [
              "2",
              "5"
            ],
            [
              "3",
              "6"
            ]
          ],
          "true_auxiliary_mean": "3/2"
        },
        "optimal_fixed_beta": "11/5",
        "rows": [
          [
            "3/2",
            "0",
            "3",
            "13/2",
            "0",
            "13/2"
          ],
          [
            "3/2",
            "1",
            "3",
            "9/4",
            "0",
            "9/4"
          ],
          [
            "3/2",
            "2",
            "3",
            "1/2",
            "0",
            "1/2"
          ],
          [
            "3/2",
            "11/5",
            "3",
            "9/20",
            "0",
            "9/20"
          ],
          [
            "3/2",
            "3",
            "3",
            "5/4",
            "0",
            "5/4"
          ],
          [
            "2",
            "0",
            "3",
            "13/2",
            "0",
            "13/2"
          ],
          [
            "2",
            "1",
            "7/2",
            "9/4",
            "1/2",
            "5/2"
          ],
          [
            "2",
            "2",
            "4",
            "1/2",
            "1",
            "3/2"
          ],
          [
            "2",
            "11/5",
            "41/10",
            "9/20",
            "11/10",
            "83/50"
          ],
          [
            "2",
            "3",
            "9/2",
            "5/4",
            "3/2",
            "7/2"
          ]
        ]
      },
      "expectedStdoutSha256": "AA6907F9D0C565204FD3775003158A8B7D48EF425D6711758E7F727FC8CE987E",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B019",
      "title": "每隔10条取一条记录，为什么可能漏掉整类功能阶段？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "这是固定日志的抽样周期，不是发现老虎机有可利用周期。不从真实游戏历史推出下一结果；循环窗口与一遍线性系统抽样分别明确，不能混用定义。",
      "classicMethodAttribution": [
        {
          "title": "Part2ofClusterandSystematicSampling",
          "url": "https://online.stat.psu.edu/stat506/Lesson08",
          "version": "PennStateSTAT506,current course text read20Oct2026"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nN=30;k=10;ys=[10 if i%10==0 else 0 for i in range(N)];n=3\nsamples=[[ys[s+j*k] for j in range(n)] for s in range(k)]\nm,v=meanvar([(F(sum(a),n),F(1,k)) for a in samples]);assert m==1 and v==9\npopulation_mean=F(sum(ys),N);S2=sum((F(y)-population_mean)**2 for y in ys)/(N-1)\nmeans=Counter(F(sum(a),n) for a in combinations(ys,n));den=comb(N,n)\nsm,sv=meanvar([(x,F(c,den)) for x,c in means.items()]);assert sm==m and sv==(1-F(n,N))*S2/n\norbit_rows=[]\nfor step in [7,10]:\n    seen=[];z=0\n    while z not in seen:seen.append(z);z=(z+step)%N\n    assert len(seen)==N//gcd(N,step);orbit_rows.append([step,gcd(N,step),len(seen)])\nresult={'input':{'fixed_records':ys,'linear_systematic_step':k,'random_start_uniform':list(range(k)),'sample_size':n},'headers':['start','positions','sample_mean'],'rows':[[s,[s+j*k for j in range(n)],str(F(sum(a),n))] for s,a in enumerate(samples)],'design_comparison':[['random-start systematic',str(m),str(v)],['SRS without replacement',str(sm),str(sv)]],'complete_cyclic_orbits':orbit_rows,'checks':'all10random starts; SRS all4060indexed subsets; modular gcd complete-orbit lengths; cyclic whole-orbit result not confused with first3observations or actual game periodicity'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "62C18A6387C43702108C08FD3BAC02BDAE987B7FF2DC396E9CBD110603C66653",
        "bytes": 1711
      },
      "result": {
        "checks": "all10random starts; SRS all4060indexed subsets; modular gcd complete-orbit lengths; cyclic whole-orbit result not confused with first3observations or actual game periodicity",
        "complete_cyclic_orbits": [
          [
            7,
            1,
            30
          ],
          [
            10,
            10,
            3
          ]
        ],
        "design_comparison": [
          [
            "random-start systematic",
            "1",
            "9"
          ],
          [
            "SRS without replacement",
            "1",
            "81/29"
          ]
        ],
        "headers": [
          "start",
          "positions",
          "sample_mean"
        ],
        "input": {
          "fixed_records": [
            10,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            10,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            10,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "linear_systematic_step": 10,
          "random_start_uniform": [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9
          ],
          "sample_size": 3
        },
        "rows": [
          [
            0,
            [
              0,
              10,
              20
            ],
            "10"
          ],
          [
            1,
            [
              1,
              11,
              21
            ],
            "0"
          ],
          [
            2,
            [
              2,
              12,
              22
            ],
            "0"
          ],
          [
            3,
            [
              3,
              13,
              23
            ],
            "0"
          ],
          [
            4,
            [
              4,
              14,
              24
            ],
            "0"
          ],
          [
            5,
            [
              5,
              15,
              25
            ],
            "0"
          ],
          [
            6,
            [
              6,
              16,
              26
            ],
            "0"
          ],
          [
            7,
            [
              7,
              17,
              27
            ],
            "0"
          ],
          [
            8,
            [
              8,
              18,
              28
            ],
            "0"
          ],
          [
            9,
            [
              9,
              19,
              29
            ],
            "0"
          ]
        ]
      },
      "expectedStdoutSha256": "2FC7E10F036A172C363AC0A5B0594C6E6A93267F88015EAE8A72847D1010A10A",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    },
    {
      "id": "WORK-R05-B020",
      "title": "返奖图只有金额区间，没有逐条数值，还能算出精确平均和波动吗？",
      "modelVersion": "R05-v1",
      "assumptionBoundary": "所有区间、单位、端点归属和整数格距明确；不是估计某真实游戏长期RTP，未公开区间内分布不补均匀假设。均值/方差域是这份有限记录的识别范围，不是置信区间。",
      "classicMethodAttribution": [
        {
          "title": "Optimal inequalities in probability theory:A convex optimization approach",
          "url": "https://www.mit.edu/~dbertsim/papers/MomentProblems/Optimal-inequalities-in-probability-theory-A-convex-optimization-approach-SIAM15.pdf",
          "version": "Dimitris Bertsimas and Ioana Popescu,SIAMJOptimization15(3),780-804,2005"
        },
        {
          "title": "Introduction to Probability",
          "url": "https://math.dartmouth.edu/~prob/prob/prob.pdf",
          "version": "Grinstead and Snell,CHANCE edition4July2006"
        }
      ],
      "program": {
        "language": "Python3, standard library",
        "utf8Source": "# J.VIP original controlled example; exact arithmetic, no real game data.\nfrom fractions import Fraction as F\nfrom itertools import product, permutations, combinations\nfrom collections import Counter, defaultdict, deque\nfrom math import comb, factorial, gcd, sqrt, log\nimport json\ndef meanvar(pairs):\n    m=sum((p*x for x,p in pairs),F(0))\n    return m,sum((p*(x-m)**2 for x,p in pairs),F(0))\ndef show(x):\n    return str(x) if isinstance(x,F) else x\n\nintervals=[(0,1),(1,3),(4,5)];n=len(intervals)\ndirect={};witness={}\nfor xs in product(*(range(l,u+1) for l,u in intervals)):\n    S=sum(xs);Q=sum(x*x for x in xs);key=(F(S,n),F(n*Q-S*S,n*n));direct[xs]=key;witness.setdefault(key,xs)\ndp={(0,0):()}\nfor l,u in intervals:\n    nd={}\n    for (S,Q),xs in dp.items():\n        for x in range(l,u+1):nd.setdefault((S+x,Q+x*x),xs+(x,))\n    dp=nd\ndomain={(F(S,n),F(n*Q-S*S,n*n)) for S,Q in dp}\nassert domain==set(direct.values())\nmu_min=min(x[0] for x in domain);mu_max=max(x[0] for x in domain);v_min=min(x[1] for x in domain);v_max=max(x[1] for x in domain)\nrows=[]\nfor name,target,index in [('mean_min',mu_min,0),('mean_max',mu_max,0),('variance_min',v_min,1),('variance_max',v_max,1)]:\n    xs=min(xs for xs,key in direct.items() if key[index]==target);m,v=direct[xs]\n    rows.append([name,list(xs),str(m),str(v)])\nassert not any(m==mu_min and v==v_min for m,v in domain)\nmid=[F(l+u,2) for l,u in intervals]\nassert any(x.denominator!=1 for x in mid)\nresult={'input':{'inclusive_integer_intervals':intervals,'variance_definition':'population variance /n, not unbiased n-1 estimator'},'headers':['bound','attaining_vector','mean','variance'],'rows':rows,'all_feasible_vectors':[[list(xs),str(m),str(v)] for xs,(m,v) in direct.items()],'reachable_moment_pairs':len(dp),'distinct_mean_variance_pairs':len(domain),'midpoint_vector':list(map(str,mid)),'checks':'all12vectors=reachable(S,Q)DP; everyextremum has witness; mean-min and variance-min cannot occur together; midpoint violates integergrid, not observed fact; identified finite set, not confidence interval'}\n\nprint(json.dumps(result,ensure_ascii=False,sort_keys=True))\n",
        "sha256": "714134B40CDCF4E3F06E4122807DDB755B20DBC20FB622EF792BDC19AB38F88E",
        "bytes": 2115
      },
      "result": {
        "all_feasible_vectors": [
          [
            [
              0,
              1,
              4
            ],
            "5/3",
            "26/9"
          ],
          [
            [
              0,
              1,
              5
            ],
            "2",
            "14/3"
          ],
          [
            [
              0,
              2,
              4
            ],
            "2",
            "8/3"
          ],
          [
            [
              0,
              2,
              5
            ],
            "7/3",
            "38/9"
          ],
          [
            [
              0,
              3,
              4
            ],
            "7/3",
            "26/9"
          ],
          [
            [
              0,
              3,
              5
            ],
            "8/3",
            "38/9"
          ],
          [
            [
              1,
              1,
              4
            ],
            "2",
            "2"
          ],
          [
            [
              1,
              1,
              5
            ],
            "7/3",
            "32/9"
          ],
          [
            [
              1,
              2,
              4
            ],
            "7/3",
            "14/9"
          ],
          [
            [
              1,
              2,
              5
            ],
            "8/3",
            "26/9"
          ],
          [
            [
              1,
              3,
              4
            ],
            "8/3",
            "14/9"
          ],
          [
            [
              1,
              3,
              5
            ],
            "3",
            "8/3"
          ]
        ],
        "checks": "all12vectors=reachable(S,Q)DP; everyextremum has witness; mean-min and variance-min cannot occur together; midpoint violates integergrid, not observed fact; identified finite set, not confidence interval",
        "distinct_mean_variance_pairs": 12,
        "headers": [
          "bound",
          "attaining_vector",
          "mean",
          "variance"
        ],
        "input": {
          "inclusive_integer_intervals": [
            [
              0,
              1
            ],
            [
              1,
              3
            ],
            [
              4,
              5
            ]
          ],
          "variance_definition": "population variance /n, not unbiased n-1 estimator"
        },
        "midpoint_vector": [
          "1/2",
          "2",
          "9/2"
        ],
        "reachable_moment_pairs": 12,
        "rows": [
          [
            "mean_min",
            [
              0,
              1,
              4
            ],
            "5/3",
            "26/9"
          ],
          [
            "mean_max",
            [
              1,
              3,
              5
            ],
            "3",
            "8/3"
          ],
          [
            "variance_min",
            [
              1,
              2,
              4
            ],
            "7/3",
            "14/9"
          ],
          [
            "variance_max",
            [
              0,
              1,
              5
            ],
            "2",
            "14/3"
          ]
        ]
      },
      "expectedStdoutSha256": "16EC597D135FA7F68669C9BDB41DDC630F06BF065BA70BA2E7C46A623720A9F0",
      "calculationKind": "Exact finite hypothetical model; no gameplay experiment or random simulation."
    }
  ]
}
