Skip to content

Display contradiction proofs on the search results page#170

Merged
ScriptRaccoon merged 5 commits into
mainfrom
show-contradiction
May 12, 2026
Merged

Display contradiction proofs on the search results page#170
ScriptRaccoon merged 5 commits into
mainfrom
show-contradiction

Conversation

@ScriptRaccoon
Copy link
Copy Markdown
Owner

@ScriptRaccoon ScriptRaccoon commented May 12, 2026

On the category search results page, there was already a check to determine whether the satisfied and unsatisfied properties are consistent. However, in the case of an inconsistency, it was not explained why the requirements were contradictory. This PR now computes and displays the corresponding deduction, allowing users to understand the reason of the contradiction.

More precisely, when a contradiction occurs, a shortest deduction is generated showing that one of the specified unsatisfied properties follows from the specified satisfied properties. Internally, the deduction is computed using a breadth-first search on the implication hypergraph, ensuring that the generated contradiction has minimal length.

Examples

proof 1

proof 2

proof 2

Thoughts

This feature does more than merely check whether a set of properties is consistent. It computes a shortest proof of $p_1 \wedge \cdots \wedge p_n \to q$ whenever such a proof exists. This may be useful in future work for extending the search functionality or improving the deduction system.

@ScriptRaccoon ScriptRaccoon changed the title Show proof of contradiction (if it exists) on search results page Display contradiction proofs on the search results page May 12, 2026
@ScriptRaccoon ScriptRaccoon merged commit d2620a0 into main May 12, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the show-contradiction branch May 12, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant