hypothesis-generation 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. hypothesis_generation-0.5.0/CHANGELOG.md +69 -0
  2. hypothesis_generation-0.5.0/CITATION.cff +14 -0
  3. hypothesis_generation-0.5.0/CONTRIBUTING.md +62 -0
  4. hypothesis_generation-0.5.0/LICENSE +201 -0
  5. hypothesis_generation-0.5.0/MANIFEST.in +12 -0
  6. hypothesis_generation-0.5.0/NOTICE +4 -0
  7. hypothesis_generation-0.5.0/PKG-INFO +280 -0
  8. hypothesis_generation-0.5.0/README.md +247 -0
  9. hypothesis_generation-0.5.0/SECURITY.md +34 -0
  10. hypothesis_generation-0.5.0/benchmarks/README.md +112 -0
  11. hypothesis_generation-0.5.0/benchmarks/cases.json +44 -0
  12. hypothesis_generation-0.5.0/benchmarks/discovery-cases.json +84 -0
  13. hypothesis_generation-0.5.0/benchmarks/expert-review-template.md +65 -0
  14. hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-cases.json +2018 -0
  15. hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-lock.json +13 -0
  16. hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-sources.json +478 -0
  17. hypothesis_generation-0.5.0/benchmarks/external-sources.json +99 -0
  18. hypothesis_generation-0.5.0/benchmarks/fixtures/biology-enzyme-negative-request.json +24 -0
  19. hypothesis_generation-0.5.0/benchmarks/fixtures/biology-enzyme-request.json +26 -0
  20. hypothesis_generation-0.5.0/benchmarks/fixtures/computing-retry-negative-request.json +24 -0
  21. hypothesis_generation-0.5.0/benchmarks/fixtures/computing-retry-request.json +26 -0
  22. hypothesis_generation-0.5.0/benchmarks/fixtures/domain-pack-releases/biology-enzyme-path.release.json +54 -0
  23. hypothesis_generation-0.5.0/benchmarks/fixtures/domain-pack-releases/computing-retry-path.release.json +54 -0
  24. hypothesis_generation-0.5.0/benchmarks/fixtures/domain-packs/biology-enzyme-path.json +93 -0
  25. hypothesis_generation-0.5.0/benchmarks/fixtures/domain-packs/computing-retry-path.json +93 -0
  26. hypothesis_generation-0.5.0/benchmarks/fixtures/novelty-retrieval.json +78 -0
  27. hypothesis_generation-0.5.0/benchmarks/hard-benchmark-contract.json +56 -0
  28. hypothesis_generation-0.5.0/benchmarks/jump-cases.json +51 -0
  29. hypothesis_generation-0.5.0/benchmarks/portfolio-extension-cases.json +135 -0
  30. hypothesis_generation-0.5.0/benchmarks/premise-capability-cases.json +168 -0
  31. hypothesis_generation-0.5.0/benchmarks/premise-invention-cases.json +157 -0
  32. hypothesis_generation-0.5.0/benchmarks/release-qualification-cases.json +60 -0
  33. hypothesis_generation-0.5.0/benchmarks/results/discoverybench-hardening-qualification.json +60 -0
  34. hypothesis_generation-0.5.0/benchmarks/results/discoverybench-qualification.json +59 -0
  35. hypothesis_generation-0.5.0/benchmarks/results/external-benchmark-qualification.json +62 -0
  36. hypothesis_generation-0.5.0/benchmarks/results/external-premise-challenge-result.json +1663 -0
  37. hypothesis_generation-0.5.0/benchmarks/results/hypobench-qualification.json +62 -0
  38. hypothesis_generation-0.5.0/benchmarks/results/hypobench-real-qualification.json +51 -0
  39. hypothesis_generation-0.5.0/benchmarks/results/hypospace-qualification.json +41 -0
  40. hypothesis_generation-0.5.0/benchmarks/results/premise-invention-qualification.json +62 -0
  41. hypothesis_generation-0.5.0/benchmarks/results/recursive-discovery-qualification.json +69 -0
  42. hypothesis_generation-0.5.0/benchmarks/results/release-qualification-0.5.0.json +113 -0
  43. hypothesis_generation-0.5.0/benchmarks/results/srsd-feynman-hard-qualification.json +68 -0
  44. hypothesis_generation-0.5.0/benchmarks/scientific-evaluation-cases.json +45 -0
  45. hypothesis_generation-0.5.0/docs/ABDUCTION.md +35 -0
  46. hypothesis_generation-0.5.0/docs/AGENT_PROTOCOL.md +160 -0
  47. hypothesis_generation-0.5.0/docs/CAUSAL_DISCRIMINATION.md +17 -0
  48. hypothesis_generation-0.5.0/docs/CAUSAL_EQUIVALENCE.md +17 -0
  49. hypothesis_generation-0.5.0/docs/COUNTEREXAMPLES.md +31 -0
  50. hypothesis_generation-0.5.0/docs/DESIGN.md +128 -0
  51. hypothesis_generation-0.5.0/docs/DIMENSIONS.md +26 -0
  52. hypothesis_generation-0.5.0/docs/DISCOVERY.md +325 -0
  53. hypothesis_generation-0.5.0/docs/DOMAIN_PACKS.md +128 -0
  54. hypothesis_generation-0.5.0/docs/EQUATION_SEARCH.md +80 -0
  55. hypothesis_generation-0.5.0/docs/EVALUATION_KIT.md +30 -0
  56. hypothesis_generation-0.5.0/docs/EXPERIMENT_DESIGN.md +15 -0
  57. hypothesis_generation-0.5.0/docs/EXPERIMENT_GOVERNANCE.md +11 -0
  58. hypothesis_generation-0.5.0/docs/EXTENSIONS.md +77 -0
  59. hypothesis_generation-0.5.0/docs/EXTERNAL_PREMISE_CHALLENGE.md +83 -0
  60. hypothesis_generation-0.5.0/docs/EXTERNAL_PREMISE_CHALLENGE_PROTOCOL.md +80 -0
  61. hypothesis_generation-0.5.0/docs/FREEZE_MANIFESTS.md +20 -0
  62. hypothesis_generation-0.5.0/docs/HYPOTHESIS_GENERATION_SYSTEM.md +58 -0
  63. hypothesis_generation-0.5.0/docs/MECHANISMS.md +24 -0
  64. hypothesis_generation-0.5.0/docs/README.md +44 -0
  65. hypothesis_generation-0.5.0/docs/RELEASE_PLAN.md +33 -0
  66. hypothesis_generation-0.5.0/docs/RELEASE_QUALIFICATION.md +71 -0
  67. hypothesis_generation-0.5.0/docs/RELEASE_READINESS.md +73 -0
  68. hypothesis_generation-0.5.0/docs/SCIENTIFIC_COMPUTE_ADAPTERS.md +24 -0
  69. hypothesis_generation-0.5.0/docs/SCIENTIFIC_LIMITATIONS.md +166 -0
  70. hypothesis_generation-0.5.0/docs/SOLVER_ADAPTERS.md +33 -0
  71. hypothesis_generation-0.5.0/docs/TEMPORAL_EVALUATION.md +68 -0
  72. hypothesis_generation-0.5.0/docs/THEORY_REVISION.md +35 -0
  73. hypothesis_generation-0.5.0/examples/application_extension.py +84 -0
  74. hypothesis_generation-0.5.0/examples/application_extension_manifest.json +13 -0
  75. hypothesis_generation-0.5.0/examples/boolean_condition.json +22 -0
  76. hypothesis_generation-0.5.0/examples/classification_rule_discovery.json +29 -0
  77. hypothesis_generation-0.5.0/examples/ecology_species_area.json +51 -0
  78. hypothesis_generation-0.5.0/examples/generic_portfolio.json +7 -0
  79. hypothesis_generation-0.5.0/examples/jump_history_discovery.py +81 -0
  80. hypothesis_generation-0.5.0/examples/microbiology_monod.json +43 -0
  81. hypothesis_generation-0.5.0/examples/premise_invention.py +28 -0
  82. hypothesis_generation-0.5.0/examples/recursive_symbolic_discovery.json +42 -0
  83. hypothesis_generation-0.5.0/examples/scalar_relation.json +26 -0
  84. hypothesis_generation-0.5.0/examples/service_failure_relations.json +22 -0
  85. hypothesis_generation-0.5.0/examples/superconducting_transition.json +51 -0
  86. hypothesis_generation-0.5.0/examples/urban_heat_discovery.json +28 -0
  87. hypothesis_generation-0.5.0/pyproject.toml +61 -0
  88. hypothesis_generation-0.5.0/schemas/abduction-result.schema.json +153 -0
  89. hypothesis_generation-0.5.0/schemas/abductive-world.schema.json +201 -0
  90. hypothesis_generation-0.5.0/schemas/causal-dag.schema.json +116 -0
  91. hypothesis_generation-0.5.0/schemas/causal-discrimination-result.schema.json +109 -0
  92. hypothesis_generation-0.5.0/schemas/causal-equivalence-result.schema.json +98 -0
  93. hypothesis_generation-0.5.0/schemas/counterfactual-design.schema.json +13 -0
  94. hypothesis_generation-0.5.0/schemas/dimensional-analysis-result.schema.json +77 -0
  95. hypothesis_generation-0.5.0/schemas/discovery-cycle.schema.json +8 -0
  96. hypothesis_generation-0.5.0/schemas/discovery-error.schema.json +78 -0
  97. hypothesis_generation-0.5.0/schemas/discovery-extension-conformance.schema.json +37 -0
  98. hypothesis_generation-0.5.0/schemas/discovery-extension.schema.json +38 -0
  99. hypothesis_generation-0.5.0/schemas/discovery-request.schema.json +188 -0
  100. hypothesis_generation-0.5.0/schemas/discovery-response.schema.json +239 -0
  101. hypothesis_generation-0.5.0/schemas/domain-pack-release.schema.json +147 -0
  102. hypothesis_generation-0.5.0/schemas/domain-pack-scaffold.schema.json +44 -0
  103. hypothesis_generation-0.5.0/schemas/domain-pack.schema.json +261 -0
  104. hypothesis_generation-0.5.0/schemas/exact-search-result.schema.json +47 -0
  105. hypothesis_generation-0.5.0/schemas/executable-theory.schema.json +65 -0
  106. hypothesis_generation-0.5.0/schemas/experiment-design-result.schema.json +164 -0
  107. hypothesis_generation-0.5.0/schemas/experiment-governance-result.schema.json +158 -0
  108. hypothesis_generation-0.5.0/schemas/extension-bundle-verification.schema.json +23 -0
  109. hypothesis_generation-0.5.0/schemas/extension-bundle.schema.json +44 -0
  110. hypothesis_generation-0.5.0/schemas/external-benchmark-source-manifest.schema.json +64 -0
  111. hypothesis_generation-0.5.0/schemas/external-premise-blind-review.schema.json +43 -0
  112. hypothesis_generation-0.5.0/schemas/external-premise-challenge-cases.schema.json +104 -0
  113. hypothesis_generation-0.5.0/schemas/external-premise-challenge-lock.schema.json +25 -0
  114. hypothesis_generation-0.5.0/schemas/external-premise-challenge-result.schema.json +20 -0
  115. hypothesis_generation-0.5.0/schemas/external-premise-challenge-sources.schema.json +53 -0
  116. hypothesis_generation-0.5.0/schemas/freeze-manifest.schema.json +95 -0
  117. hypothesis_generation-0.5.0/schemas/frozen-theory-archive.schema.json +11 -0
  118. hypothesis_generation-0.5.0/schemas/generation-request.schema.json +147 -0
  119. hypothesis_generation-0.5.0/schemas/generation-response.schema.json +191 -0
  120. hypothesis_generation-0.5.0/schemas/hard-benchmark-contract.schema.json +95 -0
  121. hypothesis_generation-0.5.0/schemas/hypothesis-campaign-page.schema.json +29 -0
  122. hypothesis_generation-0.5.0/schemas/hypothesis-campaign.schema.json +56 -0
  123. hypothesis_generation-0.5.0/schemas/hypothesis-grammar.schema.json +45 -0
  124. hypothesis_generation-0.5.0/schemas/hypothesis-handoff.schema.json +90 -0
  125. hypothesis_generation-0.5.0/schemas/independent-evaluation-freeze.schema.json +25 -0
  126. hypothesis_generation-0.5.0/schemas/jump-benchmark-result.schema.json +29 -0
  127. hypothesis_generation-0.5.0/schemas/jump-capabilities.schema.json +115 -0
  128. hypothesis_generation-0.5.0/schemas/jump-freeze-bundle.schema.json +10 -0
  129. hypothesis_generation-0.5.0/schemas/jump-ledger-event.schema.json +11 -0
  130. hypothesis_generation-0.5.0/schemas/jump-request.schema.json +10 -0
  131. hypothesis_generation-0.5.0/schemas/jump-response.schema.json +6 -0
  132. hypothesis_generation-0.5.0/schemas/ledger-event.schema.json +48 -0
  133. hypothesis_generation-0.5.0/schemas/mechanism.schema.json +141 -0
  134. hypothesis_generation-0.5.0/schemas/portfolio-calibration.schema.json +55 -0
  135. hypothesis_generation-0.5.0/schemas/portfolio-extension-cases.schema.json +57 -0
  136. hypothesis_generation-0.5.0/schemas/premise-capability-cases.schema.json +28 -0
  137. hypothesis_generation-0.5.0/schemas/premise-invention-benchmark.schema.json +125 -0
  138. hypothesis_generation-0.5.0/schemas/premise-invention.schema.json +168 -0
  139. hypothesis_generation-0.5.0/schemas/premise-program.schema.json +79 -0
  140. hypothesis_generation-0.5.0/schemas/recursive-symbolic-search-result.schema.json +128 -0
  141. hypothesis_generation-0.5.0/schemas/release-qualification-cases.schema.json +53 -0
  142. hypothesis_generation-0.5.0/schemas/representation-invention-result.schema.json +16 -0
  143. hypothesis_generation-0.5.0/schemas/retrieval-evaluation.schema.json +63 -0
  144. hypothesis_generation-0.5.0/schemas/scientific-compute-run.schema.json +265 -0
  145. hypothesis_generation-0.5.0/schemas/scientific-evaluation.schema.json +206 -0
  146. hypothesis_generation-0.5.0/schemas/solver-run.schema.json +146 -0
  147. hypothesis_generation-0.5.0/schemas/structured-hypothesis.schema.json +139 -0
  148. hypothesis_generation-0.5.0/schemas/temporal-evaluation-result.schema.json +90 -0
  149. hypothesis_generation-0.5.0/schemas/temporal-evaluation-seal.schema.json +117 -0
  150. hypothesis_generation-0.5.0/schemas/theory-map-elites.schema.json +13 -0
  151. hypothesis_generation-0.5.0/schemas/theory-synthesis-result.schema.json +15 -0
  152. hypothesis_generation-0.5.0/schemas/universal-discovery-request.schema.json +43 -0
  153. hypothesis_generation-0.5.0/schemas/universal-discovery-response.schema.json +36 -0
  154. hypothesis_generation-0.5.0/setup.cfg +4 -0
  155. hypothesis_generation-0.5.0/src/hypothesis_generation/__init__.py +1152 -0
  156. hypothesis_generation-0.5.0/src/hypothesis_generation/__main__.py +5 -0
  157. hypothesis_generation-0.5.0/src/hypothesis_generation/cli.py +488 -0
  158. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/__init__.py +1422 -0
  159. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/abduction.py +596 -0
  160. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/api.py +438 -0
  161. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/approximate_symbolic_search.py +540 -0
  162. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/backtest.py +182 -0
  163. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/campaigns.py +488 -0
  164. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal.py +554 -0
  165. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal_discrimination.py +366 -0
  166. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal_uncertainty.py +341 -0
  167. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/classification_synthesis.py +626 -0
  168. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/counterexamples.py +576 -0
  169. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/dimensions.py +392 -0
  170. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/discoverybench_benchmark.py +944 -0
  171. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/domain_pack_review.py +638 -0
  172. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/domain_packs.py +1133 -0
  173. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/engines.py +1183 -0
  174. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/equations.py +518 -0
  175. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/exact_search.py +527 -0
  176. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/experiment_design.py +507 -0
  177. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/experiments.py +130 -0
  178. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/extension_bundles.py +540 -0
  179. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/extensions.py +514 -0
  180. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/external_premise_challenge.py +1839 -0
  181. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/freeze.py +456 -0
  182. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/frozen_discovery.py +200 -0
  183. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/governance.py +417 -0
  184. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/handoff.py +321 -0
  185. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypobench_benchmark.py +496 -0
  186. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypobench_real_benchmark.py +602 -0
  187. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypospace_benchmark.py +487 -0
  188. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypothesis_algebra.py +1251 -0
  189. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/independent_evaluation.py +470 -0
  190. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/ir.py +1492 -0
  191. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_api.py +535 -0
  192. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_benchmarks.py +629 -0
  193. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_contracts.py +103 -0
  194. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_cycles.py +368 -0
  195. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_experiments.py +350 -0
  196. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_freeze.py +325 -0
  197. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_ledger.py +489 -0
  198. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_novelty.py +463 -0
  199. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_quality_diversity.py +570 -0
  200. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_representation.py +601 -0
  201. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_synthesis.py +520 -0
  202. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_theory.py +1258 -0
  203. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_world.py +891 -0
  204. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/ledger.py +694 -0
  205. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/legacy_adapter.py +126 -0
  206. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/lexical_discovery.py +338 -0
  207. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/literature_discovery.py +533 -0
  208. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/mechanisms.py +650 -0
  209. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/models.py +1101 -0
  210. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/novelty.py +1168 -0
  211. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/numeric_synthesis.py +1253 -0
  212. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/pack_scaffolds.py +288 -0
  213. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio.py +441 -0
  214. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_calibration.py +162 -0
  215. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_extension_benchmark.py +233 -0
  216. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_profiles.py +145 -0
  217. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_benchmark.py +532 -0
  218. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_capability_benchmark.py +277 -0
  219. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_checks.py +257 -0
  220. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_invention.py +1339 -0
  221. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_ir.py +834 -0
  222. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_programs.py +585 -0
  223. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_registry.py +643 -0
  224. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/query_grounding.py +306 -0
  225. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/recursive_symbolic_search.py +1707 -0
  226. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/relational.py +343 -0
  227. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/release_qualification_benchmark.py +315 -0
  228. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/revision.py +544 -0
  229. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/scientific_adapters.py +627 -0
  230. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/scientific_evaluation.py +302 -0
  231. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/search.py +525 -0
  232. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/solver_adapters.py +376 -0
  233. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/srsd_benchmark.py +501 -0
  234. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/srsd_recursive_benchmark.py +597 -0
  235. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/tabular_diagnostics.py +206 -0
  236. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/temporal_evaluation.py +677 -0
  237. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/universal.py +1639 -0
  238. hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/workspace.py +617 -0
  239. hypothesis_generation-0.5.0/src/hypothesis_generation/engine.py +118 -0
  240. hypothesis_generation-0.5.0/src/hypothesis_generation/grammar.py +2012 -0
  241. hypothesis_generation-0.5.0/src/hypothesis_generation/models.py +1470 -0
  242. hypothesis_generation-0.5.0/src/hypothesis_generation/version.py +7 -0
  243. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/PKG-INFO +280 -0
  244. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/SOURCES.txt +326 -0
  245. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/dependency_links.txt +1 -0
  246. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/entry_points.txt +2 -0
  247. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/requires.txt +7 -0
  248. hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/top_level.txt +1 -0
  249. hypothesis_generation-0.5.0/tests/test_abduction.py +204 -0
  250. hypothesis_generation-0.5.0/tests/test_approximate_symbolic_search.py +65 -0
  251. hypothesis_generation-0.5.0/tests/test_artifact_ledger.py +274 -0
  252. hypothesis_generation-0.5.0/tests/test_benchmark.py +28 -0
  253. hypothesis_generation-0.5.0/tests/test_campaigns.py +115 -0
  254. hypothesis_generation-0.5.0/tests/test_causal_discrimination.py +224 -0
  255. hypothesis_generation-0.5.0/tests/test_causal_equivalence.py +230 -0
  256. hypothesis_generation-0.5.0/tests/test_causal_uncertainty.py +103 -0
  257. hypothesis_generation-0.5.0/tests/test_classification_synthesis.py +194 -0
  258. hypothesis_generation-0.5.0/tests/test_cli.py +277 -0
  259. hypothesis_generation-0.5.0/tests/test_constrained_bridge.py +143 -0
  260. hypothesis_generation-0.5.0/tests/test_core_boundary.py +7 -0
  261. hypothesis_generation-0.5.0/tests/test_counterexamples.py +178 -0
  262. hypothesis_generation-0.5.0/tests/test_declared_aliases.py +115 -0
  263. hypothesis_generation-0.5.0/tests/test_dimensions.py +186 -0
  264. hypothesis_generation-0.5.0/tests/test_discovery.py +512 -0
  265. hypothesis_generation-0.5.0/tests/test_discovery_benchmark.py +31 -0
  266. hypothesis_generation-0.5.0/tests/test_discovery_extensions.py +232 -0
  267. hypothesis_generation-0.5.0/tests/test_discoverybench_benchmark.py +167 -0
  268. hypothesis_generation-0.5.0/tests/test_domain_pack_release.py +216 -0
  269. hypothesis_generation-0.5.0/tests/test_domain_packs.py +352 -0
  270. hypothesis_generation-0.5.0/tests/test_equation_search.py +172 -0
  271. hypothesis_generation-0.5.0/tests/test_exact_search.py +148 -0
  272. hypothesis_generation-0.5.0/tests/test_experiment_design.py +318 -0
  273. hypothesis_generation-0.5.0/tests/test_experiment_governance.py +302 -0
  274. hypothesis_generation-0.5.0/tests/test_experiments_and_backtest.py +90 -0
  275. hypothesis_generation-0.5.0/tests/test_extension_bundles.py +109 -0
  276. hypothesis_generation-0.5.0/tests/test_extension_example.py +17 -0
  277. hypothesis_generation-0.5.0/tests/test_external_benchmark_contracts.py +162 -0
  278. hypothesis_generation-0.5.0/tests/test_external_premise_challenge.py +458 -0
  279. hypothesis_generation-0.5.0/tests/test_formal_reasoning_workflow.py +85 -0
  280. hypothesis_generation-0.5.0/tests/test_freeze_manifest.py +314 -0
  281. hypothesis_generation-0.5.0/tests/test_horn_rule_discovery.py +192 -0
  282. hypothesis_generation-0.5.0/tests/test_hypobench_benchmark.py +128 -0
  283. hypothesis_generation-0.5.0/tests/test_hypobench_real_benchmark.py +101 -0
  284. hypothesis_generation-0.5.0/tests/test_hypospace_benchmark.py +109 -0
  285. hypothesis_generation-0.5.0/tests/test_hypothesis_algebra.py +183 -0
  286. hypothesis_generation-0.5.0/tests/test_hypothesis_handoff.py +99 -0
  287. hypothesis_generation-0.5.0/tests/test_independent_evaluation.py +141 -0
  288. hypothesis_generation-0.5.0/tests/test_jump_benchmarks.py +86 -0
  289. hypothesis_generation-0.5.0/tests/test_jump_contracts.py +89 -0
  290. hypothesis_generation-0.5.0/tests/test_jump_representation.py +1056 -0
  291. hypothesis_generation-0.5.0/tests/test_jump_theory.py +292 -0
  292. hypothesis_generation-0.5.0/tests/test_jump_world.py +246 -0
  293. hypothesis_generation-0.5.0/tests/test_legacy_adapter.py +85 -0
  294. hypothesis_generation-0.5.0/tests/test_lexical_discovery.py +75 -0
  295. hypothesis_generation-0.5.0/tests/test_literature_discovery.py +131 -0
  296. hypothesis_generation-0.5.0/tests/test_mechanisms.py +342 -0
  297. hypothesis_generation-0.5.0/tests/test_model_contract.py +345 -0
  298. hypothesis_generation-0.5.0/tests/test_models_and_engine.py +288 -0
  299. hypothesis_generation-0.5.0/tests/test_novelty_metrics.py +364 -0
  300. hypothesis_generation-0.5.0/tests/test_numeric_synthesis.py +425 -0
  301. hypothesis_generation-0.5.0/tests/test_pack_scaffolds.py +81 -0
  302. hypothesis_generation-0.5.0/tests/test_portfolio_extension_benchmark.py +41 -0
  303. hypothesis_generation-0.5.0/tests/test_portfolio_optimizer.py +93 -0
  304. hypothesis_generation-0.5.0/tests/test_portfolio_profiles.py +187 -0
  305. hypothesis_generation-0.5.0/tests/test_premise_benchmark.py +78 -0
  306. hypothesis_generation-0.5.0/tests/test_premise_capability_benchmark.py +38 -0
  307. hypothesis_generation-0.5.0/tests/test_premise_checks.py +131 -0
  308. hypothesis_generation-0.5.0/tests/test_premise_integration.py +183 -0
  309. hypothesis_generation-0.5.0/tests/test_premise_invention.py +189 -0
  310. hypothesis_generation-0.5.0/tests/test_premise_ir.py +172 -0
  311. hypothesis_generation-0.5.0/tests/test_premise_programs.py +128 -0
  312. hypothesis_generation-0.5.0/tests/test_premise_retention.py +66 -0
  313. hypothesis_generation-0.5.0/tests/test_query_grounding.py +145 -0
  314. hypothesis_generation-0.5.0/tests/test_recursive_symbolic_search.py +335 -0
  315. hypothesis_generation-0.5.0/tests/test_relational_discovery.py +114 -0
  316. hypothesis_generation-0.5.0/tests/test_release_qualification_benchmark.py +68 -0
  317. hypothesis_generation-0.5.0/tests/test_scientific_adapters.py +304 -0
  318. hypothesis_generation-0.5.0/tests/test_scientific_evaluation.py +100 -0
  319. hypothesis_generation-0.5.0/tests/test_scientific_examples.py +57 -0
  320. hypothesis_generation-0.5.0/tests/test_scientific_ir.py +215 -0
  321. hypothesis_generation-0.5.0/tests/test_solver_adapters.py +188 -0
  322. hypothesis_generation-0.5.0/tests/test_srsd_benchmark.py +80 -0
  323. hypothesis_generation-0.5.0/tests/test_srsd_recursive_benchmark.py +86 -0
  324. hypothesis_generation-0.5.0/tests/test_tabular_diagnostics.py +63 -0
  325. hypothesis_generation-0.5.0/tests/test_temporal_evaluation.py +439 -0
  326. hypothesis_generation-0.5.0/tests/test_theory_revision.py +262 -0
  327. hypothesis_generation-0.5.0/tests/test_universal_discovery.py +316 -0
  328. hypothesis_generation-0.5.0/tests/test_wayfinder_skill.py +217 -0
