三段論法
文章を大前提、小前提、結論の順に組み立てて推論する 方法。
例えば、
「人間は死ぬ」(大前提)
「ソクラテスは人間である」(小前提)
故に
「ソクラテスは死ぬ」(結論)
code:d3.js
const graph = `
graph g {
Ashape = box;label = "大前提:人間は死ぬ"
Bshape = box;label = "小前提:ソクラテスは人間である"
Cshape = box;label = "結論:ソクラテスは死ぬ"
A -- B ;
A -- C ;
B -- C ;
{rank = same; B; C}
}
`
実行 https://suto3.github.io/rund3?code=https://scrapbox.io/api/code/suto3/三段論法/d3.js
syllogism
アリストテレス
『オルガノン』
『分析論後書』
論理学(Logic)
演繹(deduction)
詭弁(sophism)
Argumentation theory
Buddhist logic
Enthymeme
Other types of syllogism:
Disjunctive syllogism
Hypothetical syllogism
Polysyllogism
Prosleptic syllogism
Quasi-syllogism
Statistical syllogism
Syllogistic fallacy
The False Subtlety of the Four Syllogistic Figures
Venn diagram
三段論法 - Wikipedia
Syllogism - Wikipedia
#なんとか論法
code:d3.js
d3.select("#graph").graphviz()
.fade(false)
.renderDot(graph);
code:vizScript.js
const graph = `
graph g {
Ashape = box;label = "大前提:人間は死ぬ"
Bshape = box;label = "小前提:ソクラテスは人間である"
Cshape = box;label = "結論:ソクラテスは死ぬ"
A -- B ;
A -- C ;
B -- C ;
{rank = same; B; C}
}
`;
const viz = new Viz();
viz.renderSVGElement(graph)
.then(function(element) {
const editor = document.getElementById('editor');
editor.appendChild(element);
});
viz-script-button.icon (実行ボタン)
#graphviz