code: func (expr *Expr) IsEquality() bool {
  	terms, ok := expr.Terms.([]*Term)
  	if !ok {
  		return false
  	}
  	return terms[0].Value.Compare(Equality.Ref()) == 0
  }
docs: // IsEquality returns true if this is an equality expression.