MENTAL
 Main Menu
 Language
 Derivatives
 Depth


Depth
 DEPTH

"Depth is the first and most primordial dimension" (Maurice Merlau-Ponty).

"Depth is the dimension by which things or the elements of things envelop one another" (Maurice Merlau-Ponty).



Semantics

The depth of an expression is equal to the number of levels in the hierarchy of that expression. It is equal to the number of levels of parentheses (explicit or implicit).


Syntax
Definition

⟨( x$ = (1 ← (x = x↓) →' (1 + x↓$))) )⟩

The definition is recursive:
Justification

Depth is the other property of expressions, which complements length.


Examples
Conceptual recursion

The expression x$$$ specifies the depth of order 2 (depth of the depth of x). The result is always 1, since x$ is always a natural number. Examples:
  1. (x = (a b c))
    x$ // ev. 1
    x$$ // ev. 1 (the depth of 1)


  2. (x = (a (b (c) d))
    x$ // ev. 2
    x$$ // ev. 1 (the depth of 2)

Properties
  1. ((α°)$ = 1) // the depth, in this case, refers to the pure symbol

  2. ((Ω°)$ = 1) // id.

  3. ⟨( (x$$ = 1 )⟩ // since x$ is always a natural number

  4. (θ$ = $) // the depth cannot be applied to the null expression

  5. ⟨( (x# = 1) → x$ = 1 )⟩ // atoms have depth 1