Skip to content

Commit

Permalink
added proof to base solver
Browse files Browse the repository at this point in the history
  • Loading branch information
philzook58 committed Sep 27, 2024
1 parent cda02d2 commit f1ef7b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kdrag/solvers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def check(self):
def unsat_core(self):
raise NotImplementedError

def proof(self):
return self.res.stdout

def set(self, option, value):
self.options[option] = value

Expand Down
6 changes: 5 additions & 1 deletion kdrag/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from kdrag.kernel import is_proof
import kdrag.smt as smt
import subprocess
import sys
import kdrag as kd
from typing import Optional
Expand Down Expand Up @@ -205,6 +204,11 @@ def sort_to_tptp(sort: smt.SortRef):
return name.lower()


def expr_to_lean(expr: smt.ExprRef):
# TODO
pass


def subterms(t: smt.ExprRef):
todo = [t]
while len(todo) > 0:
Expand Down

0 comments on commit f1ef7b6

Please sign in to comment.