324 Necessity and existence— Modal logic and Existence Derived

(from C0, C16, C22–C25, branch N.) Nothing new is introduced. Possibility and necessity are the join with a relation between worlds and its adjoint; existence is “some” (C22). The statement that something is, in every world, is then read off the source.

ME1. Worlds, possibly, necessarily. Let \(W\) be a kind of worlds and \(R\) a relation on it (C25): \(R(w,v)\) when \(v\) is seen from \(w\). A statement is a part \(p\) of \(W\). Put

\[ (\Diamond p)(w)=\exists v\,(R(w,v)\wedge p(v)),\qquad (\Box p)(w)=\forall v\,(R(w,v)\Rightarrow p(v)). \]
\(\Diamond p\) is the join \(R;p\) of TR6, and \(\Box \) is on the other side of the same matching (C10): for parts \(p,q\),
\[ R^{\circ };q\le p\iff q\le \Box p . \]
Hence \(\Box p=\neg \Diamond \neg p\), and
\[ \Diamond 0=R;0=0 , \]
since a join with nothing is nothing.

ME2. The laws of the modalities are the laws of branch N.

law holds when that is in branch N
\(\Box p\le p\) \(E\le R\) reflexive TR22
\(p\le \Box \Diamond p\) \(R^{\circ }=R\) symmetric TR15
\(\Box p\le \Box \Box p\) \(R;R\le R\) transitive TR14
all three \(R\) a quotient of \(W\) a symmetric idempotent with \(E\le R\) TR17, TR21

The three laws are the identity, the reverse and the join (TR26).

ME3. When every world sees every world. Let \(R\) relate all to all. Then \(\Box p=\forall w\,p(w)\) and \(\Diamond p=\exists w\,p(w)\) (C22), and neither depends on the world. A statement that does not depend on the world is unchanged by “some” and by “all”, so

\[ \Diamond \Box p=\Box p,\qquad \Box \Diamond p=\Diamond p . \]
In particular \(\Diamond \Box p\le \Box p\): what is possibly necessary is necessary. This is a computation, and it is the step on which the modal argument for a necessary being turns.

ME4. Existence is “some”, and “something is” has a witness. For a kind \(X\) and a part \(C\) of it, \(\exists x\,C(x)\) is the statement of C22; to assert it is to give a witness (its unit). The source \(a=a\) is said of an \(a\). So

\[ \exists x\,(x=x) \]
has the witness \(a\), with \(\mathrm {id}\). That something is, is the source with its unit of “some”; it is not a further assumption.

ME5. In every world something is. Give each world \(w\) its kind \(X_w\) of things. Then

\[ \Box \,\exists x\,(x=x)\quad \iff \quad \text {no } X_w \text { is } 0 . \]
The kind \(0\) is the source denied (C16, C21): in it \(a=a\) cannot be said, for there is no \(a\). So if a world is where the source is said, every world has a thing, and \(\Box \exists x\,(x=x)\) holds. This is the whole content of the necessity: it is the same statement as “no world is the denial of the source”.

ME6. Necessary and possibly not cannot both hold. For any \(p\), by ME1,

\[ \Box p\wedge \Diamond \neg p=\Box p\wedge \neg \Box p=0 . \]
With \(p=\exists x\,(x=x)\): if something necessarily is, it is not possible that nothing is. Note what is and is not used. The identity \(\neg \exists x\,(x=x)=\forall x\,0\) holds in any kind, but \(\forall x\,0=0\) holds only in a kind with a thing: over \(0\), \(\forall x\,0\) is true. So one may not pass from \(\Diamond \forall x\,0\) to \(\Diamond 0\) without ME5; the contradiction is ME6, and the necessity is ME5.

ME7. Existence is not a predicate: C22 against C24. A predicate on \(X\) is a part, a map \(X\to 2\) (C24); it is said of a thing already given. “Some” is not a part of \(X\): it takes a part to a statement (C22). If one nevertheless writes “\(x\) exists” as a part, \(\{x:\exists y\,(y=x)\}\), it is all of \(X\), with witness \(x\) itself (C23): it tells no thing from any other. So existence as a predicate adds nothing, which is Kant’s remark, and \(\Box \exists x\,(x=x)\) does not use it: it is “all” over worlds applied to “some” over things.

ME8. From a concept alone there is no witness. For a part \(C\), \(\forall x\,(C(x)\Rightarrow C(x))\) holds by the identity (C18), even over \(0\). It gives no thing. \(\exists x\,C(x)\) needs a witness (ME4), and a part does not supply one. The witness in ME4 does not come from a concept: it is the \(a\) of which the source is said.

ME9. No collapse. \(\Box \exists x\,(x=x)\) does not give \(p\le \Box p\) for other \(p\). Take the two values as worlds, \(W=2\), each seeing both, each with one thing, and let \(p\) hold in one world only. Then every world has a thing, and

