(expr: Expression)
| 1165 | } |
| 1166 | |
| 1167 | // 6. Inert/unknown set: store a membership fact (design §4.1 — this used |
| 1168 | // to throw "Invalid domain") |
| 1169 | if (isNumber(setExpr) || isString(setExpr)) return 'not-a-predicate'; |
| 1170 | const fact = ce.function('Element', [ce.symbol(symbol), setExpr]); |
| 1171 | if (!fact.isValid) return 'not-a-predicate'; |
| 1172 | ce.context.assumptions.set(fact, true); |
no test coverage detected