starting work on determining how a variable is defined. For now, going with some simple XPath-type checks on the mathematics.