@@ -1280,7 +1280,7 @@ def steps(self, proof: APRProof) -> Iterable[APRProofStep]:
1280
1280
target_is_terminal = (proof .target not in proof ._terminal ),
1281
1281
main_module_name = self .prover .main_module_name ,
1282
1282
dependencies_as_claims = [d .as_claim (self .kprint ) for d in apr_subproofs ],
1283
- self_proof_as_claim = proof .as_claim (self .kprint ),
1283
+ self_proof_as_claim = ( proof .as_claim (self .kprint ) if proof . circularity else None ),
1284
1284
circularity = proof .circularity ,
1285
1285
depth_is_nonzero = self .prover .nonzero_depth (pending_node ),
1286
1286
)
@@ -1405,7 +1405,7 @@ class APRProofStep(parallel.ProofStep[APRProofResult, APRProofProcessData]):
1405
1405
trace_rewrites : bool
1406
1406
1407
1407
dependencies_as_claims : list [KClaim ]
1408
- self_proof_as_claim : KClaim
1408
+ self_proof_as_claim : KClaim | None
1409
1409
circularity : bool
1410
1410
depth_is_nonzero : bool
1411
1411
@@ -1470,7 +1470,12 @@ def exec(self, data: APRProofProcessData) -> APRProofResult:
1470
1470
kcfg_explore .add_dependencies_module (
1471
1471
self .main_module_name ,
1472
1472
self .circularities_module_name ,
1473
- self .dependencies_as_claims + ([self .self_proof_as_claim ] if self .circularity else []),
1473
+ self .dependencies_as_claims
1474
+ + (
1475
+ [self .self_proof_as_claim ]
1476
+ if (self .circularity and (self .self_proof_as_claim is not None ))
1477
+ else []
1478
+ ),
1474
1479
priority = 1 ,
1475
1480
)
1476
1481
0 commit comments