diff --git a/ivy/ivy_compiler.py b/ivy/ivy_compiler.py index caa28f26..5b37fcb1 100644 --- a/ivy/ivy_compiler.py +++ b/ivy/ivy_compiler.py @@ -1553,7 +1553,7 @@ def checkdef(sym,lf): raise IvyError(side_effects[s],'immutable symbol assigned. \n{} info: symbol is used in axiom here'.format(lf.lineno)) for lf in mod.definitions: - s = lf.formula.lhs() + s = lf.formula.lhs().rep if s in side_effects: raise IvyError(side_effects[s],'immutable symbol assigned. \n{} Symbol is defined here'.format(lf.lineno))