I am trying to formalize an algorithm using the set-builder notation. Having an array B of values $d$: $$ B = [d_1,d_2, \ldots,d_n] $$ For instance, I want to define a new list $A$ containing the values $d$ that are greater than a value $h$. The order is important and there could be also values with the same distances. So the following expression using the set-builder notation is wrong: $$ A = \{\ d_i \ |\ d_i \in\ B , \ d_i >h \} $$ Can I use the set-builder notation for creating list of values? So far I though this could be a solution, but I don't know if it is acepted: $$ A = (\ d_i \ |\ d_i \in\ B , \ d_i >h ) $$
2026-04-13 04:33:09.1776054789
How can I use set-builder notation for creating lists?
510 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in ELEMENTARY-SET-THEORY
- how is my proof on equinumerous sets
- Composition of functions - properties
- Existence of a denumerble partition.
- Why is surjectivity defined using $\exists$ rather than $\exists !$
- Show that $\omega^2+1$ is a prime number.
- A Convention of Set Builder Notation
- I cannot understand that $\mathfrak{O} := \{\{\}, \{1\}, \{1, 2\}, \{3\}, \{1, 3\}, \{1, 2, 3\}\}$ is a topology on the set $\{1, 2, 3\}$.
- Problem with Cartesian product and dimension for beginners
- Proof that a pair is injective and surjective
- Value of infinite product
Related Questions in NOTATION
- Symbol for assignment of a truth-value?
- Does approximation usually exclude equality?
- Is division inherently the last operation when using fraction notation or is the order of operation always PEMDAS?
- Question about notation $S^c$
- strange partial integration
- What does Kx mean in this equation? [in Carnap or Russell and Whitehead's logical notation]
- Need help with notation. Is this lower dot an operation?
- What does this "\" mathematics symbol mean?
- Why a set or vector start counting from a negative or zero index?
- How to express a sentence having two for all?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Ultimately notation is not so much about being technically correct, it is about being understood. Set builder notation is so standard, that any mathematically educated person reading it will understand what it means, which makes it a good notation (this is also what makes it meaningful to speak of "correct" and "incorrect" set builder notation).
Since you are not looking to define a set, set builder notation is not really what you are looking for. The question is: how can you succinctly express what you are going for without being confusing?
Your original notation $$ A = (d_i \mid d_i \in B, d_i > h) $$ is not standard. However, I would likely understand it if it was clear from context that $A$ should be an array (or sequence) and that the ordering of $A$ matters. Personally I think this notation could be improved by replacing $d_i \in B$ with $1 \leq i \leq n$; because $B = [d_1\ \ldots d_n]$, the fact that $d_i \in B$ is essentially redundant, and anyway $d_i \in B$ is not really standard notation when $B$ is not a set.
An equally formal definition of $A$ would be: "$A$ is the subsequence of $B$ consisting of all entries in $B$ which are larger than $h$". Since there is less possibility of misunderstanding in this English sentence than in the mathematical expression, this is arguably more formal, not less, even though it is written in natural language rather than in mathematical symbols.