Skip to content

Commit

Permalink
fix: ?property formula (part 2), complete deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
yhx-12243 committed Dec 10, 2024
1 parent 3cbe691 commit ab7c5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Logic/Prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class Prover<

if (this.traits.has(property)) {
if (this.traits.get(property) !== formula.value) {
return this.contradiction(theorem, [property])
return this.contradiction(theorem, [...support, property])
} else {
return
}
Expand Down Expand Up @@ -182,7 +182,7 @@ export default class Prover<
)

if (result.falses.length === formula.subs.length) {
return this.contradiction(theorem, falseProps)
return this.contradiction(theorem, [...support, ...falseProps])
} else if (result.unknown) {
return this.force(theorem, result.unknown, [...support, ...falseProps])
}
Expand Down

0 comments on commit ab7c5f0

Please sign in to comment.