From 26da267b732e28e4d9697278e735b410e50e5e08 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Thu, 2 Apr 2026 04:10:53 +0800 Subject: Initial commit: Build project architecture, define interfaces, write documentation, with the help of Claude --- src/core/clause_store.cc | 19 +++++++++++++++++++ src/core/symbol_table.cc | 19 +++++++++++++++++++ src/core/term_bank.cc | 19 +++++++++++++++++++ src/frontend/tptp_parser.cc | 19 +++++++++++++++++++ src/index/discrim_tree.cc | 19 +++++++++++++++++++ src/infer/resolution.cc | 19 +++++++++++++++++++ src/infer/unification.cc | 19 +++++++++++++++++++ src/main.cc | 19 +++++++++++++++++++ src/normalize/clausifier.cc | 19 +++++++++++++++++++ src/proof/proof_trace.cc | 19 +++++++++++++++++++ src/rewrite/ordering.cc | 19 +++++++++++++++++++ src/rewrite/paramodulation.cc | 19 +++++++++++++++++++ src/search/prover.cc | 19 +++++++++++++++++++ src/simplify/subsumption.cc | 19 +++++++++++++++++++ src/strategy/problem_analyzer.cc | 19 +++++++++++++++++++ 15 files changed, 285 insertions(+) create mode 100644 src/core/clause_store.cc create mode 100644 src/core/symbol_table.cc create mode 100644 src/core/term_bank.cc create mode 100644 src/frontend/tptp_parser.cc create mode 100644 src/index/discrim_tree.cc create mode 100644 src/infer/resolution.cc create mode 100644 src/infer/unification.cc create mode 100644 src/main.cc create mode 100644 src/normalize/clausifier.cc create mode 100644 src/proof/proof_trace.cc create mode 100644 src/rewrite/ordering.cc create mode 100644 src/rewrite/paramodulation.cc create mode 100644 src/search/prover.cc create mode 100644 src/simplify/subsumption.cc create mode 100644 src/strategy/problem_analyzer.cc (limited to 'src') diff --git a/src/core/clause_store.cc b/src/core/clause_store.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/core/clause_store.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/core/symbol_table.cc b/src/core/symbol_table.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/core/symbol_table.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/core/term_bank.cc b/src/core/term_bank.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/core/term_bank.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/frontend/tptp_parser.cc b/src/frontend/tptp_parser.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/frontend/tptp_parser.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/index/discrim_tree.cc b/src/index/discrim_tree.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/index/discrim_tree.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/infer/resolution.cc b/src/infer/resolution.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/infer/resolution.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/infer/unification.cc b/src/infer/unification.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/infer/unification.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/main.cc b/src/main.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/main.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/normalize/clausifier.cc b/src/normalize/clausifier.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/normalize/clausifier.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/proof/proof_trace.cc b/src/proof/proof_trace.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/proof/proof_trace.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/rewrite/ordering.cc b/src/rewrite/ordering.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/rewrite/ordering.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/rewrite/paramodulation.cc b/src/rewrite/paramodulation.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/rewrite/paramodulation.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/search/prover.cc b/src/search/prover.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/search/prover.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/simplify/subsumption.cc b/src/simplify/subsumption.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/simplify/subsumption.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + diff --git a/src/strategy/problem_analyzer.cc b/src/strategy/problem_analyzer.cc new file mode 100644 index 0000000..b62ffd0 --- /dev/null +++ b/src/strategy/problem_analyzer.cc @@ -0,0 +1,19 @@ +/* + * richard-atp-engine: A saturation-based automated theorem prover for first-order logic. + * Copyright (C) 2026 Richard Qin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + -- cgit v1.2.3