MCPcopy Create free account
hub / github.com/dagit/rust-prolog / make_complementary

Function make_complementary

src/syntax.rs:284–312  ·  view source on GitHub ↗

Compute the complementary term for an atom. We assume the arity of `not` is exactly 1 and fail to produce a term if it is used at any other arity. Note: this also applies double negation elimination (eg., not(not(p)) = p).

(heap: &mut Heap, t: &Atom, lt: Lifetime)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

generate_contrapositivesFunction · 0.85
is_complementaryFunction · 0.85

Calls 2

insert_termMethod · 0.80
insert_stringMethod · 0.80

Tested by

no test coverage detected