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.
- hypothesis_generation-0.5.0/CHANGELOG.md +69 -0
- hypothesis_generation-0.5.0/CITATION.cff +14 -0
- hypothesis_generation-0.5.0/CONTRIBUTING.md +62 -0
- hypothesis_generation-0.5.0/LICENSE +201 -0
- hypothesis_generation-0.5.0/MANIFEST.in +12 -0
- hypothesis_generation-0.5.0/NOTICE +4 -0
- hypothesis_generation-0.5.0/PKG-INFO +280 -0
- hypothesis_generation-0.5.0/README.md +247 -0
- hypothesis_generation-0.5.0/SECURITY.md +34 -0
- hypothesis_generation-0.5.0/benchmarks/README.md +112 -0
- hypothesis_generation-0.5.0/benchmarks/cases.json +44 -0
- hypothesis_generation-0.5.0/benchmarks/discovery-cases.json +84 -0
- hypothesis_generation-0.5.0/benchmarks/expert-review-template.md +65 -0
- hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-cases.json +2018 -0
- hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-lock.json +13 -0
- hypothesis_generation-0.5.0/benchmarks/external-premise-challenge-sources.json +478 -0
- hypothesis_generation-0.5.0/benchmarks/external-sources.json +99 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/biology-enzyme-negative-request.json +24 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/biology-enzyme-request.json +26 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/computing-retry-negative-request.json +24 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/computing-retry-request.json +26 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/domain-pack-releases/biology-enzyme-path.release.json +54 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/domain-pack-releases/computing-retry-path.release.json +54 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/domain-packs/biology-enzyme-path.json +93 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/domain-packs/computing-retry-path.json +93 -0
- hypothesis_generation-0.5.0/benchmarks/fixtures/novelty-retrieval.json +78 -0
- hypothesis_generation-0.5.0/benchmarks/hard-benchmark-contract.json +56 -0
- hypothesis_generation-0.5.0/benchmarks/jump-cases.json +51 -0
- hypothesis_generation-0.5.0/benchmarks/portfolio-extension-cases.json +135 -0
- hypothesis_generation-0.5.0/benchmarks/premise-capability-cases.json +168 -0
- hypothesis_generation-0.5.0/benchmarks/premise-invention-cases.json +157 -0
- hypothesis_generation-0.5.0/benchmarks/release-qualification-cases.json +60 -0
- hypothesis_generation-0.5.0/benchmarks/results/discoverybench-hardening-qualification.json +60 -0
- hypothesis_generation-0.5.0/benchmarks/results/discoverybench-qualification.json +59 -0
- hypothesis_generation-0.5.0/benchmarks/results/external-benchmark-qualification.json +62 -0
- hypothesis_generation-0.5.0/benchmarks/results/external-premise-challenge-result.json +1663 -0
- hypothesis_generation-0.5.0/benchmarks/results/hypobench-qualification.json +62 -0
- hypothesis_generation-0.5.0/benchmarks/results/hypobench-real-qualification.json +51 -0
- hypothesis_generation-0.5.0/benchmarks/results/hypospace-qualification.json +41 -0
- hypothesis_generation-0.5.0/benchmarks/results/premise-invention-qualification.json +62 -0
- hypothesis_generation-0.5.0/benchmarks/results/recursive-discovery-qualification.json +69 -0
- hypothesis_generation-0.5.0/benchmarks/results/release-qualification-0.5.0.json +113 -0
- hypothesis_generation-0.5.0/benchmarks/results/srsd-feynman-hard-qualification.json +68 -0
- hypothesis_generation-0.5.0/benchmarks/scientific-evaluation-cases.json +45 -0
- hypothesis_generation-0.5.0/docs/ABDUCTION.md +35 -0
- hypothesis_generation-0.5.0/docs/AGENT_PROTOCOL.md +160 -0
- hypothesis_generation-0.5.0/docs/CAUSAL_DISCRIMINATION.md +17 -0
- hypothesis_generation-0.5.0/docs/CAUSAL_EQUIVALENCE.md +17 -0
- hypothesis_generation-0.5.0/docs/COUNTEREXAMPLES.md +31 -0
- hypothesis_generation-0.5.0/docs/DESIGN.md +128 -0
- hypothesis_generation-0.5.0/docs/DIMENSIONS.md +26 -0
- hypothesis_generation-0.5.0/docs/DISCOVERY.md +325 -0
- hypothesis_generation-0.5.0/docs/DOMAIN_PACKS.md +128 -0
- hypothesis_generation-0.5.0/docs/EQUATION_SEARCH.md +80 -0
- hypothesis_generation-0.5.0/docs/EVALUATION_KIT.md +30 -0
- hypothesis_generation-0.5.0/docs/EXPERIMENT_DESIGN.md +15 -0
- hypothesis_generation-0.5.0/docs/EXPERIMENT_GOVERNANCE.md +11 -0
- hypothesis_generation-0.5.0/docs/EXTENSIONS.md +77 -0
- hypothesis_generation-0.5.0/docs/EXTERNAL_PREMISE_CHALLENGE.md +83 -0
- hypothesis_generation-0.5.0/docs/EXTERNAL_PREMISE_CHALLENGE_PROTOCOL.md +80 -0
- hypothesis_generation-0.5.0/docs/FREEZE_MANIFESTS.md +20 -0
- hypothesis_generation-0.5.0/docs/HYPOTHESIS_GENERATION_SYSTEM.md +58 -0
- hypothesis_generation-0.5.0/docs/MECHANISMS.md +24 -0
- hypothesis_generation-0.5.0/docs/README.md +44 -0
- hypothesis_generation-0.5.0/docs/RELEASE_PLAN.md +33 -0
- hypothesis_generation-0.5.0/docs/RELEASE_QUALIFICATION.md +71 -0
- hypothesis_generation-0.5.0/docs/RELEASE_READINESS.md +73 -0
- hypothesis_generation-0.5.0/docs/SCIENTIFIC_COMPUTE_ADAPTERS.md +24 -0
- hypothesis_generation-0.5.0/docs/SCIENTIFIC_LIMITATIONS.md +166 -0
- hypothesis_generation-0.5.0/docs/SOLVER_ADAPTERS.md +33 -0
- hypothesis_generation-0.5.0/docs/TEMPORAL_EVALUATION.md +68 -0
- hypothesis_generation-0.5.0/docs/THEORY_REVISION.md +35 -0
- hypothesis_generation-0.5.0/examples/application_extension.py +84 -0
- hypothesis_generation-0.5.0/examples/application_extension_manifest.json +13 -0
- hypothesis_generation-0.5.0/examples/boolean_condition.json +22 -0
- hypothesis_generation-0.5.0/examples/classification_rule_discovery.json +29 -0
- hypothesis_generation-0.5.0/examples/ecology_species_area.json +51 -0
- hypothesis_generation-0.5.0/examples/generic_portfolio.json +7 -0
- hypothesis_generation-0.5.0/examples/jump_history_discovery.py +81 -0
- hypothesis_generation-0.5.0/examples/microbiology_monod.json +43 -0
- hypothesis_generation-0.5.0/examples/premise_invention.py +28 -0
- hypothesis_generation-0.5.0/examples/recursive_symbolic_discovery.json +42 -0
- hypothesis_generation-0.5.0/examples/scalar_relation.json +26 -0
- hypothesis_generation-0.5.0/examples/service_failure_relations.json +22 -0
- hypothesis_generation-0.5.0/examples/superconducting_transition.json +51 -0
- hypothesis_generation-0.5.0/examples/urban_heat_discovery.json +28 -0
- hypothesis_generation-0.5.0/pyproject.toml +61 -0
- hypothesis_generation-0.5.0/schemas/abduction-result.schema.json +153 -0
- hypothesis_generation-0.5.0/schemas/abductive-world.schema.json +201 -0
- hypothesis_generation-0.5.0/schemas/causal-dag.schema.json +116 -0
- hypothesis_generation-0.5.0/schemas/causal-discrimination-result.schema.json +109 -0
- hypothesis_generation-0.5.0/schemas/causal-equivalence-result.schema.json +98 -0
- hypothesis_generation-0.5.0/schemas/counterfactual-design.schema.json +13 -0
- hypothesis_generation-0.5.0/schemas/dimensional-analysis-result.schema.json +77 -0
- hypothesis_generation-0.5.0/schemas/discovery-cycle.schema.json +8 -0
- hypothesis_generation-0.5.0/schemas/discovery-error.schema.json +78 -0
- hypothesis_generation-0.5.0/schemas/discovery-extension-conformance.schema.json +37 -0
- hypothesis_generation-0.5.0/schemas/discovery-extension.schema.json +38 -0
- hypothesis_generation-0.5.0/schemas/discovery-request.schema.json +188 -0
- hypothesis_generation-0.5.0/schemas/discovery-response.schema.json +239 -0
- hypothesis_generation-0.5.0/schemas/domain-pack-release.schema.json +147 -0
- hypothesis_generation-0.5.0/schemas/domain-pack-scaffold.schema.json +44 -0
- hypothesis_generation-0.5.0/schemas/domain-pack.schema.json +261 -0
- hypothesis_generation-0.5.0/schemas/exact-search-result.schema.json +47 -0
- hypothesis_generation-0.5.0/schemas/executable-theory.schema.json +65 -0
- hypothesis_generation-0.5.0/schemas/experiment-design-result.schema.json +164 -0
- hypothesis_generation-0.5.0/schemas/experiment-governance-result.schema.json +158 -0
- hypothesis_generation-0.5.0/schemas/extension-bundle-verification.schema.json +23 -0
- hypothesis_generation-0.5.0/schemas/extension-bundle.schema.json +44 -0
- hypothesis_generation-0.5.0/schemas/external-benchmark-source-manifest.schema.json +64 -0
- hypothesis_generation-0.5.0/schemas/external-premise-blind-review.schema.json +43 -0
- hypothesis_generation-0.5.0/schemas/external-premise-challenge-cases.schema.json +104 -0
- hypothesis_generation-0.5.0/schemas/external-premise-challenge-lock.schema.json +25 -0
- hypothesis_generation-0.5.0/schemas/external-premise-challenge-result.schema.json +20 -0
- hypothesis_generation-0.5.0/schemas/external-premise-challenge-sources.schema.json +53 -0
- hypothesis_generation-0.5.0/schemas/freeze-manifest.schema.json +95 -0
- hypothesis_generation-0.5.0/schemas/frozen-theory-archive.schema.json +11 -0
- hypothesis_generation-0.5.0/schemas/generation-request.schema.json +147 -0
- hypothesis_generation-0.5.0/schemas/generation-response.schema.json +191 -0
- hypothesis_generation-0.5.0/schemas/hard-benchmark-contract.schema.json +95 -0
- hypothesis_generation-0.5.0/schemas/hypothesis-campaign-page.schema.json +29 -0
- hypothesis_generation-0.5.0/schemas/hypothesis-campaign.schema.json +56 -0
- hypothesis_generation-0.5.0/schemas/hypothesis-grammar.schema.json +45 -0
- hypothesis_generation-0.5.0/schemas/hypothesis-handoff.schema.json +90 -0
- hypothesis_generation-0.5.0/schemas/independent-evaluation-freeze.schema.json +25 -0
- hypothesis_generation-0.5.0/schemas/jump-benchmark-result.schema.json +29 -0
- hypothesis_generation-0.5.0/schemas/jump-capabilities.schema.json +115 -0
- hypothesis_generation-0.5.0/schemas/jump-freeze-bundle.schema.json +10 -0
- hypothesis_generation-0.5.0/schemas/jump-ledger-event.schema.json +11 -0
- hypothesis_generation-0.5.0/schemas/jump-request.schema.json +10 -0
- hypothesis_generation-0.5.0/schemas/jump-response.schema.json +6 -0
- hypothesis_generation-0.5.0/schemas/ledger-event.schema.json +48 -0
- hypothesis_generation-0.5.0/schemas/mechanism.schema.json +141 -0
- hypothesis_generation-0.5.0/schemas/portfolio-calibration.schema.json +55 -0
- hypothesis_generation-0.5.0/schemas/portfolio-extension-cases.schema.json +57 -0
- hypothesis_generation-0.5.0/schemas/premise-capability-cases.schema.json +28 -0
- hypothesis_generation-0.5.0/schemas/premise-invention-benchmark.schema.json +125 -0
- hypothesis_generation-0.5.0/schemas/premise-invention.schema.json +168 -0
- hypothesis_generation-0.5.0/schemas/premise-program.schema.json +79 -0
- hypothesis_generation-0.5.0/schemas/recursive-symbolic-search-result.schema.json +128 -0
- hypothesis_generation-0.5.0/schemas/release-qualification-cases.schema.json +53 -0
- hypothesis_generation-0.5.0/schemas/representation-invention-result.schema.json +16 -0
- hypothesis_generation-0.5.0/schemas/retrieval-evaluation.schema.json +63 -0
- hypothesis_generation-0.5.0/schemas/scientific-compute-run.schema.json +265 -0
- hypothesis_generation-0.5.0/schemas/scientific-evaluation.schema.json +206 -0
- hypothesis_generation-0.5.0/schemas/solver-run.schema.json +146 -0
- hypothesis_generation-0.5.0/schemas/structured-hypothesis.schema.json +139 -0
- hypothesis_generation-0.5.0/schemas/temporal-evaluation-result.schema.json +90 -0
- hypothesis_generation-0.5.0/schemas/temporal-evaluation-seal.schema.json +117 -0
- hypothesis_generation-0.5.0/schemas/theory-map-elites.schema.json +13 -0
- hypothesis_generation-0.5.0/schemas/theory-synthesis-result.schema.json +15 -0
- hypothesis_generation-0.5.0/schemas/universal-discovery-request.schema.json +43 -0
- hypothesis_generation-0.5.0/schemas/universal-discovery-response.schema.json +36 -0
- hypothesis_generation-0.5.0/setup.cfg +4 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/__init__.py +1152 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/__main__.py +5 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/cli.py +488 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/__init__.py +1422 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/abduction.py +596 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/api.py +438 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/approximate_symbolic_search.py +540 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/backtest.py +182 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/campaigns.py +488 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal.py +554 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal_discrimination.py +366 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/causal_uncertainty.py +341 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/classification_synthesis.py +626 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/counterexamples.py +576 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/dimensions.py +392 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/discoverybench_benchmark.py +944 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/domain_pack_review.py +638 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/domain_packs.py +1133 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/engines.py +1183 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/equations.py +518 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/exact_search.py +527 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/experiment_design.py +507 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/experiments.py +130 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/extension_bundles.py +540 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/extensions.py +514 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/external_premise_challenge.py +1839 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/freeze.py +456 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/frozen_discovery.py +200 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/governance.py +417 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/handoff.py +321 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypobench_benchmark.py +496 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypobench_real_benchmark.py +602 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypospace_benchmark.py +487 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/hypothesis_algebra.py +1251 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/independent_evaluation.py +470 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/ir.py +1492 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_api.py +535 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_benchmarks.py +629 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_contracts.py +103 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_cycles.py +368 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_experiments.py +350 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_freeze.py +325 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_ledger.py +489 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_novelty.py +463 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_quality_diversity.py +570 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_representation.py +601 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_synthesis.py +520 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_theory.py +1258 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/jump_world.py +891 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/ledger.py +694 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/legacy_adapter.py +126 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/lexical_discovery.py +338 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/literature_discovery.py +533 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/mechanisms.py +650 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/models.py +1101 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/novelty.py +1168 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/numeric_synthesis.py +1253 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/pack_scaffolds.py +288 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio.py +441 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_calibration.py +162 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_extension_benchmark.py +233 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/portfolio_profiles.py +145 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_benchmark.py +532 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_capability_benchmark.py +277 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_checks.py +257 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_invention.py +1339 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_ir.py +834 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_programs.py +585 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/premise_registry.py +643 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/query_grounding.py +306 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/recursive_symbolic_search.py +1707 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/relational.py +343 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/release_qualification_benchmark.py +315 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/revision.py +544 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/scientific_adapters.py +627 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/scientific_evaluation.py +302 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/search.py +525 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/solver_adapters.py +376 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/srsd_benchmark.py +501 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/srsd_recursive_benchmark.py +597 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/tabular_diagnostics.py +206 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/temporal_evaluation.py +677 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/universal.py +1639 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/discovery/workspace.py +617 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/engine.py +118 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/grammar.py +2012 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/models.py +1470 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation/version.py +7 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/PKG-INFO +280 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/SOURCES.txt +326 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/dependency_links.txt +1 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/entry_points.txt +2 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/requires.txt +7 -0
- hypothesis_generation-0.5.0/src/hypothesis_generation.egg-info/top_level.txt +1 -0
- hypothesis_generation-0.5.0/tests/test_abduction.py +204 -0
- hypothesis_generation-0.5.0/tests/test_approximate_symbolic_search.py +65 -0
- hypothesis_generation-0.5.0/tests/test_artifact_ledger.py +274 -0
- hypothesis_generation-0.5.0/tests/test_benchmark.py +28 -0
- hypothesis_generation-0.5.0/tests/test_campaigns.py +115 -0
- hypothesis_generation-0.5.0/tests/test_causal_discrimination.py +224 -0
- hypothesis_generation-0.5.0/tests/test_causal_equivalence.py +230 -0
- hypothesis_generation-0.5.0/tests/test_causal_uncertainty.py +103 -0
- hypothesis_generation-0.5.0/tests/test_classification_synthesis.py +194 -0
- hypothesis_generation-0.5.0/tests/test_cli.py +277 -0
- hypothesis_generation-0.5.0/tests/test_constrained_bridge.py +143 -0
- hypothesis_generation-0.5.0/tests/test_core_boundary.py +7 -0
- hypothesis_generation-0.5.0/tests/test_counterexamples.py +178 -0
- hypothesis_generation-0.5.0/tests/test_declared_aliases.py +115 -0
- hypothesis_generation-0.5.0/tests/test_dimensions.py +186 -0
- hypothesis_generation-0.5.0/tests/test_discovery.py +512 -0
- hypothesis_generation-0.5.0/tests/test_discovery_benchmark.py +31 -0
- hypothesis_generation-0.5.0/tests/test_discovery_extensions.py +232 -0
- hypothesis_generation-0.5.0/tests/test_discoverybench_benchmark.py +167 -0
- hypothesis_generation-0.5.0/tests/test_domain_pack_release.py +216 -0
- hypothesis_generation-0.5.0/tests/test_domain_packs.py +352 -0
- hypothesis_generation-0.5.0/tests/test_equation_search.py +172 -0
- hypothesis_generation-0.5.0/tests/test_exact_search.py +148 -0
- hypothesis_generation-0.5.0/tests/test_experiment_design.py +318 -0
- hypothesis_generation-0.5.0/tests/test_experiment_governance.py +302 -0
- hypothesis_generation-0.5.0/tests/test_experiments_and_backtest.py +90 -0
- hypothesis_generation-0.5.0/tests/test_extension_bundles.py +109 -0
- hypothesis_generation-0.5.0/tests/test_extension_example.py +17 -0
- hypothesis_generation-0.5.0/tests/test_external_benchmark_contracts.py +162 -0
- hypothesis_generation-0.5.0/tests/test_external_premise_challenge.py +458 -0
- hypothesis_generation-0.5.0/tests/test_formal_reasoning_workflow.py +85 -0
- hypothesis_generation-0.5.0/tests/test_freeze_manifest.py +314 -0
- hypothesis_generation-0.5.0/tests/test_horn_rule_discovery.py +192 -0
- hypothesis_generation-0.5.0/tests/test_hypobench_benchmark.py +128 -0
- hypothesis_generation-0.5.0/tests/test_hypobench_real_benchmark.py +101 -0
- hypothesis_generation-0.5.0/tests/test_hypospace_benchmark.py +109 -0
- hypothesis_generation-0.5.0/tests/test_hypothesis_algebra.py +183 -0
- hypothesis_generation-0.5.0/tests/test_hypothesis_handoff.py +99 -0
- hypothesis_generation-0.5.0/tests/test_independent_evaluation.py +141 -0
- hypothesis_generation-0.5.0/tests/test_jump_benchmarks.py +86 -0
- hypothesis_generation-0.5.0/tests/test_jump_contracts.py +89 -0
- hypothesis_generation-0.5.0/tests/test_jump_representation.py +1056 -0
- hypothesis_generation-0.5.0/tests/test_jump_theory.py +292 -0
- hypothesis_generation-0.5.0/tests/test_jump_world.py +246 -0
- hypothesis_generation-0.5.0/tests/test_legacy_adapter.py +85 -0
- hypothesis_generation-0.5.0/tests/test_lexical_discovery.py +75 -0
- hypothesis_generation-0.5.0/tests/test_literature_discovery.py +131 -0
- hypothesis_generation-0.5.0/tests/test_mechanisms.py +342 -0
- hypothesis_generation-0.5.0/tests/test_model_contract.py +345 -0
- hypothesis_generation-0.5.0/tests/test_models_and_engine.py +288 -0
- hypothesis_generation-0.5.0/tests/test_novelty_metrics.py +364 -0
- hypothesis_generation-0.5.0/tests/test_numeric_synthesis.py +425 -0
- hypothesis_generation-0.5.0/tests/test_pack_scaffolds.py +81 -0
- hypothesis_generation-0.5.0/tests/test_portfolio_extension_benchmark.py +41 -0
- hypothesis_generation-0.5.0/tests/test_portfolio_optimizer.py +93 -0
- hypothesis_generation-0.5.0/tests/test_portfolio_profiles.py +187 -0
- hypothesis_generation-0.5.0/tests/test_premise_benchmark.py +78 -0
- hypothesis_generation-0.5.0/tests/test_premise_capability_benchmark.py +38 -0
- hypothesis_generation-0.5.0/tests/test_premise_checks.py +131 -0
- hypothesis_generation-0.5.0/tests/test_premise_integration.py +183 -0
- hypothesis_generation-0.5.0/tests/test_premise_invention.py +189 -0
- hypothesis_generation-0.5.0/tests/test_premise_ir.py +172 -0
- hypothesis_generation-0.5.0/tests/test_premise_programs.py +128 -0
- hypothesis_generation-0.5.0/tests/test_premise_retention.py +66 -0
- hypothesis_generation-0.5.0/tests/test_query_grounding.py +145 -0
- hypothesis_generation-0.5.0/tests/test_recursive_symbolic_search.py +335 -0
- hypothesis_generation-0.5.0/tests/test_relational_discovery.py +114 -0
- hypothesis_generation-0.5.0/tests/test_release_qualification_benchmark.py +68 -0
- hypothesis_generation-0.5.0/tests/test_scientific_adapters.py +304 -0
- hypothesis_generation-0.5.0/tests/test_scientific_evaluation.py +100 -0
- hypothesis_generation-0.5.0/tests/test_scientific_examples.py +57 -0
- hypothesis_generation-0.5.0/tests/test_scientific_ir.py +215 -0
- hypothesis_generation-0.5.0/tests/test_solver_adapters.py +188 -0
- hypothesis_generation-0.5.0/tests/test_srsd_benchmark.py +80 -0
- hypothesis_generation-0.5.0/tests/test_srsd_recursive_benchmark.py +86 -0
- hypothesis_generation-0.5.0/tests/test_tabular_diagnostics.py +63 -0
- hypothesis_generation-0.5.0/tests/test_temporal_evaluation.py +439 -0
- hypothesis_generation-0.5.0/tests/test_theory_revision.py +262 -0
- hypothesis_generation-0.5.0/tests/test_universal_discovery.py +316 -0
- 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,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).
|