sbool ai_cache_hasTriple_debug; static bool ai_cache_hasTriple(S a, S b, S c) { if (a == null || b == null || c == null) false; if (ai_useThoughtSpaces()) ret thoughtSpace().hasTriple(symbol(a), symbol(b), symbol(c)); AI_CacheChecker checker = ai_cacheChecker(); if (checker != null && checker.hasTriple(symbol(a), symbol(b), symbol(c))) true; L webs = ai_fewestIndexedWebs(a, b, c); bool x = webs_search_noVar_bool(webFromTriple(a, b, c), webs); if (ai_cache_hasTriple_debug) print("hasTriple: " + sfuLL(a, b, c, x) + ", searched " + nWebs(webs)); ret x; } static bool ai_cache_hasTriple(T3 t) { ret ai_cache_hasTriple(t.a, t.b, t.c); }