A famous example of a so called syntactic consequence is a typing judgment: ex. if a context says a function f is of type t to t, and x is of type t, then the expression f(x) is valid and of type t. That is, f(x), taken for a sequence of symbols, although looking correct, may or may not be a valid expression (which is not the same as True or False, which may not even apply) for the example language.
This looks like what we would refer to in every day wordings, as grammatically correct vs syntactically correct; the former implying the latter but not the other way.
For mathematics, it seems syntax means something stronger than what syntax means in every day wording. Since it includes both of what we would call in every day wordings, syntax and grammar, that is, language rules. So I was wondering if it is OK to better explain syntactic consequence as language rules consequence. Or would this be ambiguous in some way, potentially leading into misunderstanding?
I am wondering about it, because I feel the common understanding of the word “syntax”, suggests something weaker than what it actually is to mathematics and this divergence makes it easy to miss a big part of what “syntactic consequence” means. Ex. common compilers distinguish syntax errors and type errors, as an example showing how the common word “syntax”, seems to not mean the same as the same word in maths and logic.