chacana.checker¶
Static type checker for tensor expressions.
chacana.checker
¶
Static type checker for Chacana AST.
Rules 1 (contraction), 2 (free index invariance), 3 (symmetry validity).
check(token: ValidationToken, ctx: GlobalContext | None = None) -> ValidationToken
¶
Run all type checks on a ValidationToken. Returns the token if valid.