Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Do not convert proofs to claims if they are not circularities. #795

Open
wants to merge 3 commits into
base: noah/apr-proof-parallel
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.558
0.1.559
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pyk"
version = "0.1.558"
version = "0.1.559"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
11 changes: 8 additions & 3 deletions src/pyk/proof/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ def steps(self, proof: APRProof) -> Iterable[APRProofStep]:
target_is_terminal=(proof.target not in proof._terminal),
main_module_name=self.prover.main_module_name,
dependencies_as_claims=[d.as_claim(self.kprint) for d in apr_subproofs],
self_proof_as_claim=proof.as_claim(self.kprint),
self_proof_as_claim=(proof.as_claim(self.kprint) if proof.circularity else None),
circularity=proof.circularity,
depth_is_nonzero=self.prover.nonzero_depth(pending_node),
)
Expand Down Expand Up @@ -1405,7 +1405,7 @@ class APRProofStep(parallel.ProofStep[APRProofResult, APRProofProcessData]):
trace_rewrites: bool

dependencies_as_claims: list[KClaim]
self_proof_as_claim: KClaim
self_proof_as_claim: KClaim | None
circularity: bool
depth_is_nonzero: bool

Expand Down Expand Up @@ -1470,7 +1470,12 @@ def exec(self, data: APRProofProcessData) -> APRProofResult:
kcfg_explore.add_dependencies_module(
self.main_module_name,
self.circularities_module_name,
self.dependencies_as_claims + ([self.self_proof_as_claim] if self.circularity else []),
self.dependencies_as_claims
+ (
[self.self_proof_as_claim]
if (self.circularity and (self.self_proof_as_claim is not None))
else []
),
priority=1,
)

Expand Down