# Definition:Real Interval/Unit Interval

## Definition

A unit interval is a real interval whose endpoints are $0$ and $1$:

 $\ds \openint 0 1$ $:=$ $\ds \set {x \in \R: 0 < x < 1}$ $\ds \hointr 0 1$ $:=$ $\ds \set {x \in \R: 0 \le x < 1}$ $\ds \hointl 0 1$ $:=$ $\ds \set {x \in \R: 0 < x \le 1}$ $\ds \closedint 0 1$ $:=$ $\ds \set {x \in \R: 0 \le x \le 1}$

### Closed

The closed interval from $0$ to $1$ is denoted $\mathbb I$ (or a variant) by some authors:

$\mathbb I := \closedint 0 1 = \set {x \in \R: 0 \le x \le 1}$

This is often referred to as the closed unit interval.

### Open

The open interval between $0$ and $1$ is referred to as the open unit interval.

$\left({0 \,.\,.\, 1}\right) = \left\{ {x \in \R: 0 < x < 1}\right\}$

## Notation

An arbitrary (real) interval is frequently denoted $\mathbb I$.

Sources which use the $\textbf {boldface}$ font for the number sets $\N, \Z, \Q, \R, \C$ tend also to use $\mathbf I$ for this entity.

Some sources merely use the ordinary $\textit {italic}$ font $I$.

Some sources prefer to use $J$.

### Wirth Interval Notation

The notation used on this site to denote a real interval is a fairly recent innovation, and was introduced by Niklaus Emil Wirth:

 $\ds \openint a b$ $:=$ $\ds \set {x \in \R: a < x < b}$ Open Real Interval $\ds \hointr a b$ $:=$ $\ds \set {x \in \R: a \le x < b}$ Half-Open (to the right) Real Interval $\ds \hointl a b$ $:=$ $\ds \set {x \in \R: a < x \le b}$ Half-Open (to the left) Real Interval $\ds \closedint a b$ $:=$ $\ds \set {x \in \R: a \le x \le b}$ Closed Real Interval

The term Wirth interval notation has consequently been coined by $\mathsf{Pr} \infty \mathsf{fWiki}$.