@@ -0,0 +1,69 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ No unreleased changes.
6
+
7
+ ## 0.5.0 — 2026-09-01
8
+
9
+ - Renamed the executable-theory Python API to the canonical
10
+ `HypothesisGeneration*` symbols, including discovery, capability, ledger,
11
+ freeze, and benchmark helpers.
12
+ - Added bounded multi-step premise programs across eighteen typed
13
+ transformation families.
14
+ - Added exact persistent hypothesis campaigns with deterministic pages,
15
+ tamper-evident cursors, and honest pre-page exhaustion.
16
+ - Added balanced, diversity-, novelty-, plausibility-, testability-, and
17
+ caller-defined portfolio objectives.
18
+ - Added dependency-free BM25, declared aliases, metadata and date views,
19
+ relation overlap, and in-memory/SQLite prior-art parity.
20
+ - Added content-bound extension bundles, fail-closed verification, a bounded
21
+ subprocess harness, and generalized replay-addressed handoffs.
22
+ - Added domain-pack scaffolds and review packets for reliability engineering,
23
+ materials/process engineering, and systems biology.
24
+ - Added independent holdout commitments, blind pairwise evaluation materials,
25
+ field-stratified reports, and prospective prediction records.
26
+ - Added bounded multi-elite retention, declared-alias normalization, and
27
+ constrained missing-bridge invention.
28
+ - Added exact portfolio optimization and deterministic recursive symbolic
29
+ search with validation-selected shallow/recursive portfolios.
30
+ - Added pinned offline adapters and qualification summaries for HypoSpace,
31
+ HypoBench, DiscoveryBench, and SRSD-Feynman.
32
+ - Added the dated External Premise Challenge with hidden targets, fixed
33
+ baselines, adversarial controls, and anonymous review materials.
34
+ - Added a nine-case release-qualification suite covering the public v0.5
35
+ contracts. All nine controls pass.
36
+ - Preserved the v0.3 typed API and the dependency-free core, with no LLM or
37
+ network access at runtime.
38
+
39
+ ## 0.4.0 — 2026-08-31
40
+
41
+ - Added the phenomenon-first API with English hypotheses as the default output.
42
+ - Added fourteen extensible reasoning modes and typed premise-invention
43
+ artifacts with generate-test-constrain search and quality-diversity
44
+ selection.
45
+ - Added structured concepts, relations, observations, contexts, constraints,
46
+ analogy sources, prior hypotheses, declarative domain packs, and candidate
47
+ provenance.
48
+ - Added in-memory and SQLite/FTS5 prior-art indexes, persistent artifact
49
+ ledgers, discriminating tests, and sealed temporal evaluation.
50
+ - Added bounded APIs for abduction, theory revision, counterexamples,
51
+ dimensional analysis, equation search, mechanisms, causal structures,
52
+ experiment design, and optional solver/scientific-computing adapters.
53
+ - Added executable-theory generation with finite worlds, representation
54
+ invention, executable theory synthesis, holdout isolation, theory
55
+ quality-diversity, and counterfactual revision cycles.
56
+ - Added schemas, agent protocol support, domain-pack review contracts,
57
+ field-stratified evaluation, and end-to-end release qualification.
58
+ - Preserved the v0.3 typed request, response, CLI, hashes, and numeric evaluator.
59
+
60
+ ## 0.3.0 — 2026-08-29
61
+
62
+ - Added typed mathematical model contracts, exact support ranges, request IDs,
63
+ dimensional constraints, and deterministic family selection.
64
+ - Added scalar, Boolean, multivariate, transition, interaction, and temporal
65
+ model families with predictions and falsifiers.
66
+ - Added numeric evaluation for supported relation families without fitting
67
+ parameters or reading data.
68
+ - Added strict schemas, capabilities, duplicate-key rejection, bounded inputs,
69
+ packaging, CI, security guidance, and structural benchmarks.
@@ -0,0 +1,14 @@
1
+ cff-version: 1.2.0
2
+ title: "Deterministic Hypothesis Generation"
3
+ message: "If this software contributes to your work, please cite the repository."
4
+ type: software
5
+ authors:
6
+ - family-names: Dimurro
7
+ given-names: Chris
8
+ version: 0.5.0
9
+ date-released: 2026-09-01
10
+ repository-code: "https://github.com/cdimurro/hypothesis-generation"
11
+ license: Apache-2.0
12
+ abstract: >-
13
+ A deterministic engine that constructs typed, testable hypothesis candidates
14
+ from declared scientific knowledge and constraints without using LLMs.
@@ -0,0 +1,62 @@
1
+ # Contributing
2
+
3
+ Contributions should preserve the project's central contract: hypotheses are
4
+ generated by reproducible code with zero LLM calls, no hidden network access,
5
+ and no claim authority. The legacy typed core remains declaration-only. The
6
+ discovery layer may inspect only caller-supplied facts, observations, relation
7
+ edges, or explicit offline prior-art indexes.
8
+
9
+ ## Development
10
+
11
+ ```powershell
12
+ python -m pip install -e ".[test]"
13
+ $env:PYTHONPATH = "src"
14
+ python -m pytest -q
15
+ python -m ruff check src tests scripts examples
16
+ python -m ruff format --check src tests scripts examples
17
+ python scripts/verify_release.py
18
+ ```
19
+
20
+ Add a clean control and a planted dirty control for every new parser check,
21
+ eligibility rule, or safety guard. Add deterministic tests for every new
22
+ grammar family, including its variable kinds, units, parameter constraints,
23
+ shortfall behavior, and agent-protocol representation.
24
+
25
+ Do not add learned ranking, hidden corpus access, network calls, observation
26
+ inputs, fitted values, or callbacks to the legacy core request path. Hypothesis
27
+ strategies must keep their input provenance explicit and must not introduce
28
+ model clients or prose generation as hidden dependencies.
29
+
30
+ The 14 discovery modes are not a mode-count contest. New premise strategies
31
+ must define their typed inputs, graph operation, concept operator, prospective
32
+ fields, non-applicability behavior, provenance, structural cell, and ablation.
33
+ Do not disguise a canned sentence as premise invention. Keep optional solvers,
34
+ numerical libraries, scientific file formats, and non-LLM machine learning
35
+ behind explicit caller-supplied adapter
36
+ contracts with version, configuration, seed, environment, and data-partition
37
+ fingerprints.
38
+
39
+ Domain knowledge belongs in an explicitly selected declarative pack, not in
40
+ keyword rules in the neutral core. A reference-pack contribution needs an
41
+ exact-digest release manifest, positive and negative fixtures, competency
42
+ results, version history, license review, and genuine independent `DOMAIN` and
43
+ `SOFTWARE_FORMALISM` approvals. Tests may exercise synthetic or draft review
44
+ records, but maintainers must never invent people or approvals for a release.
45
+ Generative vocabulary must remain data-only, source-attributed, and unusable by
46
+ generation until the pack has completed both review roles. Executable hooks and
47
+ canned hypothesis fields are prohibited.
48
+
49
+ Any evaluation contribution must declare the task population, baselines,
50
+ controls, cutoff policy, calibration status, and non-claims. Preserve blind
51
+ packets until ratings are locked. Keep results field-stratified and do not turn
52
+ structural pass rates or heuristic selection scores into a universal
53
+ scientific-quality score.
54
+
55
+ ## Pull requests
56
+
57
+ Explain the scientific scope of each new family, its assumptions, the
58
+ prospective prediction, the falsifier, and any limits on numeric evaluation.
59
+ Do not describe deterministic generation as proof of novelty, truth, causality,
60
+ or experimental support. Update the changelog and schemas when the public
61
+ contract changes. Run `python scripts/verify_release.py` before requesting
62
+ review; it performs local-input-only package qualification and must stay green.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,12 @@
1
+ include CHANGELOG.md
2
+ include CITATION.cff
3
+ include CONTRIBUTING.md
4
+ include LICENSE
5
+ include NOTICE
6
+ include README.md
7
+ include SECURITY.md
8
+ recursive-include benchmarks *.json *.md
9
+ recursive-include docs *.md
10
+ recursive-include examples *.json
11
+ recursive-include examples *.py
12
+ recursive-include schemas *.json
@@ -0,0 +1,4 @@
1
+ Deterministic Hypothesis Generation
2
+ Copyright 2026 Chris Dimurro
3
+
4
+ This product is distributed under the Apache License, Version 2.0.
@@ -0,0 +1,280 @@
1
+ Metadata-Version: 2.4
2
+ Name: hypothesis-generation
3
+ Version: 0.5.0
4
+ Summary: Deterministic premise invention and hypothesis generation without LLMs.
5
+ Author: Chris Dimurro
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/cdimurro/hypothesis-generation
8
+ Project-URL: Repository, https://github.com/cdimurro/hypothesis-generation
9
+ Project-URL: Issues, https://github.com/cdimurro/hypothesis-generation/issues
10
+ Project-URL: Documentation, https://github.com/cdimurro/hypothesis-generation#readme
11
+ Keywords: science,hypothesis,research,deterministic,agents
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICE
26
+ Provides-Extra: test
27
+ Requires-Dist: pytest<9,>=8; extra == "test"
28
+ Requires-Dist: ruff<0.16,>=0.15; extra == "test"
29
+ Requires-Dist: jsonschema<5,>=4; extra == "test"
30
+ Requires-Dist: build<2,>=1; extra == "test"
31
+ Requires-Dist: setuptools>=77; extra == "test"
32
+ Dynamic: license-file
33
+
34
+ # Hypothesis Generation
35
+
36
+ **Generate novel, testable hypotheses without an LLM.**
37
+
38
+ Hypothesis Generation is a deterministic, programmable engine for scientists,
39
+ engineers, mathematicians, and research software teams. It constructs candidate
40
+ hypotheses from explicit observations, concepts, relations, constraints,
41
+ mechanisms, analogies, and domain knowledge.
42
+
43
+ The engine runs locally. It has no runtime model dependency, makes no network
44
+ requests, and does not sample from a pretrained distribution. The same request,
45
+ engine version, extension set, domain pack, and corpus snapshot produces the
46
+ same result.
47
+
48
+ ## Why it is different
49
+
50
+ Language models generate text from learned statistical patterns. This project
51
+ uses typed transformations, finite formal reasoning, constraint checks, bounded
52
+ search, and quality-diversity selection to construct hypotheses that were not
53
+ supplied as templates.
54
+
55
+ That makes each result reproducible and inspectable:
56
+
57
+ - domain facts come only from declared inputs, traceable corpora, formal rules,
58
+ or reviewed domain packs;
59
+ - invalid candidates can be rejected by explicit type, logic, graph,
60
+ dimensional, contradiction, and mechanism checks;
61
+ - requested portfolios are selected for structural coverage instead of padded
62
+ with paraphrases;
63
+ - novelty diagnostics are always relative to an identified corpus; and
64
+ - derivations, scores, provenance, tests, and archives are available when a
65
+ caller requests them.
66
+
67
+ The engine proposes candidates for investigation. Experiments, prior-art
68
+ review, safety review, and scientific judgment remain external responsibilities.
69
+
70
+ ## Install
71
+
72
+ Python 3.10 or later is required. The core has no runtime dependencies.
73
+
74
+ ```powershell
75
+ python -m pip install -e .
76
+ ```
77
+
78
+ The repository version can also be installed directly:
79
+
80
+ ```powershell
81
+ python -m pip install "hypothesis-generation @ git+https://github.com/cdimurro/hypothesis-generation.git"
82
+ ```
83
+
84
+ ## Quick start
85
+
86
+ The common API requires a phenomenon and a count:
87
+
88
+ ```python
89
+ from hypothesis_generation import generate_hypotheses
90
+
91
+ hypotheses = generate_hypotheses(
92
+ "urban heat islands remain hotter overnight after heat waves",
93
+ count=8,
94
+ )
95
+
96
+ for hypothesis in hypotheses:
97
+ print(hypothesis)
98
+ ```
99
+
100
+ The default output is a list of English hypotheses. Backend artifacts remain
101
+ hidden unless explicitly requested.
102
+
103
+ The equivalent command-line request is:
104
+
105
+ ```json
106
+ {
107
+ "phenomenon": "urban heat islands remain hotter overnight after heat waves",
108
+ "count": 8
109
+ }
110
+ ```
111
+
112
+ ```powershell
113
+ python -m hypothesis_generation --input request.json --pretty
114
+ ```
115
+
116
+ ## Add scientific structure
117
+
118
+ More explicit inputs produce more specific hypotheses:
119
+
120
+ ```python
121
+ from hypothesis_generation import ConceptSpec, DiscoveryRequest, RelationSpec, discover
122
+
123
+ request = DiscoveryRequest(
124
+ phenomenon="nighttime cooling slows after a heat wave",
125
+ count=4,
126
+ concepts=(
127
+ ConceptSpec("impervious surface fraction", "DRIVER"),
128
+ ConceptSpec("stored subsurface heat", "MEDIATOR"),
129
+ ConceptSpec("nighttime cooling rate", "OUTCOME"),
130
+ ),
131
+ relations=(
132
+ RelationSpec(
133
+ "impervious surface fraction",
134
+ "increases",
135
+ "stored subsurface heat",
136
+ ),
137
+ ),
138
+ )
139
+
140
+ result = discover(request)
141
+ print(result.as_dict())
142
+ ```
143
+
144
+ Requests can also declare known facts, observations, contexts, constraints,
145
+ prior hypotheses, analogy sources, causal structures, quantities, domain packs,
146
+ and a frozen prior-art corpus. Undeclared synonyms and domain facts are never
147
+ guessed.
148
+
149
+ See [the discovery API](docs/DISCOVERY.md) for request fields, response
150
+ projection, search budgets, persistence, and exhaustion behavior.
151
+
152
+ ## How generation works
153
+
154
+ 1. **Normalize the request.** Convert declared knowledge into typed concepts,
155
+ relations, constraints, mechanisms, quantities, and provenance records.
156
+ 2. **Invent premises.** Apply typed transformations and bounded multi-step
157
+ programs to propose mechanisms, missing bridges, alternatives, boundary
158
+ conditions, analogies, interventions, and counterexamples.
159
+ 3. **Generate candidates.** Explore fourteen complementary reasoning modes.
160
+ 4. **Test and constrain.** Reject candidates that fail applicable formal or
161
+ declared scientific checks.
162
+ 5. **Check prior art.** Compare candidates with a frozen local corpus using
163
+ exact, lexical, BM25, relation, and structural diagnostics.
164
+ 6. **Select a portfolio.** Optimize quality and structural coverage under a
165
+ declared ranking profile.
166
+ 7. **Render the result.** Return English hypotheses by default and only the
167
+ requested artifact fields when details are needed.
168
+
169
+ The fourteen public modes cover causal, abductive, temporal, systems, regime,
170
+ heterogeneity, measurement, invariant, contrastive, intervention, null-model,
171
+ relational, analogical, and compositional reasoning. They are search strategies
172
+ over one integrated premise-invention system, not sentence templates.
173
+
174
+ ## Large hypothesis campaigns
175
+
176
+ Persistent campaigns can generate exact portfolios of up to 10,000 unique
177
+ hypotheses when the admitted search pool is large enough. Results are returned
178
+ through deterministic, tamper-evident pages. If the requested total cannot be
179
+ produced without duplicates or cosmetic rewrites, the campaign reports search
180
+ exhaustion before returning a partial result.
181
+
182
+ Portfolio profiles include:
183
+
184
+ - `BALANCED`
185
+ - `DIVERSITY_FIRST`
186
+ - `NOVELTY_FIRST`
187
+ - `PLAUSIBILITY_FIRST`
188
+ - `TESTABILITY_FIRST`
189
+ - bounded caller-declared custom weights
190
+
191
+ Profiles change transparent ranking objectives; they do not load a learned
192
+ ranking model.
193
+
194
+ ## Prior-art comparison
195
+
196
+ The optional local prior-art index supports exact overlap, phrase containment,
197
+ token similarity, Okapi BM25, declared aliases, relation overlap, metadata
198
+ filters, date-bounded corpus views, and SQLite/FTS5 storage.
199
+
200
+ These diagnostics answer whether a candidate overlaps the supplied corpus.
201
+ They do not claim exhaustive or universal novelty.
202
+
203
+ ## Program it for an application
204
+
205
+ There are two extension paths:
206
+
207
+ - **Domain packs** add reviewed, data-only concepts, relations, rules, sources,
208
+ aliases, constraints, and generative vocabulary.
209
+ - **Extension bundles** add deterministic application code through
210
+ content-addressed manifests that bind source files, dependencies, and runtime
211
+ policy.
212
+
213
+ Starter domain-pack scaffolds are available for engineered-system reliability,
214
+ materials/process engineering, and systems biology:
215
+
216
+ ```powershell
217
+ hypothesis-generate --scaffold-domain-pack materials-process-engineering `
218
+ --output-directory packs/materials-process
219
+ ```
220
+
221
+ Scaffolds contain no facts or approvals and remain `AWAITING_REVIEW` until the
222
+ completed digest receives the required reviews. See [domain packs](docs/DOMAIN_PACKS.md)
223
+ and [extensions](docs/EXTENSIONS.md).
224
+
225
+ Optional scientific-computing and formal-solver adapters can be supplied by a
226
+ caller. They are never discovered, installed, or invoked implicitly.
227
+
228
+ ## Evaluation
229
+
230
+ The repository includes structural, historical, cross-domain, external, and
231
+ negative-control benchmarks. Selected pinned results are:
232
+
233
+ | Evaluation | Result | Scope |
234
+ |---|---:|---|
235
+ | Release qualification | 9/9 controls | Runtime boundary, campaigns, ranking, novelty, extensions, packs, evaluation, and legacy behavior |
236
+ | HypoSpace | 441/441 admissible targets | 88 Boolean, causal-graph, and voxel cases |
237
+ | HypoBench synthetic | 1,450/1,500 held-out rows | Nine classification cases |
238
+ | HypoBench real-world | 2,003/3,100 held-out; 1,431/2,593 OOD | Seven text-classification tasks |
239
+ | DiscoveryBench expanded | 8/24 strong; median sealed-test R-squared 0.727 | Systematic synthetic task sample |
240
+ | SRSD-Feynman portfolio | 37/50 strong; median test R-squared 0.876 | Recursive symbolic search with sealed test rows |
241
+ | External Premise Challenge | 11/12 generated and admitted; 5/12 public top-10 | Dated historical diagnostic across six fields |
242
+
243
+ These measurements apply only to the pinned files, grammars, budgets, and
244
+ evaluation rules. They are not estimates of general scientific truth or expert
245
+ preference. External metrics that require an LLM judge are reported as not run.
246
+
247
+ See [the benchmark guide](benchmarks/README.md), [evaluation kit](docs/EVALUATION_KIT.md),
248
+ and [scientific limitations](docs/SCIENTIFIC_LIMITATIONS.md).
249
+
250
+ ## Release status
251
+
252
+ Version 0.5 is a public beta. The deterministic core, packaging, compatibility,
253
+ and benchmark contracts are qualified; the complete suite passes 538 tests.
254
+ Version 1.0 is reserved for stable contracts informed by independent users,
255
+ reviewed reference domain packs, blind expert evaluation, and prospective
256
+ evidence in multiple fields.
257
+
258
+ The legacy v0.3 typed mathematical-model API remains supported. See
259
+ [release readiness](docs/RELEASE_READINESS.md), [release qualification](docs/RELEASE_QUALIFICATION.md),
260
+ and the [release plan](docs/RELEASE_PLAN.md).
261
+
262
+ ## Documentation
263
+
264
+ Start with the [documentation index](docs/README.md). Important references are:
265
+
266
+ - [Architecture and runtime boundary](docs/DESIGN.md)
267
+ - [Discovery API](docs/DISCOVERY.md)
268
+ - [Domain packs](docs/DOMAIN_PACKS.md)
269
+ - [Application extensions](docs/EXTENSIONS.md)
270
+ - [Agent protocol](docs/AGENT_PROTOCOL.md)
271
+ - [Scientific capabilities and limitations](docs/SCIENTIFIC_LIMITATIONS.md)
272
+ - [Release qualification](docs/RELEASE_QUALIFICATION.md)
273
+
274
+ ## Contributing
275
+
276
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) before adding an operator, family,
277
+ domain pack, adapter, or benchmark. Security guidance is in
278
+ [SECURITY.md](SECURITY.md).
279
+
280
+ Hypothesis Generation is released under the [Apache License 2.0](LICENSE).