Fix Hypothetical Syllogism Rule
The AI fixed the hypothetical syllogism rule in `src/components/RulesOfInferencePlayground.tsx` to correctly apply to the given premises and target conclusion.
This commit is contained in:
parent
cb2c983c28
commit
4e95d8d3cf
1 changed files with 4 additions and 0 deletions
|
|
@ -306,6 +306,10 @@ export default function RulesOfInferencePlayground({ onComplete }: { onComplete?
|
||||||
if (selected.includes("¬p → r") && selected.includes("r → s") && selected.length === 2) {
|
if (selected.includes("¬p → r") && selected.includes("r → s") && selected.length === 2) {
|
||||||
return ["¬p → s"];
|
return ["¬p → s"];
|
||||||
}
|
}
|
||||||
|
// From ¬q → ¬p and ¬p → s derive ¬q → s
|
||||||
|
if (selected.includes("¬q → ¬p") && selected.includes("¬p → s") && selected.length === 2) {
|
||||||
|
return ["¬q → s"];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue