Tell me more ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In my context literals are strings. How can I describe that the set $A$ contains literals $L$ using set notation? Like this?

$$\text{ Literal } \mathcal L $$

$$A = \{x \mid x = \mathcal L \}$$

share|improve this question
What exactly are you trying to describe here? What set is $A$ supposed to be? – Chris Eagle Feb 3 at 19:48
That the set A contains literals L, and that these literals are lexical representations of values. – Inge Henriksen Feb 3 at 19:50
1  
Is $\mathcal{L}$ the set of all "literals"? If so, one would express the fact that $A$ is a set of literals by writing $A \subseteq \mathcal{L}$ ($A$ is a subset of $\mathcal{L}$.) – Trevor Wilson Feb 3 at 20:11
What is a string, mathematically? Is it a finite sequence from some fixed alphabet? – Trevor Wilson Feb 3 at 20:12
1  
If, say, $\Sigma$ denotes some character set, then $\Sigma^*$ is sometimes used to denote the set of finite strings of characters in $\Sigma$. So you could say $A \subseteq \Sigma^*$. – Trevor Wilson Feb 3 at 20:27
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.