Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/src_lib/logicmoo_util/logicmoo_util_library.pl:537:
- Goal (directive) failed: user:module_predicates_are_exported(logicmoo_util_library)
- % passed(logicmoo_util_dcg:theCode(A=1),
- % do_dcgTest("",
- % logicmoo_util_dcg:theCode(A=1),
- % logicmoo_util_dcg: (A==1)),
- % do_dcgTest("",
- % logicmoo_util_dcg:theCode(1=1),
- % logicmoo_util_dcg: (1==1))).
- %
- % passed(logicmoo_util_dcg:theRest(A),
- % do_dcgTest([a, b|B],
- % logicmoo_util_dcg:theRest(A),
- % logicmoo_util_dcg: (A==[a, b|B])),
- % do_dcgTest([a, b|C],
- % logicmoo_util_dcg:theRest([a, b|C]),
- % logicmoo_util_dcg: ([a, b|C]==[a, b|C]))).
- %
- % passed(logicmoo_util_dcg:theText([this, is, text]),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:theText([this, is, text]),
- % logicmoo_util_dcg:true),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:theText([this, is, text]),
- % logicmoo_util_dcg:true)).
- %
- % passed(logicmoo_util_dcg:theString("this is a string"),
- % do_dcgTest("this is a string",
- % logicmoo_util_dcg:theString("this is a string"),
- % logicmoo_util_dcg:true),
- % do_dcgTest("this is a string",
- % logicmoo_util_dcg:theString("this is a string"),
- % logicmoo_util_dcg:true)).
- %
- % passed(logicmoo_util_dcg:theAll([a, b|A]),
- % do_dcgTest([a, b|A],
- % logicmoo_util_dcg:theAll([a, b|A]),
- % logicmoo_util_dcg:true),
- % do_dcgTest([a, b],
- % logicmoo_util_dcg:theAll([a, b]),
- % logicmoo_util_dcg:true)).
- %
- % passed(logicmoo_util_dcg:dcgStartsWith0(theText([this, is])),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith0(theText([this, is])),
- % logicmoo_util_dcg:true),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith0(theText([this, is])),
- % logicmoo_util_dcg:true)).
- %
- % passed(logicmoo_util_dcg:theCode(A=1),
- % do_dcgTest([a, b|_], logicmoo_util_dcg:theCode(A=1), A==1),
- % do_dcgTest([a, b|_], logicmoo_util_dcg:theCode(1=1), 1==1)).
- %
- % passed(logicmoo_util_dcg:theCode(A=1),
- % do_dcgTest("anything", logicmoo_util_dcg:theCode(A=1), A==1),
- % do_dcgTest("anything", logicmoo_util_dcg:theCode(1=1), 1==1)).
- %
- % passed(logicmoo_util_dcg:dcgStartsWith(theText([this, is])),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith(theText([this, is])),
- % true),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith(theText([this, is])),
- % true)).
- %
- % passed(logicmoo_util_dcg:dcgStartsWith1(theText([this])),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith1(theText([this])),
- % true),
- % do_dcgTest("this is text",
- % logicmoo_util_dcg:dcgStartsWith1(theText([this])),
- % true)).
- %
- not_installing(user,use_module('../ext/moo_ext_lisp_triska'))
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp_statics.pl:177:
- Singleton variables: [G,E,A,M,F,O,D]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp_statics.pl:181:
- Singleton variables: [G,E,A,M,F,O,D]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp_statics.pl:255:
- Singleton variables: [Time]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp_statics.pl:353:
- Singleton variables: [ID]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp_statics.pl:354:
- Singleton variables: [ID]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:296:
- Singleton variables: [INFO]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:386:
- Singleton variable in branch: N
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:734:
- Singleton variable in branch: B
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:830:
- Singleton variable in branch: B
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:860:
- Singleton variables: [ProofID]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:861:
- Singleton variables: [Body]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:862:
- Singleton variables: [Head,Body]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1038:
- Singleton variables: [INFO]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1041:
- Singleton variables: [N]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1054:
- Singleton variables: [INFO]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1058:
- Singleton variables: [INFO]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1111:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1112:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1113:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1117:
- Singleton variables: [A,L]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1121:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1122:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1124:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1128:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1129:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1130:
- Singleton variables: [LC]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1434:
- Singleton variables: [BB]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1652:
- Singleton variables: [F,A]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1653:
- Singleton variables: [F,A]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1654:
- Singleton variables: [A]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1655:
- Singleton variables: [F,A]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1656:
- Singleton variables: [F,A]
- Warning: /devel/LogicmooDeveloperFramework/PrologMUD/externals/MUD_ScriptEngines/snark/dbase_rules_pttp.pl:1657:
- Singleton variables: [F,A]
- % 'we see this'.
- %
- % do_pttp_test(chang_lee_example1).
- %
- % todo(warn(builtin_why(pretest_call, 1, number_of_rules(1)))).
- %
- chang_lee_example1:0 assumed_t(p,g(A,B),A,B).
- % todo(warn(builtin_why(assumed_t, 10, number_of_rules(1)))).
- %
- chang_lee_example1:1 assumed_t(p,A,h(A,B),B).
- chang_lee_example1:2 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example1:3 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example1:4 query:-assumed_t(p,k(A),A,k(A)).
- % 311 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 2756066 Lips)
- Proof time: 0.010423126999999921 seconds
- Proof:
- length = 4, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(p,k(h(_G579,_G579)),h(_G579,_G579),k(h(_G579,_G579))) assumed_t(p,k(h(_G579,_G579)),h(_G579,_G579),k(h(_G579,_G579))) :- [2] , [3] , [4].
- [2] assumed_t(p,g(_G579,k(h(_G579,_G579))),_G579,k(h(_G579,_G579))) assumed_t(p,g(_G579,k(h(_G579,_G579))),_G579,k(h(_G579,_G579))).
- [3] assumed_t(p,_G579,h(_G579,_G579),_G579) assumed_t(p,_G579,h(_G579,_G579),_G579).
- [4] assumed_t(p,g(_G579,k(h(_G579,_G579))),_G579,k(h(_G579,_G579))) assumed_t(p,g(_G579,k(h(_G579,_G579))),_G579,k(h(_G579,_G579))).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example1, query)).
- %
- % do_pttp_test(chang_lee_example2).
- %
- % todo(warn(builtin_why(assumed_t, 10, number_of_rules(2)))).
- %
- chang_lee_example2:0 assumed_t(p,e,A,A).
- chang_lee_example2:1 assumed_t(p,A,e,A).
- chang_lee_example2:2 assumed_t(p,A,A,e).
- chang_lee_example2:3 assumed_t(p,a,b,c).
- chang_lee_example2:4 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example2:5 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example2:6 query:-assumed_t(p,b,a,c).
- % 73,120 inferences, 0.020 CPU in 0.020 seconds (100% CPU, 3622651 Lips)
- Proof time: 0.02027707599999995 seconds
- Proof:
- length = 10, depth = 3
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(p,b,a,c) assumed_t(p,b,a,c) :- [2] , [3] , [10].
- [2] assumed_t(p,b,b,e) assumed_t(p,b,b,e).
- [3] assumed_t(p,b,c,a) assumed_t(p,b,c,a) :- [4] , [8] , [9].
- [4] assumed_t(p,a,c,b) assumed_t(p,a,c,b) :- [5] , [6] , [7].
- [5] assumed_t(p,a,a,e) assumed_t(p,a,a,e).
- [6] assumed_t(p,a,b,c) assumed_t(p,a,b,c).
- [7] assumed_t(p,e,b,b) assumed_t(p,e,b,b).
- [8] assumed_t(p,c,c,e) assumed_t(p,c,c,e).
- [9] assumed_t(p,a,e,a) assumed_t(p,a,e,a).
- [10] assumed_t(p,e,c,c) assumed_t(p,e,c,c).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example2, query)).
- %
- % do_pttp_test(chang_lee_example3).
- %
- chang_lee_example3:0 assumed_t(p,e,A,A).
- chang_lee_example3:1 assumed_t(p,i(A),A,e).
- chang_lee_example3:2 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example3:3 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example3:4 query:-assumed_t(p,a,e,a).
- % 7,492 inferences, 0.002 CPU in 0.002 seconds (100% CPU, 3693380 Lips)
- Proof time: 0.0021218909999998203 seconds
- Proof:
- length = 10, depth = 2
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(p,a,e,a) assumed_t(p,a,e,a) :- [2] , [6] , [7].
- [2] assumed_t(p,i(i(a)),e,a) assumed_t(p,i(i(a)),e,a) :- [3] , [4] , [5].
- [3] assumed_t(p,i(i(a)),i(a),e) assumed_t(p,i(i(a)),i(a),e).
- [4] assumed_t(p,i(a),a,e) assumed_t(p,i(a),a,e).
- [5] assumed_t(p,e,a,a) assumed_t(p,e,a,a).
- [6] assumed_t(p,e,e,e) assumed_t(p,e,e,e).
- [7] assumed_t(p,i(i(a)),e,a) assumed_t(p,i(i(a)),e,a) :- [8] , [9] , [10].
- [8] assumed_t(p,i(i(a)),i(a),e) assumed_t(p,i(i(a)),i(a),e).
- [9] assumed_t(p,i(a),a,e) assumed_t(p,i(a),a,e).
- [10] assumed_t(p,e,a,a) assumed_t(p,e,a,a).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example3, query)).
- %
- % do_pttp_test(chang_lee_example4).
- %
- chang_lee_example4:0 assumed_t(p,e,A,A).
- chang_lee_example4:1 assumed_t(p,i(A),A,e).
- chang_lee_example4:2 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example4:3 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example4:4 query:-assumed_t(p,a,_,e).
- % 7,324 inferences, 0.002 CPU in 0.002 seconds (100% CPU, 3721032 Lips)
- Proof time: 0.002049898999999966 seconds
- Proof:
- length = 10, depth = 2
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(p,a,i(a),e) assumed_t(p,a,i(a),e) :- [2] , [6] , [7].
- [2] assumed_t(p,i(i(a)),e,a) assumed_t(p,i(i(a)),e,a) :- [3] , [4] , [5].
- [3] assumed_t(p,i(i(a)),i(a),e) assumed_t(p,i(i(a)),i(a),e).
- [4] assumed_t(p,i(a),a,e) assumed_t(p,i(a),a,e).
- [5] assumed_t(p,e,a,a) assumed_t(p,e,a,a).
- [6] assumed_t(p,e,i(a),i(a)) assumed_t(p,e,i(a),i(a)).
- [7] assumed_t(p,i(i(a)),i(a),e) assumed_t(p,i(i(a)),i(a),e) :- [8] , [9] , [10].
- [8] assumed_t(p,e,i(i(a)),i(i(a))) assumed_t(p,e,i(i(a)),i(i(a))).
- [9] assumed_t(p,i(i(a)),i(a),e) assumed_t(p,i(i(a)),i(a),e).
- [10] assumed_t(p,e,e,e) assumed_t(p,e,e,e).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example4, query)).
- %
- % do_pttp_test(chang_lee_example5).
- %
- chang_lee_example5:0 assumed_t(p,e,A,A).
- chang_lee_example5:1 assumed_t(p,A,e,A).
- chang_lee_example5:2 assumed_t(p,A,i(A),e).
- chang_lee_example5:3 assumed_t(p,i(A),A,e).
- chang_lee_example5:4 assumed_t(s,a).
- % todo(warn(builtin_why(assumed_t, 8, number_of_rules(1)))).
- %
- chang_lee_example5:5 assumed_t(s,C):-assumed_t(s,A),assumed_t(s,B),assumed_t(p,A,i(B),C).
- chang_lee_example5:6 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example5:7 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example5:8 query:-assumed_t(s,e).
- % 18,490 inferences, 0.006 CPU in 0.006 seconds (100% CPU, 3170892 Lips)
- Proof time: 0.005918321000000004 seconds
- Proof:
- length = 10, depth = 3
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(s,e) assumed_t(s,e) :- [2] , [3] , [4].
- [2] assumed_t(s,a) assumed_t(s,a).
- [3] assumed_t(s,a) assumed_t(s,a).
- [4] assumed_t(p,a,i(a),e) assumed_t(p,a,i(a),e) :- [5] , [6] , [7].
- [5] assumed_t(p,e,a,a) assumed_t(p,e,a,a).
- [6] assumed_t(p,a,i(a),e) assumed_t(p,a,i(a),e).
- [7] assumed_t(p,e,e,e) assumed_t(p,e,e,e) :- [8] , [9] , [10].
- [8] assumed_t(p,_G14580,i(_G14580),e) assumed_t(p,_G14580,i(_G14580),e).
- [9] assumed_t(p,i(_G14580),e,i(_G14580)) assumed_t(p,i(_G14580),e,i(_G14580)).
- [10] assumed_t(p,_G14580,i(_G14580),e) assumed_t(p,_G14580,i(_G14580),e).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example5, query)).
- %
- % do_pttp_test(chang_lee_example6).
- %
- % todo(warn(builtin_why(assumed_t, 8, number_of_rules(2)))).
- %
- chang_lee_example6:0 assumed_t(p,e,A,A).
- chang_lee_example6:1 assumed_t(p,A,e,A).
- chang_lee_example6:2 assumed_t(p,A,i(A),e).
- chang_lee_example6:3 assumed_t(p,i(A),A,e).
- chang_lee_example6:4 assumed_t(s,b).
- chang_lee_example6:5 assumed_t(s,C):-assumed_t(s,A),assumed_t(s,B),assumed_t(p,A,i(B),C).
- chang_lee_example6:6 assumed_t(p,A,C,F):-assumed_t(p,D,B,A),assumed_t(p,B,C,E),assumed_t(p,D,E,F).
- chang_lee_example6:7 assumed_t(p,A,C,F):-assumed_t(p,A,B,D),assumed_t(p,B,E,C),assumed_t(p,D,E,F).
- chang_lee_example6:8 query:-assumed_t(s,i(b)).
- % 1,381 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 3755044 Lips)
- Proof time: 0.0004496199999999284 seconds
- Proof:
- length = 7, depth = 2
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(s,i(b)) assumed_t(s,i(b)) :- [2] , [6] , [7].
- [2] assumed_t(s,e) assumed_t(s,e) :- [3] , [4] , [5].
- [3] assumed_t(s,b) assumed_t(s,b).
- [4] assumed_t(s,b) assumed_t(s,b).
- [5] assumed_t(p,b,i(b),e) assumed_t(p,b,i(b),e).
- [6] assumed_t(s,b) assumed_t(s,b).
- [7] assumed_t(p,e,i(b),i(b)) assumed_t(p,e,i(b),i(b)).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example6, query)).
- %
- % do_pttp_test(chang_lee_example7).
- %
- chang_lee_example7:0 assumed_t(p,a).
- chang_lee_example7:1 assumed_t(m,a,s(c),s(b)).
- chang_lee_example7:2 assumed_t(m,A,A,s(A)).
- chang_lee_example7:3 not_proven_t(m,B,A,C);assumed_t(m,A,B,C).
- chang_lee_example7:4 not_proven_t(m,A,_,B);assumed_t(d,A,B).
- chang_lee_example7:5 not_proven_t(p,A);not_proven_t(m,C,D,B);not_proven_t(d,A,B);assumed_t(d,A,C);assumed_t(d,A,D).
- chang_lee_example7:6 query:-assumed_t(d,a,b).
- % 965 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 3446921 Lips)
- Proof time: 0.00035827799999998966 seconds
- Proof:
- length = 6, depth = 2
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] assumed_t(d,a,b) assumed_t(d,a,b) :- [2] , [3] , [4] , [6].
- [2] assumed_t(p,a) assumed_t(p,a).
- [3] assumed_t(m,b,b,s(b)) assumed_t(m,b,b,s(b)).
- [4] assumed_t(d,a,s(b)) assumed_t(d,a,s(b)) :- [5].
- [5] assumed_t(m,a,s(c),s(b)) assumed_t(m,a,s(c),s(b)).
- [6] red not_proven_t(d,a,b).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example7, query)).
- %
- % do_pttp_test(chang_lee_example8).
- %
- chang_lee_example8:0 assumed_t(l,1,a).
- chang_lee_example8:1 assumed_t(d,A,A).
- chang_lee_example8:2 assumed_t(p,A);assumed_t(d,g(A),A).
- chang_lee_example8:3 assumed_t(p,A);assumed_t(l,1,g(A)).
- chang_lee_example8:4 assumed_t(p,A);assumed_t(l,g(A),A).
- chang_lee_example8:5 not_proven_t(p,A);not_proven_t(d,A,a).
- chang_lee_example8:6 not_proven_t(d,B,A);not_proven_t(d,A,C);assumed_t(d,B,C).
- chang_lee_example8:7 not_proven_t(l,1,A);not_proven_t(l,A,a);assumed_t(p,f(A)).
- chang_lee_example8:8 not_proven_t(l,1,A);not_proven_t(l,A,a);assumed_t(d,f(A),A).
- chang_lee_example8:9 query:-assumed_t(p,A),assumed_t(d,A,a).
- % 150,653 inferences, 0.022 CPU in 0.022 seconds (100% CPU, 6899058 Lips)
- Proof time: 0.021924374999999774 seconds
- Proof:
- length = 13, depth = 6
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1] , [13].
- [1] assumed_t(p,a) assumed_t(p,a) :- [2].
- [2] not_proven_t(l,1,g(a)) not_proven_t(l,1,g(a)) :- [3] , [5].
- [3] assumed_t(l,g(a),a) assumed_t(l,g(a),a) :- [4].
- [4] red not_proven_t(p,a).
- [5] not_proven_t(p,f(g(a))) not_proven_t(p,f(g(a))) :- [6].
- [6] assumed_t(d,f(g(a)),a) assumed_t(d,f(g(a)),a) :- [7] , [11].
- [7] assumed_t(d,f(g(a)),g(a)) assumed_t(d,f(g(a)),g(a)) :- [8] , [9].
- [8] red assumed_t(l,1,g(a)).
- [9] assumed_t(l,g(a),a) assumed_t(l,g(a),a) :- [10].
- [10] red not_proven_t(p,a).
- [11] assumed_t(d,g(a),a) assumed_t(d,g(a),a) :- [12].
- [12] red not_proven_t(p,a).
- [13] assumed_t(d,a,a) assumed_t(d,a,a).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example8, query)).
- %
- % do_pttp_test(chang_lee_example9).
- %
- chang_lee_example9:0 assumed_t(l,A,f(A)).
- chang_lee_example9:1 not_proven_t(l,A,A).
- chang_lee_example9:2 not_proven_t(l,B,A);not_proven_t(l,A,B).
- chang_lee_example9:3 not_proven_t(d,B,f(A));assumed_t(l,A,B).
- chang_lee_example9:4 assumed_t(p,A);assumed_t(d,h(A),A).
- chang_lee_example9:5 assumed_t(p,A);assumed_t(p,h(A)).
- chang_lee_example9:6 assumed_t(p,A);assumed_t(l,h(A),A).
- chang_lee_example9:7 not_proven_t(p,A);not_proven_t(l,a,A);assumed_t(l,f(a),A).
- chang_lee_example9:8 query:-assumed_t(p,A),assumed_t(l,a,A),not_proven_t(l,f(a),A).
- % 25,770 inferences, 0.004 CPU in 0.004 seconds (100% CPU, 6416254 Lips)
- Proof time: 0.004109557999999902 seconds
- Proof:
- length = 10, depth = 5
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1] , [9] , [10].
- [1] assumed_t(p,f(a)) assumed_t(p,f(a)) :- [2].
- [2] not_proven_t(d,h(f(a)),f(a)) not_proven_t(d,h(f(a)),f(a)) :- [3].
- [3] not_proven_t(l,a,h(f(a))) not_proven_t(l,a,h(f(a))) :- [4] , [6].
- [4] assumed_t(p,h(f(a))) assumed_t(p,h(f(a))) :- [5].
- [5] red not_proven_t(p,f(a)).
- [6] not_proven_t(l,f(a),h(f(a))) not_proven_t(l,f(a),h(f(a))) :- [7].
- [7] assumed_t(l,h(f(a)),f(a)) assumed_t(l,h(f(a)),f(a)) :- [8].
- [8] red not_proven_t(p,f(a)).
- [9] assumed_t(l,a,f(a)) assumed_t(l,a,f(a)).
- [10] not_proven_t(l,f(a),f(a)) not_proven_t(l,f(a),f(a)).
- Proof end.
- % succceeded(user:pttp_prove(chang_lee_example9, query)).
- %
- % do_pttp_test(logicmoo_example1).
- %
- logicmoo_example1:0 assumed_t(mudMother,iJoe,iSue).
- logicmoo_example1:1 not_proven_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_example1:2 not_proven_t(mudChild,B,A);assumed_t(mudMother,A,B);assumed_t(mudFather,A,B).
- logicmoo_example1:3 query:-mudIsa(_,tFemale).
- % 162 inferences, 0.000 CPU in 0.000 seconds (101% CPU, 2209824 Lips)
- Proof time: 0.00017492000000007835 seconds
- Proof:
- length = 2, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] mudIsa(iSue,tFemale) mudIsa(iSue,tFemale) :- [2].
- [2] assumed_t(mudMother,iJoe,iSue) assumed_t(mudMother,iJoe,iSue).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example1, query)).
- %
- % do_pttp_test(logicmoo_example1_holds).
- %
- logicmoo_example1_holds:0 asserted_t(mudMother,iJoe,iSue).
- logicmoo_example1_holds:1 not_asserted_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_example1_holds:2 not_asserted_t(mudChild,B,A);proven_t(mudMother,A,B);proven_t(mudFather,A,B).
- logicmoo_example1_holds:3 query:-mudIsa(_,tFemale).
- % 192 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 2662894 Lips)
- Proof time: 0.00015124399999999483 seconds
- Proof:
- length = 2, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] mudIsa(iSue,tFemale) mudIsa(iSue,tFemale) :- [2].
- [2] asserted_t(mudMother,iJoe,iSue) asserted_t(mudMother,iJoe,iSue).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example1_holds, query)).
- %
- % do_pttp_test(logicmoo_example2).
- %
- % pttp_load_wid(logicmoo_prules).
- %
- % pttp_load_wid(logicmoo_kb_refution).
- %
- logicmoo_kb_refution:0 not_asserted_t(A,B,C);proven_t(A,B,C).
- logicmoo_kb_refution:1 not_assumed_t(A,B,C);assumed_t(A,B,C).
- logicmoo_kb_refution:2 not_proven_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:3 not_assertable_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:4 not_both_t(proven_t(A,B,C),refuted_t(A,B,C));fallacy_t(A,B,C).
- logicmoo_kb_refution:5 not_assumed_t(A,B,C);not_refuted_t(A,B,C),assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:6 not_refuted_t(A,B,C);not_assumed_t(A,B,C),not_assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:7 not_askable_t(A,B,C);proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:8 not_unknowable_t(A,B,C),answerable_t(A,B,C);not_answerable_t(A,B,C),unknowable_t(A,B,C).
- logicmoo_kb_refution:9 askable_t(A,B,C),askable_t(A,B,C);not_askable_t(A,B,C),fallacy_t(A,B,C).
- logicmoo_kb_refution:10 not_answerable_t(A,B,C);proven_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:11 proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_prules:1 not_proven_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_prules:2 not_proven_t(mudChild,B,A);assumed_t(mudMother,A,B);assumed_t(mudFather,A,B).
- logicmoo_prules:3 not_asserted_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_prules:4 not_asserted_t(mudChild,B,A);proven_t(mudMother,A,B);proven_t(mudFather,A,B).
- logicmoo_example2:1 assumed_t(mudMother,iJoe,iSue).
- logicmoo_example2:2 asserted_t(mudChild,iGun,iSonOfGun).
- logicmoo_example2:3 not_mudIsa(iGun,tFemale).
- logicmoo_example2:4 query:-proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- % 306 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 3132454 Lips)
- Proof time: 0.00019528199999996332 seconds
- Proof:
- length = 3, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun) proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun) :- [2] , [3].
- [2] red not_unknowable_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- [3] red not_refuted_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example2, query)).
- %
- % do_pttp_test(logicmoo_example22).
- %
- % pttp_load_wid(logicmoo_prules).
- %
- % pttp_load_wid(logicmoo_kb_refution).
- %
- logicmoo_kb_refution:0 not_asserted_t(A,B,C);proven_t(A,B,C).
- logicmoo_kb_refution:1 not_assumed_t(A,B,C);assumed_t(A,B,C).
- logicmoo_kb_refution:2 not_proven_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:3 not_assertable_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:4 not_both_t(proven_t(A,B,C),refuted_t(A,B,C));fallacy_t(A,B,C).
- logicmoo_kb_refution:5 not_assumed_t(A,B,C);not_refuted_t(A,B,C),assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:6 not_refuted_t(A,B,C);not_assumed_t(A,B,C),not_assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:7 not_askable_t(A,B,C);proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:8 not_unknowable_t(A,B,C),answerable_t(A,B,C);not_answerable_t(A,B,C),unknowable_t(A,B,C).
- logicmoo_kb_refution:9 askable_t(A,B,C),askable_t(A,B,C);not_askable_t(A,B,C),fallacy_t(A,B,C).
- logicmoo_kb_refution:10 not_answerable_t(A,B,C);proven_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:11 proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_prules:1 not_proven_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_prules:2 not_proven_t(mudChild,B,A);assumed_t(mudMother,A,B);assumed_t(mudFather,A,B).
- logicmoo_prules:3 not_asserted_t(mudMother,_,A);mudIsa(A,tFemale).
- logicmoo_prules:4 not_asserted_t(mudChild,B,A);proven_t(mudMother,A,B);proven_t(mudFather,A,B).
- logicmoo_example22:1 asserted_t(mudChild,iGun,iSonOfGun).
- logicmoo_example22:2 not_mudIsa(iGun,tFemale).
- logicmoo_example22:3 query:-proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- % 306 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 2783868 Lips)
- Proof time: 0.00020974099999993 seconds
- Proof:
- length = 3, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun) proven_t($VAR(?MUD-FATHER),iSonOfGun,iGun) :- [2] , [3].
- [2] red not_unknowable_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- [3] red not_refuted_t($VAR(?MUD-FATHER),iSonOfGun,iGun).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example22, query)).
- %
- % do_pttp_test(logicmoo_example3).
- %
- % pttp_load_wid(logicmoo_kb_logic).
- %
- % pttp_load_wid(logicmoo_kb_refution).
- %
- logicmoo_kb_refution:0 not_asserted_t(A,B,C);proven_t(A,B,C).
- logicmoo_kb_refution:1 not_assumed_t(A,B,C);assumed_t(A,B,C).
- logicmoo_kb_refution:2 not_proven_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:3 not_assertable_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:4 not_both_t(proven_t(A,B,C),refuted_t(A,B,C));fallacy_t(A,B,C).
- logicmoo_kb_refution:5 not_assumed_t(A,B,C);not_refuted_t(A,B,C),assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:6 not_refuted_t(A,B,C);not_assumed_t(A,B,C),not_assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:7 not_askable_t(A,B,C);proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:8 not_unknowable_t(A,B,C),answerable_t(A,B,C);not_answerable_t(A,B,C),unknowable_t(A,B,C).
- logicmoo_kb_refution:9 askable_t(A,B,C),askable_t(A,B,C);not_askable_t(A,B,C),fallacy_t(A,B,C).
- logicmoo_kb_refution:10 not_answerable_t(A,B,C);proven_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:11 proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_logic:1 not_both_t(pred_t(ptSubclass,A,B),pred_isa_t(A,C));pred_isa_t(B,C).
- logicmoo_kb_logic:2 not_both_t(pred_t(subClass,A,C),mudIsa(B,A));mudIsa(B,C).
- logicmoo_kb_logic:3 not_pred_t(disjointWith,A,B);pred_isa_t(A,C);pred_isa_t(B,C).
- logicmoo_kb_logic:4 not_pred_t(disjointWith,A,C);mudIsa(B,A);mudIsa(B,C).
- logicmoo_kb_logic:5 not_both_t(pred_t(genlPreds,A,B),proven_t(A,C,D));proven_t(B,C,D).
- logicmoo_kb_logic:6 not_both_t(pred_t(genlPreds,B,A),refuted_t(A,C,D));refuted_t(B,C,D).
- logicmoo_kb_logic:7 not_both_t(pred_t(genlInverse,A,B),proven_t(A,D,C));proven_t(B,C,D).
- logicmoo_kb_logic:8 not_both_t(pred_t(negationPreds,A,B),proven_t(A,C,D));refuted_t(B,C,D).
- logicmoo_kb_logic:9 not_both_t(pred_t(negationInverse,A,B),proven_t(A,D,C));refuted_t(B,C,D).
- logicmoo_kb_logic:10 not_both_t(pred_isa_t(predIrreflexive,A),proven_t(A,C,B));refuted_t(A,B,C).
- logicmoo_example3:1 pred_t(genlInverse,mudParent,mudChild).
- logicmoo_example3:2 pred_t(genlPreds,mudMother,mudParent).
- logicmoo_example3:3 pred_isa_t(predIrreflexive,mudChild).
- logicmoo_example3:4 asserted_t(mudParent,iSon1,iFather1).
- logicmoo_example3:5 query:-refuted_t(mudChild,iSon1,iFather1).
- % 248 inferences, 0.000 CPU in 0.000 seconds (100% CPU, 2901230 Lips)
- Proof time: 0.0001702020000000637 seconds
- Proof:
- length = 3, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] refuted_t(mudChild,iSon1,iFather1) refuted_t(mudChild,iSon1,iFather1) :- [2] , [3].
- [2] red not_unknowable_t(mudChild,iSon1,iFather1).
- [3] red not_assumed_t(mudChild,iSon1,iFather1).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example3, query)).
- %
- % do_pttp_test(logicmoo_example4).
- %
- % pttp_load_wid(logicmoo_kb_logic).
- %
- % pttp_load_wid(logicmoo_kb_refution).
- %
- logicmoo_kb_refution:0 not_asserted_t(A,B,C);proven_t(A,B,C).
- logicmoo_kb_refution:1 not_assumed_t(A,B,C);assumed_t(A,B,C).
- logicmoo_kb_refution:2 not_proven_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:3 not_assertable_t(A,B,C);not_refuted_t(A,B,C),askable_t(A,B,C).
- logicmoo_kb_refution:4 not_both_t(proven_t(A,B,C),refuted_t(A,B,C));fallacy_t(A,B,C).
- logicmoo_kb_refution:5 not_assumed_t(A,B,C);not_refuted_t(A,B,C),assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:6 not_refuted_t(A,B,C);not_assumed_t(A,B,C),not_assertable_t(A,B,C),answerable_t(A,B,C).
- logicmoo_kb_refution:7 not_askable_t(A,B,C);proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:8 not_unknowable_t(A,B,C),answerable_t(A,B,C);not_answerable_t(A,B,C),unknowable_t(A,B,C).
- logicmoo_kb_refution:9 askable_t(A,B,C),askable_t(A,B,C);not_askable_t(A,B,C),fallacy_t(A,B,C).
- logicmoo_kb_refution:10 not_answerable_t(A,B,C);proven_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_refution:11 proven_t(A,B,C);unknowable_t(A,B,C);refuted_t(A,B,C).
- logicmoo_kb_logic:1 not_both_t(pred_t(ptSubclass,A,B),pred_isa_t(A,C));pred_isa_t(B,C).
- logicmoo_kb_logic:2 not_both_t(pred_t(subClass,A,C),mudIsa(B,A));mudIsa(B,C).
- logicmoo_kb_logic:3 not_pred_t(disjointWith,A,B);pred_isa_t(A,C);pred_isa_t(B,C).
- logicmoo_kb_logic:4 not_pred_t(disjointWith,A,C);mudIsa(B,A);mudIsa(B,C).
- logicmoo_kb_logic:5 not_both_t(pred_t(genlPreds,A,B),proven_t(A,C,D));proven_t(B,C,D).
- logicmoo_kb_logic:6 not_both_t(pred_t(genlPreds,B,A),refuted_t(A,C,D));refuted_t(B,C,D).
- logicmoo_kb_logic:7 not_both_t(pred_t(genlInverse,A,B),proven_t(A,D,C));proven_t(B,C,D).
- logicmoo_kb_logic:8 not_both_t(pred_t(negationPreds,A,B),proven_t(A,C,D));refuted_t(B,C,D).
- logicmoo_kb_logic:9 not_both_t(pred_t(negationInverse,A,B),proven_t(A,D,C));refuted_t(B,C,D).
- logicmoo_kb_logic:10 not_both_t(pred_isa_t(predIrreflexive,A),proven_t(A,C,B));refuted_t(A,B,C).
- logicmoo_example4:1 pred_t(genlInverse,mudParent,mudChild).
- logicmoo_example4:2 pred_t(genlPreds,mudMother,mudParent).
- logicmoo_example4:3 pred_isa_t(predIrreflexive,mudChild).
- logicmoo_example4:4 asserted_t(mudParent,iSon1,iFather1).
- logicmoo_example4:5 query:-not_assertable_t(mudChild,iSon1,iFather1).
- % 128 inferences, 0.000 CPU in 0.000 seconds (101% CPU, 2249679 Lips)
- Proof time: 0.00014401899999993972 seconds
- Proof:
- length = 2, depth = 1
- Goal# Wff# Wff Instance
- ----- ---- ------------
- [0] query query :- [1].
- [1] not_assertable_t(mudChild,iSon1,iFather1) not_assertable_t(mudChild,iSon1,iFather1) :- [2].
- [2] red refuted_t(mudChild,iSon1,iFather1).
- Proof end.
- % succceeded(user:pttp_prove(logicmoo_example4, query)).
- %
- :- dynamic pttp_test_took/3.
- pttp_test_took(chang_lee_example1, success, 0.010726194999999938).
- pttp_test_took(chang_lee_example2, success, 0.02066049999999997).
- pttp_test_took(chang_lee_example3, success, 0.002530323000000001).
- pttp_test_took(chang_lee_example4, success, 0.002452107000000092).
- pttp_test_took(chang_lee_example5, success, 0.006329876999999984).
- pttp_test_took(chang_lee_example6, success, 0.0007582100000000924).
- pttp_test_took(chang_lee_example7, success, 0.0006418990000001124).
- pttp_test_took(chang_lee_example8, success, 0.022421823000000174).
- pttp_test_took(chang_lee_example9, success, 0.0045343890000000275).
- pttp_test_took(logicmoo_example1, success, 0.0005869039999999437).
- pttp_test_took(logicmoo_example1_holds, success, 0.0005333629999997314).
- pttp_test_took(logicmoo_example2, success, 0.000433665000000083).
- pttp_test_took(logicmoo_example22, success, 0.0004565119999999645).
- pttp_test_took(logicmoo_example3, success, 0.0006172200000000849).
- pttp_test_took(logicmoo_example4, success, 0.0003437410000000085).
- Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.1.29-5-g0a3d88a-DIRTY)
- Copyright (c) 1990-2014 University of Amsterdam, VU Amsterdam
- SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
- and you are welcome to redistribute it under certain conditions.
- Please visit http://www.swi-prolog.org for details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement