I have two functions of time: $f(t)$ and $g(t)$.
These functions oscillate over time at different rates.
I am hoping to build a set, $S$, that contains all of the times at which $f(t) = X$, as well as those times at which $g(t) = X$. Below is my attempt at building this set.
$S=\{t | \forall i \in \{f, g\}: i(t)=X\}$.
Is this correct? Is there an easier way to build this set?
This describes the set of all times $t$, for which $f(t) = g(t) = X$, but reading your description I think you want the set of all times $t$ for which either $f(t) =X$ or $g(t) = X$. In your notation, this is $$ S = \{t : \exists i \in \{f,g\}. i(t) = X\}. $$ I also think that this is quite an unusual ansatz to write this set, I'd write something like $$ S = \{t: f(t) = X \vee g(t) = X \} $$ or even, using the preimage operation $$ S = f^{-1}[\{X\}] \cup g^{-1}[\{X\}]. $$