|
2 | 2 | (= (maybe $x $y) False) |
3 | 3 |
|
4 | 4 | (= (sentence $X $Y) |
5 | | - (if (maybe $X ((Implication (Evaluation $1 $11) (Evaluation $2 $22)) $TV)) |
6 | | - (trace! (= (|- ((Evaluation $1 $11) $TV1)) |
7 | | - ((Evaluation $2 $22) |
8 | | - (Truth_ModusPonens $TV1 $TV))) |
9 | | - "PLN.Init: Translated nested implication into function") |
10 | | - (if (maybe $X ((Implication (Evaluation $1 $11) |
11 | | - (Implication (Evaluation $2 $22) |
12 | | - (Evaluation $3 $33))) $TV)) |
13 | | - (trace! (= (|- ((Evaluation $1 $11) $TV1) |
14 | | - ((Evaluation $2 $22) $TV2)) |
15 | | - ((Evaluation $3 $33) |
16 | | - (Truth_ModusPonens (Truth_ModusPonens $TV1 $TV2) $TV))) |
17 | | - "PLN.Init: Translated implication into function") |
18 | | - (if (maybe $X ((Evaluation $1 $11) $TV)) |
19 | | - (Sentence $X $Y) |
20 | | - (if (maybe $X ((Concept $C) $TV)) |
21 | | - (trace! (= (STV (Concept $C)) $TV) |
22 | | - "PLN.Init: Translated concept into function") |
23 | | - (empty)))))) |
| 5 | + (if (and (maybe $X ((Implication ($LinkType1 $1 $11) ($LinkType2 $2 $22)) $TV)) |
| 6 | + (not (== $LinkType2 Implication))) |
| 7 | + (trace! (= (|- (($LinkType1 $1 $11) $TV1)) |
| 8 | + (($LinkType2 $2 $22) (Truth_ModusPonens $TV1 $TV))) |
| 9 | + "PLN.Init: Translated implication into function") |
| 10 | + (if (maybe $X ((Implication ($LinkType1 $1 $11) |
| 11 | + (Implication ($LinkType2 $2 $22) |
| 12 | + ($LinkType3 $3 $33))) $TV)) |
| 13 | + (trace! (= (|- (($LinkType1 $1 $11) $TV1) |
| 14 | + (($LinkType2 $2 $22) $TV2)) |
| 15 | + (($LinkType3 $3 $33) (Truth_ModusPonens (Truth_ModusPonens $TV1 $TV2) $TV))) |
| 16 | + "PLN.Init: Translated nested implication into function") |
| 17 | + (if (maybe $X ((Concept $C) $TV)) |
| 18 | + (trace! (= (STV (Concept $C)) $TV) |
| 19 | + "PLN.Init: Translated concept into function") |
| 20 | + (empty))))) |
24 | 21 |
|
0 commit comments