📄 fig15_8.pl
字号:
% Figure 15.8 Generating proof trees.
% is_true( P, Proof) Proof is a proof that P is true
:- op( 800, xfx, <=).
is_true( P, P) :-
fact( P).
is_true( P, P <= CondProof) :-
if Cond then P,
is_true( Cond, CondProof).
is_true( P1 and P2, Proof1 and Proof2) :-
is_true( P1, Proof1),
is_true( P2, Proof2).
is_true( P1 or P2, Proof) :-
is_true( P1, Proof)
;
is_true( P2, Proof).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -