File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 66
77import kdrag .smt as smt
88import kdrag .theories .set as set_
9- from kdrag .smt import ForAll , Function
9+ from kdrag .smt import ForAll
1010import kdrag as kd
1111import kdrag .property as prop
1212
You can’t perform that action at this time.
0 commit comments