Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % \+ if_startup_script(sanity:reexport(kif_sanity_tests)).
- % autoloading listing_vars:append/3 from /usr/lib/swipl-7.5.10/library/lists
- % autoloading listing_vars:list_to_set/2 from /usr/lib/swipl-7.5.10/library/lists
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:229
- % :- test_boxlog(=>(~fallacy_t(PROP_VAR), v(v(unknown_t(PROP_VAR), false_t(PROP_VAR)), true_t(PROP_VAR)))).
- % autoloading common_logic_snark:gensym/2 from /usr/lib/swipl-7.5.10/library/gensym
- % autoloading common_logic_snark:maplist/2 from /usr/lib/swipl-7.5.10/library/apply
- % autoloading common_logic_snark:append/3 from /usr/lib/swipl-7.5.10/library/lists
- % kif :-
- % all(PROP,
- % =>(~fallacy_t(PROP), v(v(unknown_t(PROP), false_t(PROP)), true_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(~fallacy_t(PROP), v(v(unknown_t(PROP), false_t(PROP)), true_t(PROP))))).
- % autoloading common_logic_sanity:sub_term/2 from /usr/lib/swipl-7.5.10/library/occurs
- % autoloading common_logic_compiler:sub_term/2 from /usr/lib/swipl-7.5.10/library/occurs
- % nnf :-
- % all(PROP,
- % nesc(v(v(v(unknown_t(PROP), false_t(PROP)), true_t(PROP)), ~ (~fallacy_t(PROP))))).
- % unq :-
- % nesc(v(v(v(unknown_t(PROP), false_t(PROP)), true_t(PROP)), ~ (~fallacy_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( unknown_t(PROP)
- % ; false_t(PROP)
- % )
- % ; true_t(PROP)
- % )
- % ; ~ (~fallacy_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ (((n(unknown_t(PROP)), n(false_t(PROP))), n(true_t(PROP))), n(fallacy_t(PROP))).
- % autoloading snark_theorist:append/3 from /usr/lib/swipl-7.5.10/library/lists
- % autoloading common_logic_sanity:list_to_set/2 from /usr/lib/swipl-7.5.10/library/lists
- % autoloading mpred_type_wff:sub_term/2 from /usr/lib/swipl-7.5.10/library/occurs
- % autoloading common_logic_sanity:reverse/2 from /usr/lib/swipl-7.5.10/library/lists
- % autoloading dmsg:maplist/2 from /usr/lib/swipl-7.5.10/library/apply
- prove_unknown_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_true_t(PROP),
- prove_not_fallacy_t(PROP).
- prove_false_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_true_t(PROP),
- prove_not_fallacy_t(PROP).
- prove_true_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP),
- prove_not_true_t(PROP).
- % autoloading common_logic_boxlog:sub_term/2 from /usr/lib/swipl-7.5.10/library/occurs
- % autoloading lockable_vars:maplist/2 from /usr/lib/swipl-7.5.10/library/apply
- pfc :-
- prove_not_false_t(PROP), prove_not_true_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_true_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_false_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_false_t(PROP), prove_not_true_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:230
- % :- test_boxlog(=>(~unknown_t(PROP_VAR), v(true_t(PROP_VAR), false_t(PROP_VAR)))).
- % kif :-
- % all(PROP, =>(~unknown_t(PROP), v(true_t(PROP), false_t(PROP)))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(~unknown_t(PROP), v(true_t(PROP), false_t(PROP))))).
- % nnf :-
- % all(PROP, nesc(v(v(true_t(PROP), false_t(PROP)), ~ (~unknown_t(PROP))))).
- % unq :-
- % nesc(v(v(true_t(PROP), false_t(PROP)), ~ (~unknown_t(PROP)))).
- % th_nnf_in :-
- % ( ( true_t(PROP)
- % ; false_t(PROP)
- % )
- % ; ~ (~unknown_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ ((n(true_t(PROP)), n(false_t(PROP))), n(unknown_t(PROP))).
- prove_true_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_unknown_t(PROP).
- prove_false_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_unknown_t(PROP).
- prove_unknown_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_false_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_unknown_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_unknown_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:231
- % :- test_boxlog(=>(~false_t(PROP_VAR), v(v(fallacy_t(PROP_VAR), unknown_t(PROP_VAR)), true_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(~false_t(PROP), v(v(fallacy_t(PROP), unknown_t(PROP)), true_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(~false_t(PROP), v(v(fallacy_t(PROP), unknown_t(PROP)), true_t(PROP))))).
- % nnf :-
- % all(PROP,
- % nesc(v(v(v(fallacy_t(PROP), unknown_t(PROP)), true_t(PROP)), ~ (~false_t(PROP))))).
- % unq :-
- % nesc(v(v(v(fallacy_t(PROP), unknown_t(PROP)), true_t(PROP)), ~ (~false_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( fallacy_t(PROP)
- % ; unknown_t(PROP)
- % )
- % ; true_t(PROP)
- % )
- % ; ~ (~false_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ (((n(fallacy_t(PROP)), n(unknown_t(PROP))), n(true_t(PROP))), n(false_t(PROP))).
- prove_fallacy_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_true_t(PROP),
- prove_not_false_t(PROP).
- prove_unknown_t(PROP) :-
- prove_not_fallacy_t(PROP),
- prove_not_true_t(PROP),
- prove_not_false_t(PROP).
- prove_true_t(PROP) :-
- prove_not_fallacy_t(PROP),
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP).
- prove_false_t(PROP) :-
- prove_not_fallacy_t(PROP),
- prove_not_unknown_t(PROP),
- prove_not_true_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_true_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), prove_not_true_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), prove_not_unknown_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), prove_not_unknown_t(PROP), prove_not_true_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:232
- % :- test_boxlog(<=>(answerable_t(PROP_VAR), &(askable_t(PROP_VAR), ~unknown_t(PROP_VAR)))).
- % kif :-
- % all(PROP, <=>(answerable_t(PROP), &(askable_t(PROP), ~unknown_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(<=>(answerable_t(PROP), &(askable_t(PROP), ~unknown_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(&(nesc(v(askable_t(PROP), ~answerable_t(PROP))), nesc(v(~unknown_t(PROP), ~answerable_t(PROP)))), nesc(v(answerable_t(PROP), ~ &(askable_t(PROP), ~unknown_t(PROP)))))).
- % unq :-
- % &(&(nesc(v(askable_t(PROP), ~answerable_t(PROP))), nesc(v(~unknown_t(PROP), ~answerable_t(PROP)))), nesc(v(answerable_t(PROP), ~ &(askable_t(PROP), ~unknown_t(PROP))))).
- % th_nnf_in :-
- % ( ( askable_t(PROP)
- % ; ~answerable_t(PROP)
- % ),
- % ( ~unknown_t(PROP)
- % ; ~answerable_t(PROP)
- % )
- % ),
- % ( answerable_t(PROP)
- % ; ~ (askable_t(PROP), ~unknown_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ ((n(askable_t(PROP)), answerable_t(PROP);unknown_t(PROP), answerable_t(PROP));n(answerable_t(PROP)), askable_t(PROP), n(unknown_t(PROP))).
- prove_askable_t(PROP) :-
- prove_answerable_t(PROP).
- prove_not_answerable_t(PROP) :-
- prove_not_askable_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_answerable_t(PROP).
- prove_not_answerable_t(PROP) :-
- prove_unknown_t(PROP).
- prove_answerable_t(PROP) :-
- prove_askable_t(PROP),
- prove_not_unknown_t(PROP).
- prove_not_askable_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_answerable_t(PROP).
- prove_unknown_t(PROP) :-
- prove_askable_t(PROP),
- prove_not_answerable_t(PROP).
- pfc :-
- prove_answerable_t(PROP), {is_unit(PROP)}==>prove_askable_t(PROP).
- pfc :-
- prove_not_askable_t(PROP), {is_unit(PROP)}==>prove_not_answerable_t(PROP).
- pfc :-
- prove_answerable_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_answerable_t(PROP).
- pfc :-
- prove_askable_t(PROP), prove_not_unknown_t(PROP), {is_unit(PROP)}==>prove_answerable_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_answerable_t(PROP), {is_unit(PROP)}==>prove_not_askable_t(PROP).
- pfc :-
- prove_askable_t(PROP), prove_not_answerable_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:233
- % :- test_boxlog(=>(answerable_t(PROP_VAR), v(true_t(PROP_VAR), false_t(PROP_VAR)))).
- % kif :-
- % all(PROP, =>(answerable_t(PROP), v(true_t(PROP), false_t(PROP)))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(answerable_t(PROP), v(true_t(PROP), false_t(PROP))))).
- % nnf :-
- % all(PROP, nesc(v(v(true_t(PROP), false_t(PROP)), ~answerable_t(PROP)))).
- % unq :-
- % nesc(v(v(true_t(PROP), false_t(PROP)), ~answerable_t(PROP))).
- % th_nnf_in :-
- % ( ( true_t(PROP)
- % ; false_t(PROP)
- % )
- % ; ~answerable_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ ((n(true_t(PROP)), n(false_t(PROP))), answerable_t(PROP)).
- prove_true_t(PROP) :-
- prove_not_false_t(PROP),
- prove_answerable_t(PROP).
- prove_false_t(PROP) :-
- prove_not_true_t(PROP),
- prove_answerable_t(PROP).
- prove_not_answerable_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_false_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_answerable_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_answerable_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_not_answerable_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:234
- % :- test_boxlog(<=>(askable_t(PROP_VAR), ~fallacy_t(PROP_VAR))).
- % kif :-
- % all(PROP, <=>(askable_t(PROP), ~fallacy_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(<=>(askable_t(PROP), ~fallacy_t(PROP)))).
- % nnf :-
- % all(PROP,
- % &(nesc(v(askable_t(PROP), ~ (~fallacy_t(PROP)))), nesc(v(~askable_t(PROP), ~fallacy_t(PROP))))).
- % unq :-
- % &(nesc(v(askable_t(PROP), ~ (~fallacy_t(PROP)))), nesc(v(~askable_t(PROP), ~fallacy_t(PROP)))).
- % th_nnf_in :-
- % ( askable_t(PROP)
- % ; ~ (~fallacy_t(PROP))
- % ),
- % ( ~askable_t(PROP)
- % ; ~fallacy_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (n(askable_t(PROP)), n(fallacy_t(PROP));askable_t(PROP), fallacy_t(PROP)).
- prove_askable_t(PROP) :-
- prove_not_fallacy_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_askable_t(PROP).
- prove_not_askable_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_askable_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_askable_t(PROP).
- pfc :-
- prove_not_askable_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_askable_t(PROP).
- pfc :-
- prove_askable_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:235
- % :- test_boxlog(=>(askable_t(PROP_VAR), v(v(true_t(PROP_VAR), unknown_t(PROP_VAR)), false_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(askable_t(PROP), v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(askable_t(PROP), v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP))))).
- % nnf :-
- % all(PROP,
- % nesc(v(v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP)), ~askable_t(PROP)))).
- % unq :-
- % nesc(v(v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP)), ~askable_t(PROP))).
- % th_nnf_in :-
- % ( ( ( true_t(PROP)
- % ; unknown_t(PROP)
- % )
- % ; false_t(PROP)
- % )
- % ; ~askable_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (((n(true_t(PROP)), n(unknown_t(PROP))), n(false_t(PROP))), askable_t(PROP)).
- prove_true_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP),
- prove_askable_t(PROP).
- prove_unknown_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_false_t(PROP),
- prove_askable_t(PROP).
- prove_false_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_unknown_t(PROP),
- prove_askable_t(PROP).
- prove_not_askable_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_false_t(PROP), prove_askable_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_false_t(PROP), prove_askable_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_unknown_t(PROP), prove_askable_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_unknown_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_not_askable_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:236
- % :- test_boxlog(v(askable_t(PROP_VAR), fallacy_t(PROP_VAR))).
- % kif :-
- % all(PROP, v(askable_t(PROP), fallacy_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(v(askable_t(PROP), fallacy_t(PROP)))).
- % nnf :-
- % all(PROP, nesc(v(askable_t(PROP), fallacy_t(PROP)))).
- % unq :-
- % nesc(v(askable_t(PROP), fallacy_t(PROP))).
- % th_nnf_in :-
- % ( askable_t(PROP)
- % ; fallacy_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (n(askable_t(PROP)), n(fallacy_t(PROP))).
- prove_askable_t(PROP) :-
- prove_not_fallacy_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_askable_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_askable_t(PROP).
- pfc :-
- prove_not_askable_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:237
- % :- test_boxlog(=>(asserted_t(PROP_VAR), true_t(PROP_VAR))).
- % kif :-
- % all(PROP, =>(asserted_t(PROP), true_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(asserted_t(PROP), true_t(PROP)))).
- % nnf :-
- % all(PROP, nesc(v(true_t(PROP), ~asserted_t(PROP)))).
- % unq :-
- % nesc(v(true_t(PROP), ~asserted_t(PROP))).
- % th_nnf_in :-
- % ( true_t(PROP)
- % ; ~asserted_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (n(true_t(PROP)), asserted_t(PROP)).
- prove_true_t(PROP) :-
- prove_asserted_t(PROP).
- prove_not_asserted_t(PROP) :-
- prove_not_true_t(PROP).
- pfc :-
- prove_asserted_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), {is_unit(PROP)}==>prove_not_asserted_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:238
- % :- test_boxlog(=>(fallacy_t(PROP_VAR), &(&(&(false_t(PROP_VAR), true_t(PROP_VAR)), ~unknown_t(PROP_VAR)), ~possible_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(fallacy_t(PROP), &(&(&(false_t(PROP), true_t(PROP)), ~unknown_t(PROP)), ~possible_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(fallacy_t(PROP), &(&(&(false_t(PROP), true_t(PROP)), ~unknown_t(PROP)), ~possible_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(&(&(nesc(v(false_t(PROP), ~fallacy_t(PROP))), nesc(v(true_t(PROP), ~fallacy_t(PROP)))), nesc(v(~unknown_t(PROP), ~fallacy_t(PROP)))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP))))).
- % unq :-
- % &(&(&(nesc(v(false_t(PROP), ~fallacy_t(PROP))), nesc(v(true_t(PROP), ~fallacy_t(PROP)))), nesc(v(~unknown_t(PROP), ~fallacy_t(PROP)))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( false_t(PROP)
- % ; ~fallacy_t(PROP)
- % ),
- % ( true_t(PROP)
- % ; ~fallacy_t(PROP)
- % )
- % ),
- % ( ~unknown_t(PROP)
- % ; ~fallacy_t(PROP)
- % )
- % ),
- % ( ~possible_t(PROP)
- % ; ~fallacy_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (((n(false_t(PROP)), fallacy_t(PROP);n(true_t(PROP)), fallacy_t(PROP));unknown_t(PROP), fallacy_t(PROP));possible_t(PROP), fallacy_t(PROP)).
- prove_false_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_not_false_t(PROP).
- prove_true_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_not_true_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_possible_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_possible_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_false_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:239
- % :- test_boxlog(=>(&(true_t(PROP_VAR), false_t(PROP_VAR)), fallacy_t(PROP_VAR))).
- % kif :-
- % all(PROP, =>(&(true_t(PROP), false_t(PROP)), fallacy_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(&(true_t(PROP), false_t(PROP)), fallacy_t(PROP)))).
- % nnf :-
- % all(PROP, nesc(v(fallacy_t(PROP), ~ &(true_t(PROP), false_t(PROP))))).
- % unq :-
- % nesc(v(fallacy_t(PROP), ~ &(true_t(PROP), false_t(PROP)))).
- % th_nnf_in :-
- % ( fallacy_t(PROP)
- % ; ~ (true_t(PROP), false_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ (n(fallacy_t(PROP)), true_t(PROP), false_t(PROP)).
- prove_fallacy_t(PROP) :-
- prove_true_t(PROP),
- prove_false_t(PROP).
- prove_not_true_t(PROP) :-
- prove_false_t(PROP),
- prove_not_fallacy_t(PROP).
- prove_not_false_t(PROP) :-
- prove_true_t(PROP),
- prove_not_fallacy_t(PROP).
- pfc :-
- prove_true_t(PROP), prove_false_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_false_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- pfc :-
- prove_true_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:240
- % :- test_boxlog(v(v(true_t(PROP_VAR), unknown_t(PROP_VAR)), false_t(PROP_VAR))).
- % kif :-
- % all(PROP, v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP)))).
- % nnf :-
- % all(PROP, nesc(v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP)))).
- % unq :-
- % nesc(v(v(true_t(PROP), unknown_t(PROP)), false_t(PROP))).
- % th_nnf_in :-
- % ( ( true_t(PROP)
- % ; unknown_t(PROP)
- % )
- % ; false_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ ((n(true_t(PROP)), n(unknown_t(PROP))), n(false_t(PROP))).
- prove_true_t(PROP) :-
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP).
- prove_unknown_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_false_t(PROP).
- prove_false_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_unknown_t(PROP).
- pfc :-
- prove_not_unknown_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_unknown_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:242
- % :- test_boxlog(=>(true_t(PROP_VAR), possible_t(PROP_VAR))).
- % kif :-
- % all(PROP, =>(true_t(PROP), possible_t(PROP))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(true_t(PROP), possible_t(PROP)))).
- % nnf :-
- % all(PROP, nesc(v(possible_t(PROP), ~true_t(PROP)))).
- % unq :-
- % nesc(v(possible_t(PROP), ~true_t(PROP))).
- % th_nnf_in :-
- % ( possible_t(PROP)
- % ; ~true_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (n(possible_t(PROP)), true_t(PROP)).
- prove_possible_t(PROP) :-
- prove_true_t(PROP).
- prove_not_true_t(PROP) :-
- prove_not_possible_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:243
- % :- test_boxlog(=>(possible_t(PROP_VAR), &(~false_t(PROP_VAR), ~fallacy_t(PROP_VAR)))).
- % kif :-
- % all(PROP, =>(possible_t(PROP), &(~false_t(PROP), ~fallacy_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(possible_t(PROP), &(~false_t(PROP), ~fallacy_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(nesc(v(~possible_t(PROP), ~false_t(PROP))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP))))).
- % unq :-
- % &(nesc(v(~possible_t(PROP), ~false_t(PROP))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP)))).
- % th_nnf_in :-
- % ( ~possible_t(PROP)
- % ; ~false_t(PROP)
- % ),
- % ( ~possible_t(PROP)
- % ; ~fallacy_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (possible_t(PROP), false_t(PROP);possible_t(PROP), fallacy_t(PROP)).
- prove_not_possible_t(PROP) :-
- prove_false_t(PROP).
- prove_not_false_t(PROP) :-
- prove_possible_t(PROP).
- prove_not_possible_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_possible_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:245
- % :- test_boxlog(=>(~true_t(PROP_VAR), v(v(false_t(PROP_VAR), fallacy_t(PROP_VAR)), possible_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(~true_t(PROP), v(v(false_t(PROP), fallacy_t(PROP)), possible_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(~true_t(PROP), v(v(false_t(PROP), fallacy_t(PROP)), possible_t(PROP))))).
- % nnf :-
- % all(PROP,
- % nesc(v(v(v(false_t(PROP), fallacy_t(PROP)), possible_t(PROP)), ~ (~true_t(PROP))))).
- % unq :-
- % nesc(v(v(v(false_t(PROP), fallacy_t(PROP)), possible_t(PROP)), ~ (~true_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( false_t(PROP)
- % ; fallacy_t(PROP)
- % )
- % ; possible_t(PROP)
- % )
- % ; ~ (~true_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ (((n(false_t(PROP)), n(fallacy_t(PROP))), n(possible_t(PROP))), n(true_t(PROP))).
- prove_false_t(PROP) :-
- prove_not_fallacy_t(PROP),
- prove_not_possible_t(PROP),
- prove_not_true_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_possible_t(PROP),
- prove_not_true_t(PROP).
- prove_possible_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP),
- prove_not_true_t(PROP).
- prove_true_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP),
- prove_not_possible_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), prove_not_possible_t(PROP), prove_not_true_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_possible_t(PROP), prove_not_true_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_fallacy_t(PROP), prove_not_true_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_fallacy_t(PROP), prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:246
- % :- test_boxlog(<=>(false_t(PROP_VAR), &(&(~true_t(PROP_VAR), ~possible_t(PROP_VAR)), ~unknown_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % <=>(false_t(PROP), &(&(~true_t(PROP), ~possible_t(PROP)), ~unknown_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(<=>(false_t(PROP), &(&(~true_t(PROP), ~possible_t(PROP)), ~unknown_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(nesc(v(false_t(PROP), ~ &(&(~true_t(PROP), ~possible_t(PROP)), ~unknown_t(PROP)))), &(&(nesc(v(~false_t(PROP), ~true_t(PROP))), nesc(v(~false_t(PROP), ~possible_t(PROP)))), nesc(v(~false_t(PROP), ~unknown_t(PROP)))))).
- % unq :-
- % &(nesc(v(false_t(PROP), ~ &(&(~true_t(PROP), ~possible_t(PROP)), ~unknown_t(PROP)))), &(&(nesc(v(~false_t(PROP), ~true_t(PROP))), nesc(v(~false_t(PROP), ~possible_t(PROP)))), nesc(v(~false_t(PROP), ~unknown_t(PROP))))).
- % th_nnf_in :-
- % ( false_t(PROP)
- % ; ~ ((~true_t(PROP), ~possible_t(PROP)), ~unknown_t(PROP))
- % ),
- % ( ( ~false_t(PROP)
- % ; ~true_t(PROP)
- % ),
- % ( ~false_t(PROP)
- % ; ~possible_t(PROP)
- % )
- % ),
- % ( ~false_t(PROP)
- % ; ~unknown_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (n(false_t(PROP)), (n(true_t(PROP)), n(possible_t(PROP))), n(unknown_t(PROP));(false_t(PROP), true_t(PROP);false_t(PROP), possible_t(PROP));false_t(PROP), unknown_t(PROP)).
- prove_false_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_possible_t(PROP),
- prove_not_unknown_t(PROP).
- prove_true_t(PROP) :-
- prove_not_possible_t(PROP),
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP).
- prove_possible_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_unknown_t(PROP),
- prove_not_false_t(PROP).
- prove_unknown_t(PROP) :-
- prove_not_true_t(PROP),
- prove_not_possible_t(PROP),
- prove_not_false_t(PROP).
- prove_not_false_t(PROP) :-
- prove_true_t(PROP).
- prove_not_true_t(PROP) :-
- prove_false_t(PROP).
- prove_not_false_t(PROP) :-
- prove_possible_t(PROP).
- prove_not_possible_t(PROP) :-
- prove_false_t(PROP).
- prove_not_false_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_false_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_possible_t(PROP), prove_not_unknown_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), prove_not_unknown_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_true_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_unknown_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_true_t(PROP), prove_not_possible_t(PROP), prove_not_false_t(PROP), {is_unit(PROP)}==>prove_unknown_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:247
- % :- test_boxlog(=>(true_t(PROP_VAR), &(&(~false_t(PROP_VAR), possible_t(PROP_VAR)), ~unknown_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(true_t(PROP), &(&(~false_t(PROP), possible_t(PROP)), ~unknown_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(true_t(PROP), &(&(~false_t(PROP), possible_t(PROP)), ~unknown_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(&(nesc(v(possible_t(PROP), ~true_t(PROP))), nesc(v(~false_t(PROP), ~true_t(PROP)))), nesc(v(~unknown_t(PROP), ~true_t(PROP))))).
- % unq :-
- % &(&(nesc(v(possible_t(PROP), ~true_t(PROP))), nesc(v(~false_t(PROP), ~true_t(PROP)))), nesc(v(~unknown_t(PROP), ~true_t(PROP)))).
- % th_nnf_in :-
- % ( ( possible_t(PROP)
- % ; ~true_t(PROP)
- % ),
- % ( ~false_t(PROP)
- % ; ~true_t(PROP)
- % )
- % ),
- % ( ~unknown_t(PROP)
- % ; ~true_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ ((n(possible_t(PROP)), true_t(PROP);false_t(PROP), true_t(PROP));unknown_t(PROP), true_t(PROP)).
- prove_possible_t(PROP) :-
- prove_true_t(PROP).
- prove_not_true_t(PROP) :-
- prove_not_possible_t(PROP).
- prove_not_false_t(PROP) :-
- prove_true_t(PROP).
- prove_not_true_t(PROP) :-
- prove_false_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_true_t(PROP).
- prove_not_true_t(PROP) :-
- prove_unknown_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:248
- % :- test_boxlog(=>(~asserted_t(PROP_VAR), v(v(possible_t(PROP_VAR), false_t(PROP_VAR)), fallacy_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(~asserted_t(PROP), v(v(possible_t(PROP), false_t(PROP)), fallacy_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(~asserted_t(PROP), v(v(possible_t(PROP), false_t(PROP)), fallacy_t(PROP))))).
- % nnf :-
- % all(PROP,
- % nesc(v(v(v(possible_t(PROP), false_t(PROP)), fallacy_t(PROP)), ~ (~asserted_t(PROP))))).
- % unq :-
- % nesc(v(v(v(possible_t(PROP), false_t(PROP)), fallacy_t(PROP)), ~ (~asserted_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( possible_t(PROP)
- % ; false_t(PROP)
- % )
- % ; fallacy_t(PROP)
- % )
- % ; ~ (~asserted_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ (((n(possible_t(PROP)), n(false_t(PROP))), n(fallacy_t(PROP))), n(asserted_t(PROP))).
- prove_possible_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP),
- prove_not_asserted_t(PROP).
- prove_false_t(PROP) :-
- prove_not_possible_t(PROP),
- prove_not_fallacy_t(PROP),
- prove_not_asserted_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_possible_t(PROP),
- prove_not_false_t(PROP),
- prove_not_asserted_t(PROP).
- prove_asserted_t(PROP) :-
- prove_not_possible_t(PROP),
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_fallacy_t(PROP), prove_not_asserted_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), prove_not_fallacy_t(PROP), prove_not_asserted_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), prove_not_false_t(PROP), prove_not_asserted_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), prove_not_false_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_asserted_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:249
- % :- test_boxlog(=>(~possible_t(PROP_VAR), v(false_t(PROP_VAR), fallacy_t(PROP_VAR)))).
- % kif :-
- % all(PROP, =>(~possible_t(PROP), v(false_t(PROP), fallacy_t(PROP)))).
- % qualify_nesc :-
- % all(PROP, nesc(=>(~possible_t(PROP), v(false_t(PROP), fallacy_t(PROP))))).
- % nnf :-
- % all(PROP,
- % nesc(v(v(false_t(PROP), fallacy_t(PROP)), ~ (~possible_t(PROP))))).
- % unq :-
- % nesc(v(v(false_t(PROP), fallacy_t(PROP)), ~ (~possible_t(PROP)))).
- % th_nnf_in :-
- % ( ( false_t(PROP)
- % ; fallacy_t(PROP)
- % )
- % ; ~ (~possible_t(PROP))
- % ).
- % th_nnf_out :-
- % ~ ((n(false_t(PROP)), n(fallacy_t(PROP))), n(possible_t(PROP))).
- prove_false_t(PROP) :-
- prove_not_fallacy_t(PROP),
- prove_not_possible_t(PROP).
- prove_fallacy_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_possible_t(PROP).
- prove_possible_t(PROP) :-
- prove_not_false_t(PROP),
- prove_not_fallacy_t(PROP).
- pfc :-
- prove_not_fallacy_t(PROP), prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_false_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_fallacy_t(PROP).
- pfc :-
- prove_not_false_t(PROP), prove_not_fallacy_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:250
- % :- test_boxlog(=>(possible_t(PROP_VAR), &(~false_t(PROP_VAR), ~fallacy_t(PROP_VAR)))).
- % kif :-
- % all(PROP, =>(possible_t(PROP), &(~false_t(PROP), ~fallacy_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(possible_t(PROP), &(~false_t(PROP), ~fallacy_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(nesc(v(~possible_t(PROP), ~false_t(PROP))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP))))).
- % unq :-
- % &(nesc(v(~possible_t(PROP), ~false_t(PROP))), nesc(v(~possible_t(PROP), ~fallacy_t(PROP)))).
- % th_nnf_in :-
- % ( ~possible_t(PROP)
- % ; ~false_t(PROP)
- % ),
- % ( ~possible_t(PROP)
- % ; ~fallacy_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (possible_t(PROP), false_t(PROP);possible_t(PROP), fallacy_t(PROP)).
- prove_not_possible_t(PROP) :-
- prove_false_t(PROP).
- prove_not_false_t(PROP) :-
- prove_possible_t(PROP).
- prove_not_possible_t(PROP) :-
- prove_fallacy_t(PROP).
- prove_not_fallacy_t(PROP) :-
- prove_possible_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_fallacy_t(PROP), {is_unit(PROP)}==>prove_not_possible_t(PROP).
- pfc :-
- prove_possible_t(PROP), {is_unit(PROP)}==>prove_not_fallacy_t(PROP).
- % /home/prologmud_server/lib/swipl/pack/logicmoo_base/prolog/logicmoo/common_logic/common_logic_sanity.pl:251
- % :- test_boxlog(=>(unknown_t(PROP_VAR), &(&(&(~true_t(PROP_VAR), possible_t(PROP_VAR)), ~asserted_t(PROP_VAR)), ~false_t(PROP_VAR)))).
- % kif :-
- % all(PROP,
- % =>(unknown_t(PROP), &(&(&(~true_t(PROP), possible_t(PROP)), ~asserted_t(PROP)), ~false_t(PROP)))).
- % qualify_nesc :-
- % all(PROP,
- % nesc(=>(unknown_t(PROP), &(&(&(~true_t(PROP), possible_t(PROP)), ~asserted_t(PROP)), ~false_t(PROP))))).
- % nnf :-
- % all(PROP,
- % &(&(&(nesc(v(possible_t(PROP), ~unknown_t(PROP))), nesc(v(~true_t(PROP), ~unknown_t(PROP)))), nesc(v(~asserted_t(PROP), ~unknown_t(PROP)))), nesc(v(~false_t(PROP), ~unknown_t(PROP))))).
- % unq :-
- % &(&(&(nesc(v(possible_t(PROP), ~unknown_t(PROP))), nesc(v(~true_t(PROP), ~unknown_t(PROP)))), nesc(v(~asserted_t(PROP), ~unknown_t(PROP)))), nesc(v(~false_t(PROP), ~unknown_t(PROP)))).
- % th_nnf_in :-
- % ( ( ( possible_t(PROP)
- % ; ~unknown_t(PROP)
- % ),
- % ( ~true_t(PROP)
- % ; ~unknown_t(PROP)
- % )
- % ),
- % ( ~asserted_t(PROP)
- % ; ~unknown_t(PROP)
- % )
- % ),
- % ( ~false_t(PROP)
- % ; ~unknown_t(PROP)
- % ).
- % th_nnf_out :-
- % ~ (((n(possible_t(PROP)), unknown_t(PROP);true_t(PROP), unknown_t(PROP));asserted_t(PROP), unknown_t(PROP));false_t(PROP), unknown_t(PROP)).
- prove_possible_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_not_possible_t(PROP).
- prove_not_true_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_true_t(PROP).
- prove_not_asserted_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_asserted_t(PROP).
- prove_not_false_t(PROP) :-
- prove_unknown_t(PROP).
- prove_not_unknown_t(PROP) :-
- prove_false_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_possible_t(PROP).
- pfc :-
- prove_not_possible_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_true_t(PROP).
- pfc :-
- prove_true_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_asserted_t(PROP).
- pfc :-
- prove_asserted_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- pfc :-
- prove_unknown_t(PROP), {is_unit(PROP)}==>prove_not_false_t(PROP).
- pfc :-
- prove_false_t(PROP), {is_unit(PROP)}==>prove_not_unknown_t(PROP).
- :- dynamic clif/1.
- :- multifile clif/1.
- :- public clif/1.
- :- module_transparent clif/1.
- :- dynamic boxlog/1.
- :- multifile boxlog/1.
- :- public boxlog/1.
- :- module_transparent boxlog/1.
- :- dynamic boxlog/1.
- :- multifile boxlog/1.
- :- public boxlog/1.
- :- module_transparent boxlog/1.
- :- dynamic pfclog/1.
- :- multifile pfclog/1.
- :- public pfclog/1.
- :- module_transparent pfclog/1.
- :- dynamic pfclog/1.
- :- multifile pfclog/1.
- :- public pfclog/1.
- :- module_transparent pfclog/1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement