Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/itp_interface/rl/simple_proof_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def _foward_to_lemma_proof(self):
lemma_name = self._dynamic_proof_executor.get_lemma_name_if_running()
if lemma_name is not None:
lemma_name = lemma_name.strip()
lemma_found = lemma_name.startswith(self.lemma_name) if lemma_name is not None else False
lemma_found = lemma_name == self.lemma_name if lemma_name is not None else False
if not lemma_found:
_ = list(self._dynamic_proof_executor.run_to_finish_lemma_return_exec())
if self._dynamic_proof_executor.execution_complete:
Expand All @@ -544,7 +544,7 @@ def _foward_to_lemma_proof(self):
lemma_name = self._dynamic_proof_executor.get_lemma_name_if_running()
if lemma_name is not None:
lemma_name = lemma_name.strip()
lemma_found = lemma_name.startswith(self.lemma_name) if lemma_name is not None else False
lemma_found = lemma_name == self.lemma_name if lemma_name is not None else False
if not lemma_found:
_ = list(self._dynamic_proof_executor.run_to_finish_lemma_return_exec())
if self._dynamic_proof_executor.execution_complete:
Expand Down