\[ \Diamond p=1,\qquad \Box p=0 . \]
The necessity of ME5 is the necessity of one statement.

ME10. The modal argument, placed. The argument for a necessary being \(G\) runs: possibly necessarily \(G\); therefore necessarily \(G\). Its step is ME3 and is valid when every world sees every world. Its premise, \(\Diamond \Box G\), is not given by ME3. For \(G=\exists x\,(x=x)\) the premise is not needed, since ME5 gives \(\Box G\) directly. For a \(G\) that says more, \(\exists x\,C(x)\) with a part \(C\), the chain gives nothing by ME8: there the premise carries the conclusion.

ME11. The whole.

statement from
ME1 \(\Diamond p=R;p\); \(\Box \) its adjoint; \(\Diamond 0=0\) C10, C25, TR6
ME2 the three laws are identity, reverse, join branch N
ME3 \(\Diamond \Box p=\Box p\) when all see all C22
ME4 \(\exists x\,(x=x)\) has the witness \(a\) C0, C22
ME5 \(\Box \exists x\,(x=x)\) \(\iff \) no world is \(0\) C16, C21
ME6 \(\Box p\wedge \Diamond \neg p=0\) ME1
ME7 existence is “some”, not a part C22, C24
ME8 a part gives no witness C18
ME9 no collapse two worlds
ME10 the modal argument: step valid, premise not supplied ME3, ME8

ME12. The modal form of \(a=a\). What is shown is this: wherever the source is said, something is; a world where nothing is would be the source denied. That is \(\Box \exists x\,(x=x)\), and by ME6 it excludes \(\Diamond \neg \exists x\,(x=x)\). It concerns “something”, not a thing with stated properties.

324.1 Checked in Lean 4.

ME1–ME10 are checked in Necessity.lean (Figure 284, Listing 393). All are proved for arbitrary worlds, relations and statements, except ME9, which is a countermodel with two worlds. box_exists_iff is ME5; forall_false_over_empty and forall_false_with_a_thing are the remark in ME6. One direction of box_dual uses the two values of C21.

PIC

Figure 284: The file Necessity.lean in the Lean 4 web editor (Lean v4.36.0-rc2): no errors and no warnings for ME1–ME10.

Listing 393: Necessity.lean: necessity and existence, ME1–ME10.

Necessity.lean

/-
  Necessity and existence (ME1-ME10).  Core Lean 4, no Mathlib.
-/

namespace Necessity

section Modal

variable {W : Type}

abbrev Rel (A B : Type) := A → B → Prop

/-- possibly: the join of R with p -/
abbrev dia (R : Rel W W) (p : W → Prop) : W → Prop := fun w => ∃ v, R w v ∧ p v
/-- necessarily: the other side of the same matching -/
abbrev box (R : Rel W W) (p : W → Prop) : W → Prop := fun w => ∀ v, R w v → p v
abbrev le (p q : W → Prop) : Prop := ∀ w, p w → q w
abbrev rrev (R : Rel W W) : Rel W W := fun a b => R b a
/-- every world sees every world -/
abbrev tot : Rel W W := fun _ _ => True

/-! ## ME1: the matching, the duality, and "possibly nothing" is nothing -/

theorem adj (R : Rel W W) (p q : W → Prop) :
    le (dia (rrev R) q) p ↔ le q (box R p) := by
  constructor
  · intro h w hq v r
    exact h v ⟨w, r, hq⟩
  · intro h w hh
    match hh with
    | ⟨v, r, hq⟩ => exact h v hq w r

theorem box_dual (R : Rel W W) (p : W → Prop) (w : W) :
    box R p w ↔ ¬ dia R (fun v => ¬ p v) w := by
  constructor
  · intro h hh
    match hh with
    | ⟨v, r, np⟩ => exact np (h v r)
  · intro h v r
    exact Classical.byContradiction (fun np => h ⟨v, r, np⟩)

theorem dia_false (R : Rel W W) (w : W) : ¬ dia R (fun _ => False) w := by
  intro hh
  match hh with
  | ⟨_, _, f⟩ => exact f

/-! ## ME2: the three laws are identity, reverse, join -/

theorem law_T (R : Rel W W) (p : W → Prop) (refl : ∀ w, R w w) : le (box R p) p :=
  fun w h => h w (refl w)

/-- and conversely: if the law holds for every p, R is reflexive -/
theorem law_T_conv (R : Rel W W) (h : ∀ p : W → Prop, le (box R p) p) : ∀ w, R w w :=
  fun w => h (fun v => R w v) w (fun _ r => r)

theorem law_B (R : Rel W W) (p : W → Prop) (symm : ∀ a b, R a b → R b a) :
    le p (box R (dia R p)) :=
  fun w hp v r => ⟨w, symm w v r, hp⟩

theorem law_4 (R : Rel W W) (p : W → Prop) (trans : ∀ a b c, R a b → R b c → R a c) :
    le (box R p) (box R (box R p)) :=
  fun w h v r u r' => h u (trans w v u r r')

/-! ## ME3: when all see all, possibly necessary is necessary -/

theorem dia_box_total (p : W → Prop) (w : W) : dia tot (box tot p) w ↔ box tot p w := by
  constructor
  · intro hh
    match hh with
    | ⟨_, _, h⟩ => exact fun u _ => h u trivial
  · intro h
    exact ⟨w, trivial, h⟩

theorem box_dia_total (p : W → Prop) (w : W) : box tot (dia tot p) w ↔ dia tot p w := by
  constructor
  · intro h
    exact h w trivial
  · intro hh _ _
    exact hh

/-- necessity does not depend on the world -/
theorem box_total_const (p : W → Prop) (w w' : W) : box tot p w → box tot p w' :=
  fun h u _ => h u trivial

/-! ## ME6: necessary and possibly not cannot both hold -/

theorem not_both (R : Rel W W) (p : W → Prop) (w : W) :
    ¬ (box R p w ∧ dia R (fun v => ¬ p v) w) := by
  intro hh
  match hh with
  | ⟨hb, v, r, np⟩ => exact np (hb v r)

/-! ## ME5: in every world something is  ⟺  no world is empty -/

theorem box_exists_iff (R : Rel W W) (D : W → Type) (w : W) :
    box R (fun v => ∃ x : D v, x = x) w ↔ ∀ v, R w v → Nonempty (D v) := by
  constructor
  · intro h v r
    match h v r with
    | ⟨x, _⟩ => exact ⟨x⟩
  · intro h v r
    match h v r with
    | ⟨x⟩ => exact ⟨x, rfl⟩

end Modal

/-! ## ME4: "something is" has a witness: the a of a = a -/

theorem something_is {X : Type} (a : X) : ∃ x : X, x = x := ⟨a, rfl⟩

/-- in the empty kind the source cannot be said -/
theorem nothing_in_empty : ¬ ∃ x : Empty, x = x := by
  intro hh
  match hh with
  | ⟨x, _⟩ => exact nomatch x

/-! ## ME6, the remark: "nothing is" is "for all x, false", in any kind;
     but "for all x, false" is false only in a kind with a thing -/

theorem not_exists_iff {X : Type} : (¬ ∃ x : X, x = x) ↔ ∀ _ : X, False := by
  constructor
  · intro h x
    exact h ⟨x, rfl⟩
  · intro h hh
    match hh with
    | ⟨x, _⟩ => exact h x

theorem forall_false_over_empty : ∀ _ : Empty, False := fun x => nomatch x
theorem forall_false_with_a_thing {X : Type} (a : X) : ¬ ∀ _ : X, False := fun h => h a

/-! ## ME7: "exists", written as a predicate, is all of X -/

theorem exists_as_predicate {X : Type} (x : X) : ∃ y : X, y = x := ⟨x, rfl⟩

/-! ## ME8: a concept alone gives no witness -/

theorem concept_identity {X : Type} (C : X → Prop) : ∀ x, C x → C x := fun _ h => h

/-- the identity holds even over the empty kind, where nothing falls under C -/
theorem no_witness_from_concept (C : Empty → Prop) :
    (∀ x, C x → C x) ∧ ¬ ∃ x, C x := by
  constructor
  · exact fun _ h => h
  · intro hh
    match hh with
    | ⟨x, _⟩ => exact nomatch x

/-! ## ME9: no collapse -- two worlds, each with a thing, and p in one only -/

abbrev pTrue : Bool → Prop := fun w => w = true

theorem every_world_has_a_thing :
    box (tot : Rel Bool Bool) (fun _ => ∃ x : Unit, x = x) true :=
  fun _ _ => ⟨(), rfl⟩

theorem p_possible : dia (tot : Rel Bool Bool) pTrue true := ⟨true, trivial, rfl⟩

theorem p_not_necessary : ¬ box (tot : Rel Bool Bool) pTrue true :=
  fun h => absurd (h false trivial) (by decide)

/-- p holds at a world without being necessary there -/
theorem no_collapse : ¬ le pTrue (box (tot : Rel Bool Bool) pTrue) :=
  fun h => absurd (h true rfl false trivial) (by decide)

/-! ## ME10: the modal argument -- the step is valid, the premise is not supplied -/

/-- the step: from "possibly necessarily G" to "necessarily G", when all see all -/
theorem modal_step {W : Type} (G : W → Prop) (w : W) :
    dia tot (box tot G) w → box tot G w :=
  (dia_box_total G w).mp

/-- for G = "something is", no premise is needed: it holds in every world with a thing -/
theorem necessarily_something {W : Type} (D : W → Type) (h : ∀ v, Nonempty (D v)) (w : W) :
    box tot (fun v => ∃ x : D v, x = x) w :=
  (box_exists_iff tot D w).mpr (fun v _ => h v)

end Necessity