A Little Bit of Background (May Be Skipped)
It's been about 40 years since learning higher math like partial differential equation and linear algebra including simple tensors but never needed much of it. Now I'm working on a Wolfram Mathematica programming project that also requires describing solution sets in set builder notation. Below is what I have come up with and I am not even sure if I used all math symbols correctly.
For example at first I was not certain if I had used the correct symbol for And (in programming &&
means And) or Or (in programming ||
means Or) which is how I would have written these two symbols if I had not researched them first. Although I know all Tex symbols are rendering correctly I do not really know if I am using any math symbols (probably learned before you were born) that are now considered deprecated or were never in the official standard. For example throughout high school and most of my college years and even in textbooks $\mathbb{I}$ was used for the set of all integers. It wasn't until my final college year that I discovered the correct form is $\mathbb{Z}$.
One more example of how set builder notation has changed. In my youth the preference was the tall upright bar $|$ for such that but since then I have also seen $:$ and $\ni$. I still prefer the bar because it stands out but takes almost no space and it is very clear from the context that it cannot be other similar symbols.
Why I Believe Sometimes Set Builder Notation Can Be Abbreviated (May Be Skipped)
However I prefer not to use such that $|$ if possible. The reason that I might for example write a compacted set as $\{x,y,z \in \mathbb{R} \geq 1\}$ instead of the longer more proper form $\{\{x,y,z\} \in \mathbb{R} |\{x,y,z\} \geq 1\}$ is that the longer form is often redundant and unnecessary. It should be clear that an ungrouped (no brackets) sequence of variables not yet defined will all take on the same definition that immediately follows the last variable. The such that $|$ step can be omitted when it is clear from the context of the problem that all values that all variables can take on are also an infinite set.
This is done all the time in computer science especially when writing programs. However I can only defend this if I know I can write the set in proper form which is why I ask for this first. One final caveat: I have not lost any respect for mathematics. I would never do this for writing proofs or formal papers or in teaching.
Finally The Problem at Hand (edited)
Note: this section was edited after noticing that Eike Schulte very generously left a very thoughtful Answer showing a long list of everything wrong with my first attempt but before actually reading it. It motivated me to rewrite it as a test to myself because I knew I could do better.
Set $A$ is my second original set in what I believe is close to proper set notation...
$$A: \{\{n,h\} \in \mathbb{Z}|\{n,h\} \geq 0 \lor n \in \mathbb{Z}|n \geq 0 \land h = +\infty\}$$
Set $B$ is my best attempt to compact $A$ in proper set notation (I think?)...
$$B: \{n \in \mathbb{Z} | n\geq 0, h \in \{n, +\infty\}\}$$
In summary you may help by...
(1.) Validate that sets $A$ and $B$ are both written correctly by most current standards or practices and if both sets are equivalent. I do not believe either set is correct. Next I ask how to correct $B$ (and $A$ if you have time) for the shortest correctly written set (less is more) without losing definition. Pease comment below validating this or suggesting edits. Thank you for sharing your expertise. Item 2 may be ignored but I leave it as a reference to myself.
(2.) Why is my fat Z (written as $\Z$) for the set of all Integers not rendering correctly? I used a Latex source for that. Should I have instead referenced a Tex source? Nevermind I figured out how to write $\mathbb{Z}$ and found the greatest tutorial right here in SE Math Meta MathJax