This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
TP-KRR/pip3/fd.lp
vandechat96 532cbee5f0 add pip3
2023-07-03 19:34:20 +02:00

8 lines
287 B
Plaintext

#show closure/1.
% In the closuer if in the set
closure(X) :- set(X).
% Functional dependency is not active if a left value is not in the closure
ko(F) :- left(F,X), not closure(X).
% If functional dependency is active add right part to the closure
closure(X) :- right(F, X), not ko(F).