Skip to content

Commit d716cd6

Browse files
committed
Theorem, ptheoremn, more zf, real seqeunces
1 parent 9de057e commit d716cd6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/kdrag/tactics.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ def intros(self) -> smt.ExprRef | list[smt.ExprRef] | Goal:
584584
goalctx = self.top_goal()
585585
goal = goalctx.goal
586586
ctx = goalctx.ctx
587+
# TODO: Let's remove this
587588
if isinstance(goal, smt.QuantifierRef) and goal.is_forall():
588589
return self.fixes()
589590
self.pop_goal()
@@ -625,7 +626,15 @@ def intros(self) -> smt.ExprRef | list[smt.ExprRef] | Goal:
625626
raise ValueError("Intros failed.")
626627

627628
def assumes(self, hyp: smt.BoolRef):
629+
"""
630+
631+
>>> p,q = smt.Bools("p q")
632+
>>> l = Lemma(smt.Implies(p, q))
633+
>>> l.assumes(p)
634+
[p] ?|= q
635+
"""
628636
goalctx = self.intros()
637+
assert isinstance(goalctx, Goal)
629638
if goalctx.ctx[-1].eq(hyp):
630639
return goalctx
631640
else:

src/kdrag/theories/real/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import kdrag.smt as smt
88
import kdrag.theories.set as set_
9-
from kdrag.smt import ForAll, Function
9+
from kdrag.smt import ForAll
1010
import kdrag as kd
1111
import kdrag.property as prop
1212

0 commit comments

Comments
 (0)