├── .env-example ├── .gitignore ├── .gitmodules ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── agent ├── __init__.py ├── codegen │ └── indent.py ├── logic │ ├── __init__.py │ ├── agent.py │ ├── cbmc_search_engine_strategy.py │ ├── engine_strategy.py │ ├── folio_benchmark.py │ ├── logic_py_c_constraint_generator.py │ ├── logic_py_c_data_structure_generator.py │ ├── logic_py_c_harness_generator.py │ ├── logic_py_smt_constraint_generator.py │ ├── logic_py_smt_data_structure_generator.py │ ├── logic_py_smt_harness_generator.py │ ├── model_only.py │ ├── solver.py │ ├── tests │ │ ├── __init__.py │ │ ├── test_agent.py │ │ ├── test_folio_benchmark.py │ │ ├── test_logic_py_c_constraint_generator.py │ │ ├── test_logic_py_c_data_structure_generator.py │ │ ├── test_logic_py_c_harness_generator.py │ │ ├── test_logic_py_smt_constraint_generator.py │ │ ├── test_logic_py_smt_data_structure_generator.py │ │ ├── test_logic_py_smt_harness_generator.py │ │ ├── test_model_only.py │ │ ├── test_sequence_puzzle.py │ │ └── test_zebra_benchmark.py │ ├── z3_conclusion_check_engine_strategy.py │ └── zebra_benchmark.py └── symex │ ├── boolean.py │ ├── collect_unique_ids.py │ ├── module_with_type_info_factory.py │ ├── propagate_unique.py │ ├── scope.py │ ├── tests │ ├── test_collect_unique_ids.py │ ├── test_module_with_type_info_factory.py │ ├── test_propagate_unique.py │ ├── test_scope.py │ └── test_unique_aliasing.py │ ├── unique.py │ └── unique_aliasing.py ├── concurrency ├── async_pool.py └── subprocess.py ├── encoding └── encoding.py ├── environment.yml ├── inference ├── __init__.py ├── chat_completion.py ├── chat_completion_factory.py ├── client.py ├── dummy_chat_completion.py ├── finish_reason.py └── tests │ ├── __init__.py │ ├── mock_chat_completion.py │ └── test_client.py ├── judge └── result_trace.py ├── logger └── logger_factory.py ├── plugin └── plugin_loader.py ├── scripts └── setup.sh ├── server ├── agent_chat_api.py ├── main.py └── openapi.yaml.diff └── training ├── cbmc_scorer_vc_factory.py ├── dummy_sample_output_converter.py ├── logic_rl_training_dialog.py ├── lowercase_json.py ├── sample_output_converter.py ├── sample_output_converter_factory.py ├── scorer_vc_sample_generator.py ├── scorer_vc_sample_parser.py ├── scorer_vc_sample_parser_factory.py ├── tests ├── test_lowercase_json.py └── test_training_data_structure_converter.py └── training_data_structure_converter.py /.env-example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/.env-example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/.gitmodules -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/README.md -------------------------------------------------------------------------------- /agent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/__init__.py -------------------------------------------------------------------------------- /agent/codegen/indent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/codegen/indent.py -------------------------------------------------------------------------------- /agent/logic/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/__init__.py -------------------------------------------------------------------------------- /agent/logic/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/agent.py -------------------------------------------------------------------------------- /agent/logic/cbmc_search_engine_strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/cbmc_search_engine_strategy.py -------------------------------------------------------------------------------- /agent/logic/engine_strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/engine_strategy.py -------------------------------------------------------------------------------- /agent/logic/folio_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/folio_benchmark.py -------------------------------------------------------------------------------- /agent/logic/logic_py_c_constraint_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_c_constraint_generator.py -------------------------------------------------------------------------------- /agent/logic/logic_py_c_data_structure_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_c_data_structure_generator.py -------------------------------------------------------------------------------- /agent/logic/logic_py_c_harness_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_c_harness_generator.py -------------------------------------------------------------------------------- /agent/logic/logic_py_smt_constraint_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_smt_constraint_generator.py -------------------------------------------------------------------------------- /agent/logic/logic_py_smt_data_structure_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_smt_data_structure_generator.py -------------------------------------------------------------------------------- /agent/logic/logic_py_smt_harness_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/logic_py_smt_harness_generator.py -------------------------------------------------------------------------------- /agent/logic/model_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/model_only.py -------------------------------------------------------------------------------- /agent/logic/solver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/solver.py -------------------------------------------------------------------------------- /agent/logic/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/__init__.py -------------------------------------------------------------------------------- /agent/logic/tests/test_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_agent.py -------------------------------------------------------------------------------- /agent/logic/tests/test_folio_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_folio_benchmark.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_c_constraint_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_c_constraint_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_c_data_structure_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_c_data_structure_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_c_harness_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_c_harness_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_smt_constraint_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_smt_constraint_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_smt_data_structure_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_smt_data_structure_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_logic_py_smt_harness_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_logic_py_smt_harness_generator.py -------------------------------------------------------------------------------- /agent/logic/tests/test_model_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_model_only.py -------------------------------------------------------------------------------- /agent/logic/tests/test_sequence_puzzle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_sequence_puzzle.py -------------------------------------------------------------------------------- /agent/logic/tests/test_zebra_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/tests/test_zebra_benchmark.py -------------------------------------------------------------------------------- /agent/logic/z3_conclusion_check_engine_strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/z3_conclusion_check_engine_strategy.py -------------------------------------------------------------------------------- /agent/logic/zebra_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/logic/zebra_benchmark.py -------------------------------------------------------------------------------- /agent/symex/boolean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/boolean.py -------------------------------------------------------------------------------- /agent/symex/collect_unique_ids.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/collect_unique_ids.py -------------------------------------------------------------------------------- /agent/symex/module_with_type_info_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/module_with_type_info_factory.py -------------------------------------------------------------------------------- /agent/symex/propagate_unique.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/propagate_unique.py -------------------------------------------------------------------------------- /agent/symex/scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/scope.py -------------------------------------------------------------------------------- /agent/symex/tests/test_collect_unique_ids.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/tests/test_collect_unique_ids.py -------------------------------------------------------------------------------- /agent/symex/tests/test_module_with_type_info_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/tests/test_module_with_type_info_factory.py -------------------------------------------------------------------------------- /agent/symex/tests/test_propagate_unique.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/tests/test_propagate_unique.py -------------------------------------------------------------------------------- /agent/symex/tests/test_scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/tests/test_scope.py -------------------------------------------------------------------------------- /agent/symex/tests/test_unique_aliasing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/tests/test_unique_aliasing.py -------------------------------------------------------------------------------- /agent/symex/unique.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/unique.py -------------------------------------------------------------------------------- /agent/symex/unique_aliasing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/agent/symex/unique_aliasing.py -------------------------------------------------------------------------------- /concurrency/async_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/concurrency/async_pool.py -------------------------------------------------------------------------------- /concurrency/subprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/concurrency/subprocess.py -------------------------------------------------------------------------------- /encoding/encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/encoding/encoding.py -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/environment.yml -------------------------------------------------------------------------------- /inference/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/__init__.py -------------------------------------------------------------------------------- /inference/chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/chat_completion.py -------------------------------------------------------------------------------- /inference/chat_completion_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/chat_completion_factory.py -------------------------------------------------------------------------------- /inference/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/client.py -------------------------------------------------------------------------------- /inference/dummy_chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/dummy_chat_completion.py -------------------------------------------------------------------------------- /inference/finish_reason.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/finish_reason.py -------------------------------------------------------------------------------- /inference/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/tests/__init__.py -------------------------------------------------------------------------------- /inference/tests/mock_chat_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/tests/mock_chat_completion.py -------------------------------------------------------------------------------- /inference/tests/test_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/inference/tests/test_client.py -------------------------------------------------------------------------------- /judge/result_trace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/judge/result_trace.py -------------------------------------------------------------------------------- /logger/logger_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/logger/logger_factory.py -------------------------------------------------------------------------------- /plugin/plugin_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/plugin/plugin_loader.py -------------------------------------------------------------------------------- /scripts/setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/scripts/setup.sh -------------------------------------------------------------------------------- /server/agent_chat_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/server/agent_chat_api.py -------------------------------------------------------------------------------- /server/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/server/main.py -------------------------------------------------------------------------------- /server/openapi.yaml.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/server/openapi.yaml.diff -------------------------------------------------------------------------------- /training/cbmc_scorer_vc_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/cbmc_scorer_vc_factory.py -------------------------------------------------------------------------------- /training/dummy_sample_output_converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/dummy_sample_output_converter.py -------------------------------------------------------------------------------- /training/logic_rl_training_dialog.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/logic_rl_training_dialog.py -------------------------------------------------------------------------------- /training/lowercase_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/lowercase_json.py -------------------------------------------------------------------------------- /training/sample_output_converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/sample_output_converter.py -------------------------------------------------------------------------------- /training/sample_output_converter_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/sample_output_converter_factory.py -------------------------------------------------------------------------------- /training/scorer_vc_sample_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/scorer_vc_sample_generator.py -------------------------------------------------------------------------------- /training/scorer_vc_sample_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/scorer_vc_sample_parser.py -------------------------------------------------------------------------------- /training/scorer_vc_sample_parser_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/scorer_vc_sample_parser_factory.py -------------------------------------------------------------------------------- /training/tests/test_lowercase_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/tests/test_lowercase_json.py -------------------------------------------------------------------------------- /training/tests/test_training_data_structure_converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/tests/test_training_data_structure_converter.py -------------------------------------------------------------------------------- /training/training_data_structure_converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/polymath/HEAD/training/training_data_structure_converter.py --------------------------------------------------------------------------------