public final class SyllogisticRules extends Object
Constructor | Description |
---|---|
SyllogisticRules() |
Modifier and Type | Method | Description |
---|---|---|
(package private) static boolean |
abdIndCom(Term term1,
Term term2,
Sentence sentence1,
Sentence sentence2,
int figure,
DerivationContext nal) |
{<M ==> S>, <M ==> P>} |- {<S ==> P>, <P ==> S>, <S <=> P>}
|
(package private) static void |
analogy(Term subj,
Term pred,
Sentence asym,
Sentence sym,
int figure,
DerivationContext nal) |
{<S ==> P>, <M <=> P>} |- <S ==> P>
|
(package private) static boolean |
conditionalAbd(Term cond1,
Term cond2,
Statement st1,
Statement st2,
DerivationContext nal) |
{<(&&, S2, S3) ==> P>, <(&&, S1, S3) ==> P>} |- <S1 ==> S2>
|
(package private) static void |
conditionalAna(Equivalence premise1,
short index,
Term premise2,
int side,
DerivationContext nal) |
{<(&&, S1, S2, S3) <=> P>, S1} |- <(&&, S2, S3) <=> P>
{<(&&, S2, S3) <=> P>, <S1 ==> S2>} |- <(&&, S1, S3) <=> P> {<(&&, S1, S3) <=> P>, <S1 ==> |
(package private) static void |
conditionalDedInd(Sentence premise1Sentence,
Implication premise1,
short index,
Term premise2,
int side,
DerivationContext nal) |
{<(&&, S1, S2, S3) ==> P>, S1} |- <(&&, S2, S3) ==> P>
{<(&&, S2, S3) ==> P>, <S1 ==> S2>} |- <(&&, S1, S3) ==> P> {<(&&, S1, S3) ==> P>, <S1 ==> S2>} |- <(&&, S2, S3) ==> P> |
(package private) static void |
dedExe(Term term1,
Term term2,
Sentence sentence,
Sentence belief,
DerivationContext nal) |
{<S ==> M>, <M ==> P>} |- {<S ==> P>, <P ==> S>}
|
(package private) static void |
detachment(Sentence mainSentence,
Sentence subSentence,
int side,
boolean checkTermAgain,
DerivationContext nal) |
|
(package private) static void |
detachment(Sentence mainSentence,
Sentence subSentence,
int side,
DerivationContext nal) |
{<<M --> S> ==> <M --> P>>, <M --> S>} |- <M --> P>
{<<M --> S> ==> <M --> P>>, <M --> P>} |- <M --> S> {<<M --> S> <=> <M --> P>>, <M --> S>} |- <M --> P> {<<M --> S> <=> <M --> P>>, <M --> P>} |- <M --> S> |
(package private) static void |
elimiVarDep(CompoundTerm compound,
Term component,
boolean compoundTask,
DerivationContext nal) |
{(&&, <#x() --> S>, <#x() --> P>>, <M --> P>} |- <M --> S>
|
(package private) static void |
resemblance(Term term1,
Term term2,
Sentence belief,
Sentence sentence,
int figure,
DerivationContext nal) |
{<S <=> M>, << <=> P>} |- <S <=> P>
|
static void dedExe(Term term1, Term term2, Sentence sentence, Sentence belief, DerivationContext nal)
{<S ==> M>, <M ==> P>} |- {<S ==> P>, <P ==> S>}
term1
- Subject of the first new taskterm2
- Predicate of the first new tasksentence
- The first premisebelief
- The second premisenal
- Reference to the memorystatic boolean abdIndCom(Term term1, Term term2, Sentence sentence1, Sentence sentence2, int figure, DerivationContext nal)
term1
- Subject of the first new taskterm2
- Predicate of the first new tasksentence1
- The first premisesentence2
- The second premisefigure
- Locations of the shared term in premises --- can be
removed?nal
- Reference to the memorystatic void analogy(Term subj, Term pred, Sentence asym, Sentence sym, int figure, DerivationContext nal)
subj
- Subject of the new taskpred
- Predicate of the new taskasym
- The asymmetric premisesym
- The symmetric premisefigure
- Locations of the shared term in premisesnal
- Reference to the memorystatic void resemblance(Term term1, Term term2, Sentence belief, Sentence sentence, int figure, DerivationContext nal)
term1
- Subject of the new taskterm2
- Predicate of the new taskbelief
- The first premisesentence
- The second premisefigure
- Locations of the shared term in premisesnal
- Reference to the memorystatic void detachment(Sentence mainSentence, Sentence subSentence, int side, DerivationContext nal)
mainSentence
- The implication/equivalence premisesubSentence
- The premise on part of s1side
- The location of s2 in s1nal
- Reference to the memorystatic void detachment(Sentence mainSentence, Sentence subSentence, int side, boolean checkTermAgain, DerivationContext nal)
static void conditionalDedInd(Sentence premise1Sentence, Implication premise1, short index, Term premise2, int side, DerivationContext nal)
premise1
- The conditional premiseindex
- The location of the shared term in the condition of premise1premise2
- The premise which, or part of which, appears in the
condition of premise1side
- The location of the shared term in premise2: 0 for subject, 1
for predicate, -1 for the whole termnal
- Reference to the memorystatic void conditionalAna(Equivalence premise1, short index, Term premise2, int side, DerivationContext nal)
premise1
- The equivalence premiseindex
- The location of the shared term in the condition of premise1premise2
- The premise which, or part of which, appears in the condition of premise1side
- The location of the shared term in premise2: 0 for subject, 1 for predicate, -1 for the whole termnal
- Reference to the memorystatic boolean conditionalAbd(Term cond1, Term cond2, Statement st1, Statement st2, DerivationContext nal)
cond1
- The condition of the first premisecond2
- The condition of the second premisest1
- The first premisest2
- The second premisenal
- Reference to the memorystatic void elimiVarDep(CompoundTerm compound, Term component, boolean compoundTask, DerivationContext nal)
compound
- The compound term to be decomposedcomponent
- The part of the compound to be removedcompoundTask
- Whether the compound comes from the tasknal
- Reference to the memoryCopyright © 2020 OpenNARS. All rights reserved.