Mirror GitHub ff007f6686de
Browse filesFiles changed (12)
3 unmodified lines456789103 unmodified lines[Paper · arXiv:2611.24975](https://arxiv.org/abs/2611.24975) · [Technical report](https://dqswordman.github.io/technical-reports/program-structure-certificates/) · [中文伴读](https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/) · [Interactive Space](https://huggingface.co/spaces/DQSWORDMAN/program-structure-certificates)Six demonstrations can be consistent with either a one-rule shortcut or a two-rule reference program. Change one example and test every legal single rule. This repository links that proof of minimum length to the programs two language models produced on the paired tasks and to their behavior on new strings.[Reproduction guide](docs/reproduction.md) · [Result map](docs/result-map.csv) · [Data provenance](DATA_PROVENANCE.md) · [Frozen artifact v1.0.0](https://github.com/dqswordman/program-structure-certificates/tree/v1.0.0)3 unmodified lines456789103 unmodified lines[Paper · arXiv:2611.24975](https://arxiv.org/abs/2611.24975) · [Technical report](https://dqswordman.github.io/technical-reports/program-structure-certificates/) · [中文伴读](https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/) · [Interactive Space](https://huggingface.co/spaces/DQSWORDMAN/program-structure-certificates)One of six demonstrations can decide whether a second replacement rule is necessary. Enumerate the legal one-rule programs for each task, then compare the same model on the control task and its certified two-rule partner. The release contains 120 reference families and separate tests on displayed examples, hidden examples and new strings.[Reproduction guide](docs/reproduction.md) · [Result map](docs/result-map.csv) · [Data provenance](DATA_PROVENANCE.md) · [Frozen artifact v1.0.0](https://github.com/dqswordman/program-structure-certificates/tree/v1.0.0)
14 unmodified lines15161718192021227 unmodified lines3031323334353637102 unmodified lines1401411421431441451461475 unmodified lines1531541551561571586 unmodified lines16516616716816917017117217317417517617717817918018118222 unmodified lines20520620720820921021121280 unmodified lines29329429529629729814 unmodified lines},{"path": "GITHUB_README.md","size_bytes": 3459,"sha256": "768c776f636724b48d38883a7f2731f2556531bb554567802a4604421a48d751"},{"path": "LICENSE",7 unmodified lines},{"path": "README.md","size_bytes": 1383,"sha256": "ddae9445a22a5f5e3781034d51d1b2bc7744ba094a202a37345acba5b15738fc"},{"path": "RELEASE_SCOPE.txt",102 unmodified lines},{"path": "docs/companion.json","size_bytes": 16752,"sha256": "66d8e28d1bb832a85302d8f516e14a903067c14f8938b46feefe5cb2dfdf8aaa"},{"path": "docs/figures/construction.pdf",5 unmodified lines"size_bytes": 140513,"sha256": "73c9776e67c7fdb2524682b4a4759aa2a319843c7a667b2429cad369799291e1"},{"path": "docs/maintenance.md","size_bytes": 480,6 unmodified lines},{"path": "docs/report.en.md","size_bytes": 6571,"sha256": "fe139384fb2974f72d4b943e268063a840c8ac73f4af8234adb19595f01b68a1"},{"path": "docs/report.zh.md","size_bytes": 6388,"sha256": "313131606ad9a650db531a4039a4bf342b79594934c7f74618810cb2155ba62a"},{"path": "docs/reproduction.md","size_bytes": 2393,"sha256": "fd6a2fb397084bd20fd670c6fecef54eeb9d976a1333413754b9a94848bc5299"},{"path": "docs/reproduction_report.json",22 unmodified lines},{"path": "index.html","size_bytes": 4495,"sha256": "1e069cefafcd420aac065885b8e3e3ddb8fa7e0b3e1d7c94e3d945d473293fa5"},{"path": "licenses/CC-BY-4.0.txt",80 unmodified lines"size_bytes": 5419,"sha256": "e0bae04da43d16062a0118f3c6aafd5b1744ebd70cada6db278288385950f5eb"},{"path": "scripts/render_reports.py","size_bytes": 2109,14 unmodified lines15161718192021227 unmodified lines3031323334353637102 unmodified lines1401411421431441451461475 unmodified lines1531541551561571581591601611621631641651661671686 unmodified lines17517617717817918018118218318418518618718818919019119222 unmodified lines21521621721821922022122280 unmodified lines30330430530630730830931031131231314 unmodified lines},{"path": "GITHUB_README.md","size_bytes": 3491,"sha256": "fe449e8fcfd6108870f617c563dee40134e18b11f223735076f6da9a405ea9a5"},{"path": "LICENSE",7 unmodified lines},{"path": "README.md","size_bytes": 1346,"sha256": "641548cc8ad5bdb7f3699abf149f3aaccb877fd051e46d64b1795c8a38959ac7"},{"path": "RELEASE_SCOPE.txt",102 unmodified lines},{"path": "docs/companion.json","size_bytes": 18174,"sha256": "199d8e297f131bc24e2c8a78089cf411efd8a559d35baac7e9da9791047bfbde"},{"path": "docs/figures/construction.pdf",5 unmodified lines"size_bytes": 140513,"sha256": "73c9776e67c7fdb2524682b4a4759aa2a319843c7a667b2429cad369799291e1"},{"path": "docs/figures/paired-comparison.png","size_bytes": 61605,"sha256": "bbb5da226edf3aac7236bb0bcdbf45fb414e6b344a83ff7c133cbbd6a8e1e7a5"},{"path": "docs/figures/paired-comparison.svg","size_bytes": 10967,"sha256": "88882d057e1a20a8c41e43f9e645f67741473248bed2b9914a7440ab58d080b5"},{"path": "docs/maintenance.md","size_bytes": 480,6 unmodified lines},{"path": "docs/report.en.md","size_bytes": 7168,"sha256": "5899048bb85a0e54117caff73e093ccc1da2dfb29c4193303f194722258ea88e"},{"path": "docs/report.zh.md","size_bytes": 6747,"sha256": "70def9c1c449af4a4117afba97e7ef25dbda0a546a71f2ab3c523dd762dec290"},{"path": "docs/reproduction.md","size_bytes": 2851,"sha256": "271af4d214f462ab0eebaa87d309cc2dc16474b128e4c332132ba5fafc226ea3"},{"path": "docs/reproduction_report.json",22 unmodified lines},{"path": "index.html","size_bytes": 4535,"sha256": "f4a4c45c69dc49fef1233910a8e76d64dabba10729706d334057cc25acd3f3b6"},{"path": "licenses/CC-BY-4.0.txt",80 unmodified lines"size_bytes": 5419,"sha256": "e0bae04da43d16062a0118f3c6aafd5b1744ebd70cada6db278288385950f5eb"},{"path": "scripts/render_paired_comparison.py","size_bytes": 2739,"sha256": "2c13d90a944286bb3330e24a1cc02bd93e4f0bd697c1718439f6eebd95c00ea5"},{"path": "scripts/render_reports.py","size_bytes": 2109,
5 unmodified lines67891011125 unmodified lines181920212223245 unmodified linessdk: staticapp_file: index.htmllicense: othershort_description: See when changing one example makes a second rule necessarytags:- program-synthesis- reproducibility5 unmodified linesWenzhang Du · arXiv:2611.24975Switch the sixth demonstration to see a one-rule shortcut fail. Then compare the two models on the displayed tasks, a hidden pair chosen to distinguish programs and new strings. The explorer includes paired intervals and the family count for each comparison.[Preprint](https://arxiv.org/abs/2611.24975) · [GitHub repository](https://github.com/dqswordman/program-structure-certificates) · [English report](https://dqswordman.github.io/technical-reports/program-structure-certificates/) · [中文伴读](https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/) · [Offline release](https://github.com/dqswordman/program-structure-certificates/releases/tag/v1.0.0)5 unmodified lines67891011125 unmodified lines181920212223245 unmodified linessdk: staticapp_file: index.htmllicense: othershort_description: Test when a sixth example rules out a one-rule programtags:- program-synthesis- reproducibility5 unmodified linesWenzhang Du · arXiv:2611.24975Change the sixth input–output example and inspect the surviving one-rule explanations. Choose a model to compare performance on the displayed examples with performance on the hidden example that separates competing programs.[Preprint](https://arxiv.org/abs/2611.24975) · [GitHub repository](https://github.com/dqswordman/program-structure-certificates) · [English report](https://dqswordman.github.io/technical-reports/program-structure-certificates/) · [中文伴读](https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/) · [Offline release](https://github.com/dqswordman/program-structure-certificates/releases/tag/v1.0.0)
123454 unmodified lines1011121314151617181915 unmodified lines353637383940414243444546474849505152535411 unmodified lines66676869707172737475{"github_commit": "b99e460d3760081d23cbe9dacd6678164f91815f","github_repository": "https://github.com/dqswordman/program-structure-certificates","frozen_release": {"name": "program-structure-certificates-v1.0.0.zip",4 unmodified lines"sha256": {"CITATION.cff": "5aa5ff09c2ef73ffcc9ec991f9ef924e9406d16fe1b124a7f4c14e8fc1efd79a","DATA_PROVENANCE.md": "b0d2c322230982d5d289b12dedadc3eff4f0bf4396908ba117811b0c5923407f","GITHUB_README.md": "768c776f636724b48d38883a7f2731f2556531bb554567802a4604421a48d751","LICENSE": "020893b24fb2a5b62d2d2748f65e569e31ab7b8eeb831b5e64bb7a57e544c104","PUBLICATION.md": "2011e8cf78f537ef0f42257d0703e5ccf7927ec943b7f5153ca20f3d6470f476","README.md": "ddae9445a22a5f5e3781034d51d1b2bc7744ba094a202a37345acba5b15738fc","RELEASE_SCOPE.txt": "3701acb093ac3e9e9a348f9aa954d4a586d5c9defecc74a585aff430572ec6f1","code/canonical_readouts_v1.py": "793af7b98682cb57b5efc47b5b534e86ef90725f7c3269b4fc098d76778126a6","code/family_statistics.py": "2dd50ccb2d0e3819efa79e075573d8ce799ceb18011a9ba6229e0bc4bd095a83",15 unmodified lines"data/synthesis_instruction.txt": "4fb7efda45f0beb0978934612eeeca36e73da3d87f4977c17dd5f4d386318f11","data/trajectories.jsonl.gz": "6d9c9af078d6ec25bb8f1e95894ed07dbd879c2e3d77b7dc5afe0081cf57ed7d","docs/asset-manifest.csv": "99eff1d2a2930b2e6ed202c23c8884b7ccf308314437701ac65b51f28b0972c0","docs/companion.json": "66d8e28d1bb832a85302d8f516e14a903067c14f8938b46feefe5cb2dfdf8aaa","docs/figures/construction.pdf": "1224ffa9a3dfa361a7661a9fea3763250414cf84380e6cb7dc4e0c211ac9396f","docs/figures/construction.png": "73c9776e67c7fdb2524682b4a4759aa2a319843c7a667b2429cad369799291e1","docs/maintenance.md": "0cd2ddf55a1cd2694e53c65dbb5d71260038a761e9316c169ff2abe9f6ab9be4","docs/release-manifest.json": "116d011a6508cd55eb58b5668823bbd7d79501c1834754973d3d9a6ed5877604","docs/report.en.md": "fe139384fb2974f72d4b943e268063a840c8ac73f4af8234adb19595f01b68a1","docs/report.zh.md": "313131606ad9a650db531a4039a4bf342b79594934c7f74618810cb2155ba62a","docs/reproduction.md": "fd6a2fb397084bd20fd670c6fecef54eeb9d976a1333413754b9a94848bc5299","docs/reproduction_report.json": "4aaac315cc92a9c0b51198d8fe7285243940155f0b61913d4b8951573a47711d","docs/result-map.csv": "ac8a29e02c895deddfd10c5fdb9192c420fb8c32fb7d07f39c5f0eecd9ff2351","explore.js": "4e7a3d712bf7a7747ac7dacefe2e19e69de14afcb4ae826de163bd7703ff7e9e","explorer.json": "29f6732ad3cc85e74378578b53bfdd1558de9a485349ec27dbbd1c4078676924","fixtures/end_to_end.json": "de641ad2106e9b1fdc9e64214f0938a20e02f230ba4db88291e9c6a60dda59cf","index.html": "1e069cefafcd420aac065885b8e3e3ddb8fa7e0b3e1d7c94e3d945d473293fa5","licenses/CC-BY-4.0.txt": "9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94","licenses/PBEBench-MIT.txt": "7ee6673ea31294494031ee577102e866bcf6438280142f822f1497cd153543e1","program-structure-certificates-v1.0.0.zip": "e68af75e393e34668b2d196ea2659261f428dbaf1ad8e5556a7cec1288dc4515",11 unmodified lines"results/per_family_metrics.csv": "18e2ebd712fd2cebe6f7e766acc2d67707d29eebbf5a28ae00a0ed34aee008d6","scripts/package_release.py": "acd2bf73ad435b0b05caf0b5973c0b74b183f5a50c0d3ea332c9a3ee492cedf3","scripts/publish_space.py": "e0bae04da43d16062a0118f3c6aafd5b1744ebd70cada6db278288385950f5eb","scripts/render_reports.py": "46139f9427ed42f2e4b1c81c77dfbc038318989c66798db587a844bc55b38055","style.css": "5071739230e76b4e928725ae3da566fa0a0cd5f0680b4a6b4a57d3785f13ce65","verify_manifest.py": "ca7cd1faea2195c447c5d3596b125fd8bc93ff9a2db050403e71602c3f27ffb9","worked_case.json": "6c80328e4c960f1b3a0d26d499cc7ef0d2e091203f48a18b6bc39988fd4851a5","MANIFEST.json": "1a9bae831b4b2205f4a2bf5c0fafd469c4c4ef7f4a97697a6b68cdec103f01e0"}}123454 unmodified lines1011121314151617181915 unmodified lines3536373839404142434445464748495051525354555611 unmodified lines6869707172737475767778{"github_commit": "ff007f6686dece45103fc467f52e5741b352b594","github_repository": "https://github.com/dqswordman/program-structure-certificates","frozen_release": {"name": "program-structure-certificates-v1.0.0.zip",4 unmodified lines"sha256": {"CITATION.cff": "5aa5ff09c2ef73ffcc9ec991f9ef924e9406d16fe1b124a7f4c14e8fc1efd79a","DATA_PROVENANCE.md": "b0d2c322230982d5d289b12dedadc3eff4f0bf4396908ba117811b0c5923407f","GITHUB_README.md": "fe449e8fcfd6108870f617c563dee40134e18b11f223735076f6da9a405ea9a5","LICENSE": "020893b24fb2a5b62d2d2748f65e569e31ab7b8eeb831b5e64bb7a57e544c104","PUBLICATION.md": "2011e8cf78f537ef0f42257d0703e5ccf7927ec943b7f5153ca20f3d6470f476","README.md": "641548cc8ad5bdb7f3699abf149f3aaccb877fd051e46d64b1795c8a38959ac7","RELEASE_SCOPE.txt": "3701acb093ac3e9e9a348f9aa954d4a586d5c9defecc74a585aff430572ec6f1","code/canonical_readouts_v1.py": "793af7b98682cb57b5efc47b5b534e86ef90725f7c3269b4fc098d76778126a6","code/family_statistics.py": "2dd50ccb2d0e3819efa79e075573d8ce799ceb18011a9ba6229e0bc4bd095a83",15 unmodified lines"data/synthesis_instruction.txt": "4fb7efda45f0beb0978934612eeeca36e73da3d87f4977c17dd5f4d386318f11","data/trajectories.jsonl.gz": "6d9c9af078d6ec25bb8f1e95894ed07dbd879c2e3d77b7dc5afe0081cf57ed7d","docs/asset-manifest.csv": "99eff1d2a2930b2e6ed202c23c8884b7ccf308314437701ac65b51f28b0972c0","docs/companion.json": "199d8e297f131bc24e2c8a78089cf411efd8a559d35baac7e9da9791047bfbde","docs/figures/construction.pdf": "1224ffa9a3dfa361a7661a9fea3763250414cf84380e6cb7dc4e0c211ac9396f","docs/figures/construction.png": "73c9776e67c7fdb2524682b4a4759aa2a319843c7a667b2429cad369799291e1","docs/figures/paired-comparison.png": "bbb5da226edf3aac7236bb0bcdbf45fb414e6b344a83ff7c133cbbd6a8e1e7a5","docs/figures/paired-comparison.svg": "88882d057e1a20a8c41e43f9e645f67741473248bed2b9914a7440ab58d080b5","docs/maintenance.md": "0cd2ddf55a1cd2694e53c65dbb5d71260038a761e9316c169ff2abe9f6ab9be4","docs/release-manifest.json": "116d011a6508cd55eb58b5668823bbd7d79501c1834754973d3d9a6ed5877604","docs/report.en.md": "5899048bb85a0e54117caff73e093ccc1da2dfb29c4193303f194722258ea88e","docs/report.zh.md": "70def9c1c449af4a4117afba97e7ef25dbda0a546a71f2ab3c523dd762dec290","docs/reproduction.md": "271af4d214f462ab0eebaa87d309cc2dc16474b128e4c332132ba5fafc226ea3","docs/reproduction_report.json": "4aaac315cc92a9c0b51198d8fe7285243940155f0b61913d4b8951573a47711d","docs/result-map.csv": "ac8a29e02c895deddfd10c5fdb9192c420fb8c32fb7d07f39c5f0eecd9ff2351","explore.js": "4e7a3d712bf7a7747ac7dacefe2e19e69de14afcb4ae826de163bd7703ff7e9e","explorer.json": "29f6732ad3cc85e74378578b53bfdd1558de9a485349ec27dbbd1c4078676924","fixtures/end_to_end.json": "de641ad2106e9b1fdc9e64214f0938a20e02f230ba4db88291e9c6a60dda59cf","index.html": "f4a4c45c69dc49fef1233910a8e76d64dabba10729706d334057cc25acd3f3b6","licenses/CC-BY-4.0.txt": "9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94","licenses/PBEBench-MIT.txt": "7ee6673ea31294494031ee577102e866bcf6438280142f822f1497cd153543e1","program-structure-certificates-v1.0.0.zip": "e68af75e393e34668b2d196ea2659261f428dbaf1ad8e5556a7cec1288dc4515",11 unmodified lines"results/per_family_metrics.csv": "18e2ebd712fd2cebe6f7e766acc2d67707d29eebbf5a28ae00a0ed34aee008d6","scripts/package_release.py": "acd2bf73ad435b0b05caf0b5973c0b74b183f5a50c0d3ea332c9a3ee492cedf3","scripts/publish_space.py": "e0bae04da43d16062a0118f3c6aafd5b1744ebd70cada6db278288385950f5eb","scripts/render_paired_comparison.py": "2c13d90a944286bb3330e24a1cc02bd93e4f0bd697c1718439f6eebd95c00ea5","scripts/render_reports.py": "46139f9427ed42f2e4b1c81c77dfbc038318989c66798db587a844bc55b38055","style.css": "5071739230e76b4e928725ae3da566fa0a0cd5f0680b4a6b4a57d3785f13ce65","verify_manifest.py": "ca7cd1faea2195c447c5d3596b125fd8bc93ff9a2db050403e71602c3f27ffb9","worked_case.json": "6c80328e4c960f1b3a0d26d499cc7ef0d2e091203f48a18b6bc39988fd4851a5","MANIFEST.json": "376c83bc9686912407fb995c9f2798031d45115ef66ae698de9f7ee3eaf8ca0f"}}
12345678910111213141516171819202133 unmodified lines555657585960616226 unmodified lines899091929394959610 unmodified lines10710810911011111211311411511611711811912012112212312412512639 unmodified lines16616716816917017117217310 unmodified lines1841851861871881891901918 unmodified lines200201202203204205206207{"article": {"version": "1.0.1","published": "2026-11-20","updated": "2026-11-22","updateNote": {"en": "The revised companion distinguishes solving the displayed examples, passing a hidden test and recovering the transformation on new inputs.","zh": "本版分别说明通过题面样例、通过隐藏测试和在新输入上复现参考变换的含义。"}},"locales": {"en": {"title": "When does an example force a second rule?","summary": "Can a single string-replacement rule explain examples generated by two rules? Replacing one demonstration can rule out every legal one-rule solution. Across two models and the tested demonstration counts, this change lowers completion on the displayed tasks by 23.53–45.83 percentage points and raises success on a hidden distinguishing example by 8.40–13.45 points. Agreement on other strings remains much lower when both rules must act."},"zh": {"title": "什么样的样例会迫使程序使用第二条规则?","summary": "两条规则生成的字符串样例,是否非得用两条规则才能解释?替换一个展示样例,就能排除所有合法的单规则解。在两种模型和各个展示规模下,这一变化使完成题面的比例降低 23.53–45.83 个百分点,却使通过隐藏辨别样例的比例提高 8.40–13.45 个百分点。换到确实触发两条规则的其他字符串上,模型仍很少复现参考程序的输出。"}},"artifact": {33 unmodified lines{"id": "worked-example","title": {"en": "One changed demonstration rules out the shortcut","zh": "只换一个样例,单规则捷径便失效"},"paragraphs": {"en": [26 unmodified lines{"id": "certification","title": {"en": "Why the minimum is exactly two","zh": "怎样证明最短解恰好需要两条规则"},"paragraphs": {"en": [10 unmodified lines{"id": "results","title": {"en": "Displayed completion falls as hidden-test success rises","zh": "题面完成率下降,隐藏样例通过率上升"},"paragraphs": {"en": ["Each of the 120 reference families supplies matched control and separation tasks with three to six shared examples, plus one arm-specific example. The panel contains 1,440 new trajectories and 480 previously saved base-five trajectories for Qwen3-8B and Olmo-3-7B-Think. The certified comparison uses 119 families at bases three and four and all 120 at bases five and six.","With five shared examples, Qwen satisfies all displayed pairs in 67 of 120 control tasks and 12 of their partners. Olmo’s counts are 52 and 15. Both models are more likely to pass a separate input–output pair omitted from both prompts. The table pairs tasks by reference family. Differences are in percentage points, with pointwise 95% intervals."],"zh": ["120 个参考程序家族在三至六个共享样例下各生成一对任务,并各加一个对照或分离样例。两种模型为 Qwen3-8B 和 Olmo-3-7B-Think,共有 1,440 条新轨迹和 480 条先前保存的五共享样例轨迹。三个、四个共享样例时各有 119 个家族通过配对认证,五个、六个时各有 120 个。","固定五个共享样例时,Qwen 在 120 道对照题中完成 67 道,在对应的双规则必需题中完成 12 道。Olmo 分别完成 52 道和 15 道。两种模型在另外一对从未展示的输入输出上,通过率反而提高。表中按参考程序家族配对,差值用百分点表示,并列出各项的 95% 区间。"]},"blocks": [{"type": "table","columns": [39 unmodified lines{"id": "beyond-the-witness","title": {"en": "How often do programs agree on new inputs?","zh": "换一批新输入,模型与参考程序的输出有多大比例一致?"},"paragraphs": {"en": [10 unmodified lines{"id": "identity","title": {"en": "An unchanged string can still decide the minimum","zh": "输出原样返回,也可能决定最少需要几条规则"},"paragraphs": {"en": [8 unmodified lines{"id": "replay","title": {"en": "Run the certificate check and reconstruct the three tables","zh": "核验证书并重建三张结果表"},"paragraphs": {"en": [12345678910111213141516171819202133 unmodified lines555657585960616226 unmodified lines899091929394959610 unmodified lines10710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314439 unmodified lines18418518618718818919019110 unmodified lines2022032042052062072082098 unmodified lines218219220221222223224225{"article": {"version": "1.0.2","published": "2026-11-20","updated": "2026-12-01","updateNote": {"en": "This edition names the comparison and its unit at the point where each result is interpreted. Figure captions identify how the paired observations were formed.","zh": "本版在解读结果处说明比较对象和计量单位,图注交代哪些观测构成配对。"}},"locales": {"en": {"title": "Certifying when a second replacement rule is required","summary": "Change the sixth demonstration while keeping the same two-rule reference program. A finite search checks that every legal one-rule alternative fails. With five shared examples across 120 families, Qwen3-8B completed 67 control tasks and 12 tasks requiring both rules, yet its success on a hidden distinguishing pair rose 9.17 percentage points."},"zh": {"title": "怎样证明第二条字符串替换规则必不可少","summary": "固定同一个双规则参考程序,更换第六个示例,再穷举检查全部合法单规则是否都会失败。在共享五个示例的 120 个家族中,Qwen3-8B 完成了 67 道对照题、12 道确实需要双规则的题,而在用于区分程序的隐藏样例上,成功率提高了 9.17 个百分点。"}},"artifact": {33 unmodified lines{"id": "worked-example","title": {"en": "One changed example eliminates a shortcut","zh": "一个示例怎样排除捷径"},"paragraphs": {"en": [26 unmodified lines{"id": "certification","title": {"en": "A finite certificate for minimum length","zh": "最短程序长度的有限穷举证明"},"paragraphs": {"en": [10 unmodified lines{"id": "results","title": {"en": "Displayed tasks and hidden distinguishing pairs","zh": "题面完成率与隐藏区分样例"},"paragraphs": {"en": ["The control and separation tasks share their reference program and five examples in the comparison below. Only the sixth example changes. Success on all displayed pairs, on a hidden pair deliberately chosen to distinguish programs, and on new strings measures three different behaviors. Each difference pairs tasks from the same reference family.","Each of the 120 reference families supplies matched control and separation tasks with three to six shared examples, plus one arm-specific example. The panel contains 1,440 new trajectories and 480 previously saved base-five trajectories for Qwen3-8B and Olmo-3-7B-Think. The certified comparison uses 119 families at bases three and four and all 120 at bases five and six.","With five shared examples, Qwen satisfies all displayed pairs in 67 of 120 control tasks and 12 of their partners. Olmo’s counts are 52 and 15. Both models are more likely to pass a separate input–output pair omitted from both prompts. The table pairs tasks by reference family. Differences are in percentage points, with pointwise 95% intervals."],"zh": ["下方比较固定参考程序和五个展示样例,只替换第六个。通过全部题面样��、通过专门用于区分程序的隐藏样例,以及处理新字符串,分别是三种不同的能力。每个差值都在同一参考程序家族内配对。","120 个参考程序家族在三至六个共享样例下各生成一对任务,并各加一个对照或分离样例。两种模型为 Qwen3-8B 和 Olmo-3-7B-Think,共有 1,440 条新轨迹和 480 条先前保存的五共享样例轨迹。三个、四个共享样例时各有 119 个家族通过配对认证,五个、六个时各有 120 个。","固定五个共享样例时,Qwen 在 120 道对照题中完成 67 道,在对应的双规则必需题中完成 12 道。Olmo 分别完成 52 道和 15 道。两种模型在另外一对从未展示的输入输出上,通过率反而提高。表中按参考程序家族配对,差值用百分点表示,并列出各项的 95% 区间。"]},"blocks": [{"type": "figure","file": "assets/reports/program-structure-certificates/paired-comparison.png","width": 1428,"height": 702,"alt": {"en": "With five shared examples, both models complete fewer displayed tasks and succeed more often on the hidden pair.","zh": "共享五个示例时,两种模型的题面完成率都降低,隐藏区分样例的成功率均提高。"},"caption": {"en": "Matched control and separation tasks from 120 families share five demonstrations. Points subtract control from separation. Lines are pointwise paired 95% intervals. The hidden pair was chosen to distinguish programs.","zh": "120 个家族各有一对共享五个示例的题。点为排除捷径的题减对照题,线为逐项配对 95% 区间。隐藏样例专门用于区分候选程序。"},"afterParagraph": 1,"source": "https://github.com/dqswordman/program-structure-certificates/blob/v1.0.0/results/PRIMARY_PANEL_READABLE.csv"},{"type": "table","columns": [39 unmodified lines{"id": "beyond-the-witness","title": {"en": "Behavior on new strings","zh": "程序在新字符串上的表现"},"paragraphs": {"en": [10 unmodified lines{"id": "identity","title": {"en": "An unchanged output can rule out a shorter program","zh": "输出不变的示例也能排除短程序"},"paragraphs": {"en": [8 unmodified lines{"id": "replay","title": {"en": "Verify a certificate and replay the outcome tables","zh": "核验证书并回放结果表"},"paragraphs": {"en": [
123456789103 unmodified lines1415161718192021222324252627282930311 unmodified line3334353637383940414243444546474849# When does an example force a second rule?Wenzhang Du · arXiv:2611.24975v1 · v1.0.1 · 2026-11-22Can a single string-replacement rule explain examples generated by two rules? Replacing one demonstration can rule out every legal one-rule solution. Across two models and the tested demonstration counts, this change lowers completion on the displayed tasks by 23.53–45.83 percentage points and raises success on a hidden distinguishing example by 8.40–13.45 points. Agreement on other strings remains much lower when both rules must act.## One changed demonstration rules out the shortcutA task shows six input–output pairs. Five stay fixed. In the control, the sixth maps iiiexa to iiiazy. Replacing exa with azy fits all six, but so does a longer program that first replaces ex with azw and then wa with y. The displayed outputs alone allow either explanation.3 unmodified linesFigure 1. Read the last demonstration under each program. Both programs fit the control, but only the two-step reference produces wbayzw on the changed input. Enumeration checks every legal single rule.## Why the minimum is exactly twoHere a rule replaces every non-overlapping occurrence of a literal string. Rules run in sequence. The study fixes a finite alphabet, a left-hand side of one to three characters and a right-hand side of up to three. A changed output rules out the empty program. The verifier enumerates the legal one-rule explanations and executes a two-rule witness.One legal single rule fits the control and none fits its partner. A changed output also excludes the empty program. Because the reference executes successfully in both tasks, these checks fix the minimum lengths at one and two. The verifier uses only the displayed pairs, before either model sees them. Its guarantee is relative to the specified replacement language and rule lengths.## Displayed completion falls as hidden-test success risesEach of the 120 reference families supplies matched control and separation tasks with three to six shared examples, plus one arm-specific example. The panel contains 1,440 new trajectories and 480 previously saved base-five trajectories for Qwen3-8B and Olmo-3-7B-Think. The certified comparison uses 119 families at bases three and four and all 120 at bases five and six.With five shared examples, Qwen satisfies all displayed pairs in 67 of 120 control tasks and 12 of their partners. Olmo’s counts are 52 and 15. Both models are more likely to pass a separate input–output pair omitted from both prompts. The table pairs tasks by reference family. Differences are in percentage points, with pointwise 95% intervals.| Model | Displayed, control → separation | Displayed Δ (pp) | Hidden pair Δ (pp) || --- | --- | --- | --- || Qwen3-8B | 67 → 12 / 120 | −45.83 [−55.00, −36.67] | +9.17 [+4.17, +15.00] |1 unmodified lineFive shared demonstrations and one changed demonstration, with 120 matched families per model. Δ is separation minus control. Across all eight settings, displayed completion falls by 23.53–45.83 points while hidden-test success rises by 8.40–13.45 points.## How often do programs agree on new inputs?The hidden pair was chosen to distinguish programs. A second evaluation draws 32 uniform strings and 32 strings that activate both reference rules for each family. Uniform-input agreement falls in every model and base-count setting. Of the 3,840 uniform inputs, 3,325 map to themselves under the reference.On strings that activate both reference rules, programs returned for the separation task agree with the reference on only 1.93–5.78% of inputs across settings. With five shared examples, agreement is 2.76% for Qwen and 2.01% for Olmo. Passing one test chosen to expose a shortcut leaves substantial uncertainty about what the program does on other strings.## An unchanged string can still decide the minimumIn another family, the reference replaces f with fdd and then db with c. The displayed string iyxbdc stays unchanged. The candidate rule b → dc would return iyxdcdc, so this apparently uneventful example excludes it. Removing the example at the smaller demonstration counts restores a one-rule solution. The family was selected from this change in its certificate before examining model outcomes.## Run the certificate check and reconstruct the three tablesExtract the release, enter its top-level folder and run the first two commands with Python 3.11 or later. The third uses NumPy and writes to a new directory. It verifies 960 certificates, 7,680 reference labels and the saved programs, then compares the three reconstructed tables with their archived counterparts.123456789103 unmodified lines1415161718192021222324252627282930313233343536371 unmodified line3940414243444546474849505152535455# Certifying when a second replacement rule is requiredWenzhang Du · arXiv:2611.24975v1 · v1.0.2 · 2026-12-01Change the sixth demonstration while keeping the same two-rule reference program. A finite search checks that every legal one-rule alternative fails. With five shared examples across 120 families, Qwen3-8B completed 67 control tasks and 12 tasks requiring both rules, yet its success on a hidden distinguishing pair rose 9.17 percentage points.## One changed example eliminates a shortcutA task shows six input–output pairs. Five stay fixed. In the control, the sixth maps iiiexa to iiiazy. Replacing exa with azy fits all six, but so does a longer program that first replaces ex with azw and then wa with y. The displayed outputs alone allow either explanation.3 unmodified linesFigure 1. Read the last demonstration under each program. Both programs fit the control, but only the two-step reference produces wbayzw on the changed input. Enumeration checks every legal single rule.## A finite certificate for minimum lengthHere a rule replaces every non-overlapping occurrence of a literal string. Rules run in sequence. The study fixes a finite alphabet, a left-hand side of one to three characters and a right-hand side of up to three. A changed output rules out the empty program. The verifier enumerates the legal one-rule explanations and executes a two-rule witness.One legal single rule fits the control and none fits its partner. A changed output also excludes the empty program. Because the reference executes successfully in both tasks, these checks fix the minimum lengths at one and two. The verifier uses only the displayed pairs, before either model sees them. Its guarantee is relative to the specified replacement language and rule lengths.## Displayed tasks and hidden distinguishing pairsThe control and separation tasks share their reference program and five examples in the comparison below. Only the sixth example changes. Success on all displayed pairs, on a hidden pair deliberately chosen to distinguish programs, and on new strings measures three different behaviors. Each difference pairs tasks from the same reference family.Each of the 120 reference families supplies matched control and separation tasks with three to six shared examples, plus one arm-specific example. The panel contains 1,440 new trajectories and 480 previously saved base-five trajectories for Qwen3-8B and Olmo-3-7B-Think. The certified comparison uses 119 families at bases three and four and all 120 at bases five and six.With five shared examples, Qwen satisfies all displayed pairs in 67 of 120 control tasks and 12 of their partners. Olmo’s counts are 52 and 15. Both models are more likely to pass a separate input–output pair omitted from both prompts. The table pairs tasks by reference family. Differences are in percentage points, with pointwise 95% intervals.Matched control and separation tasks from 120 families share five demonstrations. Points subtract control from separation. Lines are pointwise paired 95% intervals. The hidden pair was chosen to distinguish programs.| Model | Displayed, control → separation | Displayed Δ (pp) | Hidden pair Δ (pp) || --- | --- | --- | --- || Qwen3-8B | 67 → 12 / 120 | −45.83 [−55.00, −36.67] | +9.17 [+4.17, +15.00] |1 unmodified lineFive shared demonstrations and one changed demonstration, with 120 matched families per model. Δ is separation minus control. Across all eight settings, displayed completion falls by 23.53–45.83 points while hidden-test success rises by 8.40–13.45 points.## Behavior on new stringsThe hidden pair was chosen to distinguish programs. A second evaluation draws 32 uniform strings and 32 strings that activate both reference rules for each family. Uniform-input agreement falls in every model and base-count setting. Of the 3,840 uniform inputs, 3,325 map to themselves under the reference.On strings that activate both reference rules, programs returned for the separation task agree with the reference on only 1.93–5.78% of inputs across settings. With five shared examples, agreement is 2.76% for Qwen and 2.01% for Olmo. Passing one test chosen to expose a shortcut leaves substantial uncertainty about what the program does on other strings.## An unchanged output can rule out a shorter programIn another family, the reference replaces f with fdd and then db with c. The displayed string iyxbdc stays unchanged. The candidate rule b → dc would return iyxdcdc, so this apparently uneventful example excludes it. Removing the example at the smaller demonstration counts restores a one-rule solution. The family was selected from this change in its certificate before examining model outcomes.## Verify a certificate and replay the outcome tablesExtract the release, enter its top-level folder and run the first two commands with Python 3.11 or later. The third uses NumPy and writes to a new directory. It verifies 960 certificates, 7,680 reference labels and the saved programs, then compares the three reconstructed tables with their archived counterparts.
123456789103 unmodified lines1415161718192021222324252627282930311 unmodified line3334353637383940414243444546474849# 什么样的样例会迫使程序使用第二条规则?Wenzhang Du · arXiv:2611.24975v1 · v1.0.1 · 2026-11-22两条规则生成的字符串样例,是否非得用两条规则才能解释?替换一个展示样例,就能排除所有合法的单规则解。在两种模型和各个展示规模下,这一变化使完成题面的比例降低 23.53–45.83 个百分点,却使通过隐藏辨别样例的比例提高 8.40–13.45 个百分点。换到确实触发两条规则的其他字符串上,模型仍很少复现参考程序的输出。## 只换一个样例,单规则捷径便失效一道题给出六对输入输出,其中五对保持不变。对照题的第六对是 iiiexa → iiiazy。把 exa 换成 azy 就能解释全部六对。先把 ex 换成 azw、再把 wa 换成 y,也能解释它们。仅凭这组展示结果,两种解释都成立。3 unmodified lines图 1。分别用两个程序处理最后一个展示样例。两者都符合对照题,换题后只有两步参考程序能在该输入上产生 wbayzw。穷举检查涵盖所有合法的单条规则。## 怎样证明最短解恰好需要两条规则每条规则替换字符串中所有互不重叠的字面匹配,多条规则按顺序执行。研究固定有限字母表,左侧长度为一至三个字符,右侧长度最多三个字符。一组发生变化的输出即可排除空程序。验证器随后枚举全部合法单规则解释,并实际执行一个双规则解。对照题有一条合法单规则解。在与它配对的另一道题上,单规则解为零。至少有一个输出发生变化,也排除了空程序。两步参考程序在两道题上都能执行并通过,因此最短解分别为一条和两条规则。核验发生在模型看到题目之前,只用展示样例。这个保证限于预先规定的替换语言及规则长度。## 题面完成率下降,隐藏样例通过率上升120 个参考程序家族在三至六个共享样例下各生成一对任务,并各加一个对照或分离样例。两种模型为 Qwen3-8B 和 Olmo-3-7B-Think,共有 1,440 条新轨迹和 480 条先前保存的五共享样例轨迹。三个、四个共享样例时各有 119 个家族通过配对认证,五个、六个时各有 120 个。固定五个共享样例时,Qwen 在 120 道对照题中完成 67 道,在对应的双规则必需题中完成 12 道。Olmo 分别完成 52 道和 15 道。两种模型在另外一对从未展示的输入输出上,通过率反而提高。表中按参考程序家族配对,差值用百分点表示,并列出各项的 95% 区间。| 模型 | 题面,对照 → 分离 | 题面差值(百分点) | 隐藏配对差值(百分点) || --- | --- | --- | --- || Qwen3-8B | 67 → 12 / 120 | −45.83 [−55.00, −36.67] | +9.17 [+4.17, +15.00] |1 unmodified line每个模型均有 120 个配对家族。这一行设定为五个共享样例加一个改变的样例,Δ 是双规则必需题减对照题。在全部八个设置中,题面完成率下降 23.53–45.83 个百分点,隐藏样例通过率上升 8.40–13.45 个百分点。## 换一批新输入,模型与参考程序的输出有多大比例一致?隐藏见证配对是为区分程序而选择的。第二组评估则为每个家族抽取 32 个均匀输入和 32 个能触发两条规则的输入。在全部模型和共享样例数设置下,均匀输入上的一致率都下降。3,840 个均匀输入中,有 3,325 个经过参考程序后保持原样。在同时触发两条参考规则的字符串上,各设置中双规则必需题所得程序与参考程序的输出一致率只有 1.93%–5.78%。固定五个共享样例时,Qwen 为 2.76%,Olmo 为 2.01%。即使通过���门用来识别捷径的一道测试,仍很难据此推断程序在其他字符串上会做什么。## 输出原样返回,也可能决定最少需要几条规则另一组任务的参考程序先将 f 换成 fdd,再将 db 换成 c。输入 iyxbdc 时输出原样返回,但候选单规则 b → dc 会给出 iyxdcdc。因此,恰是这个“什么也没变”的样例排除了该候选。在较少展示样例的设置里,删掉它便重新出现单规则解。选取这个家族的依据是证书的变化,选例时尚未查看模型表现。## 核验证书并重建三张结果表解压版本包并进入顶层目录。用 Python 3.11 或更新版本运行前两条命令即可核对文件和图 1 实例。第三条使用 NumPy,将结果写入新目录;它复核 960 份证书、7,680 个参考标签与保存的程序,并把三张重建结果表逐一对照归档。123456789103 unmodified lines1415161718192021222324252627282930313233343536371 unmodified line3940414243444546474849505152535455# 怎样证明第二条字符串替换规则必不可少Wenzhang Du · arXiv:2611.24975v1 · v1.0.2 · 2026-12-01固定同一个双规则参考程序,更换第六个示例,再穷举检查全部合法单规则是否都会失败。在共享五个示例的 120 个家族中,Qwen3-8B 完成了 67 道对照题、12 道确实需要双规则的题,而在用于区分程序的隐藏样例上,成功率提高了 9.17 个百分点。## 一个示例怎样排除捷径一道题给出六对输入输出,其中五对保持不变。对照题的第六对是 iiiexa → iiiazy。把 exa 换成 azy 就能解释全部六对。先把 ex 换成 azw、再把 wa 换成 y,也能解释它们。仅凭这组展示结果,两种解释都成立。3 unmodified lines图 1。分别用两个程序处理最后一个展示样例。两者都符合对照题,换题后只有两步参考程序能在该输入上产生 wbayzw。穷举检查涵盖所有合法的单条规则。## 最短程序长度的有限穷举证明每条规则替换字符串中所有互不重叠的字面匹配,多条规则按顺序执行。研究固定有限字母表,左侧长度为一至三个字符,右侧长度最多三个字符。一组发生变化的输出即可排除空程序。验证器随后枚举全部合法单规则解释,并实际执行一个双规则解。对照题有一条合法单规则解。在与它配对的另一道题上,单规则解为零。至少有一个输出发生变化,也排除了空程序。两步参考程序在两道题上都能执行并通过,因此最短解分别为一条和两条规则。核验发生在模型看到题目之前,只用展示样例。这个保证限于预先规定的替换语言及规则长度。## 题面完成率与隐藏区分样例下方比较固定参考程序和五个展示样例,只替换第六个。通过全部题面样例、通过专门用于区分程序的隐藏样例,以及处理新字符串,分别是三种不同的能力。每个差值都在同一参考程序家族内配对。120 个参考程序家族在三至六个共享样例下各生成一对任务,并各加一个对照或分离样例。两种模型为 Qwen3-8B 和 Olmo-3-7B-Think,共有 1,440 条新轨迹和 480 条先前保存的五共享样例轨迹。三个、四个共享样例时各有 119 个家族通过配对认证,五个、六个时各有 120 个。固定五个共享样例时,Qwen 在 120 道对照题中完成 67 道,在对应的双规则必需题中完成 12 道。Olmo 分别完成 52 道和 15 道。两种模型在另外一对从未展示的输入输出上,通过率反而提高。表中按参考程序家族配对,差值用百分点表示,并列出各项的 95% 区间。120 个家族各有一对共享五个示例的题。点为排除捷径的题减对照题,线为逐项配对 95% 区间。隐藏样例专门用于区分候选程序。| 模型 | 题面,对照 → 分离 | 题面差值(百分点) | 隐藏配对差值(百分点) || --- | --- | --- | --- || Qwen3-8B | 67 → 12 / 120 | −45.83 [−55.00, −36.67] | +9.17 [+4.17, +15.00] |1 unmodified line每个模型均有 120 个配对家族。这一行设定为五个共享样例加一个改变的样例,Δ 是双规则必需题减对照题。在全部八个设置中,题面完成率下降 23.53–45.83 个百分点,隐藏样例通过率上升 8.40–13.45 个百分点。## 程序在新字符串上的表现隐藏见证配对是为区分程序而选择的。第二组评估则为每个家族抽取 32 个均匀输入和 32 个能触发两条规则的输入。在全部模型和共享样例数设置下,均匀输入上的一致率都下降。3,840 个均匀输入中,有 3,325 个经过参考程序后保持原样。在同时触发两条参考规则的字符串上,各设置中双规则必需题所得程序与参考程序的输出一致率只有 1.93%–5.78%。固定五个共享样例时,Qwen 为 2.76%,Olmo 为 2.01%。即使通过���门用来识别捷径的一道测试,仍很难据此推断程序在其他字符串上会做什么。## 输出不变的示例也能排除短程序另一组任务的参考程序先将 f 换成 fdd,再将 db 换成 c。输入 iyxbdc 时输出原样返回,但候选单规则 b → dc 会给出 iyxdcdc。因此,恰是这个“什么也没变”的样例排除了该候选。在较少展示样例的设置里,删掉它便重新出现单规则解。选取这个家族的依据是证书的变化,选例时尚未查看模型表现。## 核验证书并回放结果表解压版本包并进入顶层目录。用 Python 3.11 或更新版本运行前两条命令即可核对文件和图 1 实例。第三条使用 NumPy,将结果写入新目录;它复核 960 份证书、7,680 个参考标签与保存的程序,并把三张重建结果表逐一对照归档。
1234521 unmodified lines272829# ReproductionUse [v1.0.0](https://github.com/dqswordman/program-structure-certificates/tree/v1.0.0) for the frozen research artifact. Run the commands from the repository root.The quick check follows one paired task through the proof of minimum program length. The full replay compares the saved programs on displayed examples, hidden distinguishing pairs and new strings.21 unmodified lines## Paper coverageThe base-count panel uses shared family IDs and the original paired-family analysis. At bases three and four the certified cohort contains 119 families, while at bases five and six it contains 120. The base-five point estimates for Qwen and Olmo correspond to the original held-out evaluation. The original adjusted intervals and the historical studies listed in [release scope](../RELEASE_SCOPE.txt) are documented separately. [Result map](result-map.csv) · [Readout and bootstrap contract](../data/analysis_contract.json)123456721 unmodified lines29303132333435# ReproductionThe paired plot fixes the five shared examples. Within each model it subtracts control from separation for the displayed tasks and the hidden distinguishing pairs. Each interval belongs to its own contrast.Use [v1.0.0](https://github.com/dqswordman/program-structure-certificates/tree/v1.0.0) for the frozen research artifact. Run the commands from the repository root.The quick check follows one paired task through the proof of minimum program length. The full replay compares the saved programs on displayed examples, hidden distinguishing pairs and new strings.21 unmodified lines## Paper coverageThe base-count panel uses shared family IDs and the original paired-family analysis. At bases three and four the certified cohort contains 119 families, while at bases five and six it contains 120. The base-five point estimates for Qwen and Olmo correspond to the original held-out evaluation. The original adjusted intervals and the historical studies listed in [release scope](../RELEASE_SCOPE.txt) are documented separately. [Result map](result-map.csv) · [Readout and bootstrap contract](../data/analysis_contract.json)## Redraw the paired comparisonRun `python scripts/render_paired_comparison.py` from the repository root with Matplotlib installed. The script reads the saved result tables and produces the editable SVG and the PNG used in the current web report.
123456<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Change one demonstration to see when a second rule becomes necessary. Explore certificate-grounded program induction from arXiv:2611.24975."><title>Program structure certificates · Wenzhang Du</title><link rel="stylesheet" href="style.css"><script src="explore.js" defer></script></head><body><main><header class="hero"><div class="wrap"><p class="over">PROGRAM INDUCTION / arXiv 2611.24975</p><h1>When is program<br>structure required?</h1><p class="lede">Five examples stay fixed. On the control task one rule fits all six examples. Change the sixth example and every legal one-rule explanation fails, while the same two-rule program still works.</p><p class="author">Wenzhang Du · November 2026</p><nav><a href="https://arxiv.org/abs/2611.24975" target="_blank" rel="noopener">Paper ↗</a><a href="https://github.com/dqswordman/program-structure-certificates" target="_blank" rel="noopener">GitHub ↗</a><a href="https://dqswordman.github.io/technical-reports/program-structure-certificates/" target="_blank" rel="noopener">Technical report ↗</a><a href="https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/" target="_blank" rel="noopener">中文伴读 ↗</a></nav></div></header><div class="wrap"><section><p class="over">FIGURE 1 · WORKED EXAMPLE</p><h2>Switch the last demonstration</h2><p>Both tasks share the reference program <code>ex → azw</code> followed by <code>wa → y</code>. Try the single-rule explanation <code>exa → azy</code> on each last input.</p><fieldset id="arms" hidden><legend>Demonstration</legend><label><input type="radio" name="arm" value="CONTROL" checked>Control</label><label><input type="radio" name="arm" value="SEPARATION">Separation</label></fieldset><div class="case" id="case" aria-live="polite"><div><small>Last input</small><strong id="input">iiiexa</strong></div><div><small>Required output</small><strong id="target">iiiazy</strong></div><div><small>Shortcut output</small><strong id="shortcut">iiiazy</strong></div></div>123456<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Change one demonstration to see when a second rule becomes necessary. Explore certificate-grounded program induction from arXiv:2611.24975."><title>Program structure certificates · Wenzhang Du</title><link rel="stylesheet" href="style.css"><script src="explore.js" defer></script></head><body><main><header class="hero"><div class="wrap"><p class="over">PROGRAM INDUCTION / arXiv 2611.24975</p><h1>When is program<br>structure required?</h1><p class="lede">Change the sixth example while holding the first five and the two-rule reference program fixed. Look for a one-rule explanation that still fits. Then compare how often each model solves the displayed task or passes the hidden test.</p><p class="author">Wenzhang Du · November 2026</p><nav><a href="https://arxiv.org/abs/2611.24975" target="_blank" rel="noopener">Paper ↗</a><a href="https://github.com/dqswordman/program-structure-certificates" target="_blank" rel="noopener">GitHub ↗</a><a href="https://dqswordman.github.io/technical-reports/program-structure-certificates/" target="_blank" rel="noopener">Technical report ↗</a><a href="https://dqswordman.github.io/zh/technical-reports/program-structure-certificates/" target="_blank" rel="noopener">中文伴读 ↗</a></nav></div></header><div class="wrap"><section><p class="over">FIGURE 1 · WORKED EXAMPLE</p><h2>Switch the last demonstration</h2><p>Both tasks share the reference program <code>ex → azw</code> followed by <code>wa → y</code>. Try the single-rule explanation <code>exa → azy</code> on each last input.</p><fieldset id="arms" hidden><legend>Demonstration</legend><label><input type="radio" name="arm" value="CONTROL" checked>Control</label><label><input type="radio" name="arm" value="SEPARATION">Separation</label></fieldset><div class="case" id="case" aria-live="polite"><div><small>Last input</small><strong id="input">iiiexa</strong></div><div><small>Required output</small><strong id="target">iiiazy</strong></div><div><small>Shortcut output</small><strong id="shortcut">iiiazy</strong></div></div>
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"""Render the paired estimates from the study's archived table. Requires Matplotlib."""import csvimport refrom io import StringIOfrom pathlib import Pathimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltfrom matplotlib.ticker import MaxNLocatorROOT = Path(__file__).resolve().parents[1]with (ROOT/'results/PRIMARY_PANEL_READABLE.csv').open(encoding='utf-8-sig',newline='') as stream: rows = list(csv.DictReader(stream))points = []for row in rows: if row['base_count'] != '5': continue for field, endpoint, color in [('displayed_delta_pp_and_95CI','Displayed',0),('unshown_pair_delta_pp_and_95CI','Hidden pair',1)]: point, low, high = map(float, re.findall(r'[-+]?\d+(?:\.\d+)?',row[field])) points.append((row['model'] + ' · ' + endpoint,point,low,high,color))if not points: raise ValueError("No matching recorded comparisons")plt.rcParams.update({"font.family":"DejaVu Sans","svg.fonttype":"none","svg.hashsalt":"paired-comparisons","font.size":12})colors = ["#12675e","#934821"]fig, ax = plt.subplots(figsize=(8.4, 2.25 + .47*len(points)), layout=None)fig.patch.set_facecolor("#ffffff")fig.subplots_adjust(left=.35,right=.81,top=.79,bottom=.24)ax.axvline(0,color="#63766f",linewidth=1,linestyle=(0,(3,3)),zorder=1)for i,(label,mean,low,high,kind) in enumerate(points): color=colors[kind] ax.plot([low,high],[i,i],color=color,linewidth=2.1,solid_capstyle="round") ax.plot([low,high],[i,i],linestyle="none",marker="|",markersize=7,color=color) ax.plot(mean,i,marker=("o","D")[kind],markersize=6,color=color) ax.text(1.045,i,'{:+.2f}'.format(mean),transform=ax.get_yaxis_transform(),va="center",fontsize=12,color=color)ax.set_yticks(range(len(points)),labels=[p[0] for p in points])ax.set_ylim(len(points)-.45,-.55)ax.xaxis.set_major_locator(MaxNLocator(5))ax.grid(axis="x",color="#dee5df",linewidth=.6)ax.set_axisbelow(True)ax.tick_params(axis="y",length=0,pad=9)ax.tick_params(axis="x",colors="#40564e",labelsize=10)for side in ["top","right","left"]: ax.spines[side].set_visible(False)ax.spines["bottom"].set_color("#8c9d94")ax.set_xlabel('Separation minus control (percentage points)',fontsize=11,labelpad=8,color="#223f36")fig.text(.055,.91,'Displayed and hidden tasks',fontsize=17,weight="bold",color="#193b30")output_dir=ROOT/'docs/figures'output_dir.mkdir(exist_ok=True,parents=True)svg = StringIO()fig.savefig(svg,format="svg",facecolor="white",metadata={"Date":None})svg_text = "\n".join(line.rstrip() for line in svg.getvalue().splitlines()) + "\n"(output_dir/"paired-comparison.svg").write_bytes(svg_text.encode("utf-8"))fig.savefig(output_dir/"paired-comparison.png",dpi=170,facecolor="white")plt.close(fig)GITHUB_README.md+1-1
MANIFEST.json+29-14
README.md+2-2
SNAPSHOT.json+12-9
docs/companion.json+38-20
docs/figures/paired-comparison.pngAdded

docs/figures/paired-comparison.svgAdded
docs/report.en.md+15-9
docs/report.zh.md+15-9
docs/reproduction.md+6
index.html+1-1
scripts/render_paired_comparison.pyAdded+52