MENTAL
 Main Menu
 Language
 Primitives
 Condition


Condition
 CONDITION

"Every proposition of logic is a modus ponens represented in signs" (Wittgenstein, Tractatus 6.1264).

"Since it is possible to get by with only one means of inference [modus ponens], then it is a precept of clarity to do so" (Frege).

"Logic has no existence independent of mathematics" (Tobias Dantzig).



Direct Condition

Semantics

Whether or not to consider a certain expression x depending on whether another expression y exists: The expression y is called "condition". The expression x is the "action" to be taken if the condition is met.


Syntax The mnemonic rule is that the symbol points to the action.


Justification

The condition is the basic element of the decision, which allows us to consider something or not based on a specific circumstance (the condition).


Examples
  1. (a = 3)
    ((x + y) ← a) // ev. (x + y)


  2. (x = 1)
    (y = 2)
    (a ← (x+y)) // ev. a


  3. (b = θ)
    ((a b c) ← b) // ev. θ


  4. (x = 1)
    (y = 2)
    ((z = x+y) ← α) // ev. (z = 3)


  5. (a = 2)
    (b = 3)
    (x ← a=b) // ev. θ
    (x ← (a =' b)) // ev. x
    (x ← (a ≠ b)) // ev. x
    (x ← a>b) // ev. θ
    (x ← a≥b) // ev. θ
    (x ← a<b) // ev. x
    (x ← a≤b) // ev. x


  6. (a = 2)
    (b = 2)
    (x ← a≡b) // ev. x
    (x ← (a ≡' b)) // ev. θ


  7. x←{a b} // ev. {a b}

Remarks
Axioms
  1. ⟨( (xy) ≡ (yx) )⟩ //by definition

  2. ⟨( (x ← θ) = θ )⟩ // by definition

  3. ⟨( (x ← α) = x )⟩

    The expression α acting as a condition is a universal condition, and is the default condition of every expression (i.e., if no condition is specified).

  4. ⟨( (x ← ()) = x )⟩ // the empty sequence exists

  5. ⟨( (x ← (y = y)) = x )⟩

  6. ⟨( (x ← (y =' y)) = θ )⟩

  7. ⟨( (x ← (yy)) = x )⟩

  8. ⟨( (x ← (y ≡' y)) = θ )⟩

  9. ⟨( (xx) = x )⟩ // idempotence

    In effect:
    If x≠θ, (x←x) ev. x
    If x=θ, (x←x) ev. θ

  10. ⟨( ((xc1) ← c2) ≡ (x ← (c1c2)) )⟩ //associativity

    Indeed, since the possible values of c1 and c2 to be considered are, in short, θ and α, we have:

    c1c2xc1(xc1)←c2c1c2x←(c1c2)
    θθθθθθ
    θαθθθθ
    αθxθθθ
    ααxxαx

  11. ⟨( (θ ← x) = θ )⟩

  12. ⟨( ( ((xy) ← y) = (xy) )⟩ // reduction

  13. ⟨( (x = y) → ((zx) ≡ (zy))) )⟩

  14. ⟨( (x = y) → ((xz) ≡ (yz))) )⟩

  15. ⟨( (xy) → ((zx) ≡ (zy))) )⟩

  16. ⟨( (xy) → ((xz) ≡ (yz))) )⟩

  17. ⟨( (yxz) ≡ (yzx) )⟩

  18. ( {⟨( xxx) )⟩} = ∅ )
    (there is no expression other than itself)

  19. ( {⟨( xx=x) )⟩} = {Ω} )
    (all expressions are equal to themselves)

Multiple conditions

If we have two conditions, x and y, to specify that one of them is fulfilled: (to get z it is sufficient that x or y exist)

This expression is the analogous to the logical "or" (OR) of two conditions.

If we want the two conditions to be met, (to obtain x y and z must be fulfilled)

This expression is the analogue of the logical "and" (AND) of two conditions.

These conditional operations can be generalized to n conditions.


Contrary (Derived) Condition

Semantics

Do not consider the expression x if the condition y is met, or (which is the same) consider the expression x if the condition y is not met.


Syntax
Definition

⟨( (x ←' y) = ((y = θ) → x) )⟩
Axioms
  1. ⟨( (x ←' x) = θ )⟩

    In effect:
    If x ≠ θ, (x ←' x) ev. θ
    If x = θ, (x ←' x) ev. x ev. θ

  2. ⟨( (x ←' θ) = x )⟩

  3. ⟨( (θ ←' x) = θ )⟩

  4. ⟨( (x ←' α) = θ )⟩

Complete Conditional Expression (Derivative)

Semantics and Syntax

A complete conditional expression is one that includes a condition and its opposite: Both expressions indicate to evaluate as x if y exists; otherwise, evaluate as z.

The complete conditional expression is analogous to the classic If-Then-Else.


Definition

⟨( (xy →' z) = ((xy) (z →' y))) )⟩


Examples
  1. The function

    xy
    1a
    other valueb

    would be coded like this:
    (y = (a ← x=1 →' b))

  2. The function

    xy
    1a
    2b
    other valuec

    would be coded like this:
    (y = ((a ← x=1 →' (b ← x=2 →' c))

    where two complete conditional expressions are nested.

Axioms
  1. ⟨( (xy) ≡ (θ ←' xy) )⟩

  2. ⟨( (xc →' x) = x )⟩

  3. ⟨(xc →' (yc →' z)) = (xc →' z)⟩
    Intermediate expression override

  4. ⟨( ((xc) y) ≡ ((x y) ← c →' y) )⟩

  5. ⟨( ((xc →' y) zx z) ← c →' (y z)) )⟩

Conditional Equivalence (Derivative)

Semantics

Two expressions, x and y, are conditionally equivalent when x←y and y←x are verified at the same time.


Syntax
Definition

⟨( (xy) =: {(xy) (yx)} )⟩


Examples
  1. (a+b = c) ↔ (c-a = b)

  2. (a-b = c) ↔ (c+b = a)

Axioms
  1. ⟨( (xx) = x )⟩

  2. ⟨( (xy) → (xy) )⟩ //by definition

  3. ⟨( (xy) → (yx) )⟩ // by definition

  4. ⟨( (xy) ≡ (yx) )⟩ // commutativity (by definition)

  5. >⟨( (xy) → ((zx) ≡ (zy))) )⟩
    If two expressions are conditionally equivalent, then they are interchangeable as a condition.

  6. ⟨( (x-y = z) ↔ (z+y = x) )⟩

  7. ⟨( (x' = y) ↔ (y' = x) )⟩