Documentation

Linglib.Core.Logic.Quantification.NumberTree

Number-Tree Quantifiers #

@cite{van-benthem-1984} @cite{van-benthem-1986}

The number-tree representation of conservative, quantity-invariant GQs. Under CONSERV + QUANT, a quantifier's truth value depends only on a = |A ∩ B| and b = |A \ B|, yielding a function ℕ → ℕ → Bool.

Includes impossibility theorems (§10), the Square of Opposition uniqueness theorem (§10e), the GQ→NumberTreeGQ bridge (§10f), and counting quantifiers (§11).

@[reducible, inline]

Number-tree representation of a conservative, quantity-invariant GQ. Under CONSERV + QUANT, a quantifier's truth value depends only on a = |A ∩ B| and b = |A \ B| (§2, "tree of numbers"). This is inherently cross-domain: any (a, b) pair is realizable in some universe of size ≥ a + b.

Equations
Instances For

    Variety for number-tree quantifiers: Q is non-trivial.

    Equations
    Instances For
      theorem Core.Quantification.NumberTreeGQ.no_asymmetric (q : NumberTreeGQ) (hVar : q.Variety) (hAsym : ∀ (a b c : ), q a b = trueq a c = false) :

      Thm 3.2.1: No asymmetric CONSERV+QUANT quantifiers exist.

      On the number tree, asymmetry means: for all a b c, q(a, b) → ¬q(a, c) — because |A ∩ B| = a and |B \ A| = c is free (any c is realizable in a large enough universe).

      Proof: Set c = b. Then q(a, b) → ¬q(a, b), so q is identically false. Contradicts Variety.

      theorem Core.Quantification.NumberTreeGQ.no_strict_partial_order (q : NumberTreeGQ) (hVar : q.Variety) (hIrrefl : ∀ (n : ), q n 0 = false) (hTrans : ∀ (a b c : ), q a b = trueq a c = trueq (a + b) 0 = true) :

      §3.2 consequence: No strict partial order quantifiers.

      On the number tree, irreflexivity is ∀ n, q(n, 0) = false (since Q(A,A) has |A ∩ A| = n, |A \ A| = 0). Transitivity (with C = A in the 3-set diagram) gives: q(a, b) ∧ q(a, c) → q(a+b, 0).

      Proof: From transitivity, q(a, b) → q(a, c) → q(a+b, 0). From irreflexivity, q(a+b, 0) = false. So q(a, b) → q(a, c) = false — number-tree asymmetry. Apply no_asymmetric.

      theorem Core.Quantification.NumberTreeGQ.no_euclidean (q : NumberTreeGQ) (hVar : q.Variety) (hEuc : ∀ (p q_ r s t u : ), q (p + q_) (r + s) = trueq (p + r) (q_ + s) = trueq (p + t) (q_ + u) = true) :

      Thm 3.2.3: No Euclidean CONSERV+QUANT quantifiers exist.

      On the number tree (3-set Venn diagram with 7 free size parameters p, q, r, s, t, u plus one more), the Euclidean property becomes: q(p+q_, r+s) ∧ q(p+r, q_+s) → q(p+t, q_+u) for all p q_ r s t u.

      Proof (4 steps):

      1. From Variety witness q(α, β) = true, set p=α, q_=0, r=0, s=β: q(α+t, u) for all t, u. So q(a, b) = true for a ≥ α.
      2. If α = 0, step 1 gives q ≡ true, contradicting Variety. If α > 0: pair q(α, 2α) and q(2α, α) (both from step 1) with p=0, q_=α, r=2α, s=0: get q(t, α+u) for all t, u. Combined: q(a, b) = true when a ≥ α or b ≥ α.
      3. q(0, α) (from step 2) and q(α, 0) (from step 1) with p=0, q_=0, r=α, s=0: get q(t, u) for all t, u.
      4. Contradicts Variety.

      "all" on the number tree: Q(A,B) iff A ⊆ B iff |A\B| = 0.

      Equations
      Instances For

        "some" on the number tree: Q(A,B) iff A∩B ≠ ∅ iff |A∩B| ≥ 1.

        Equations
        Instances For

          "no" on the number tree: Q(A,B) iff A∩B = ∅ iff |A∩B| = 0.

          Equations
          Instances For

            "not all" on the number tree: Q(A,B) iff A ⊄ B iff |A\B| ≥ 1.

            Equations
            Instances For

              Additive: (a,b) ∈ Q and (a',b') ∈ Q implies (a+a', b+b') ∈ Q. p.460: all, some, no, not all are additive. Additivity means Q's truth set is closed under componentwise addition in the number tree.

              Equations
              Instances For

                Right continuity on the number tree (CONT): on each diagonal a+b = n, the true points form a contiguous interval. §4.3: all right-monotone quantifiers are continuous. "precisely one" is continuous but non-monotone.

                Equations
                Instances For

                  Left continuity on the number tree: on each diagonal, the false points (absence) also form a contiguous interval. §4.3: equivalent to right continuity of ¬Q.

                  Equations
                  Instances For

                    PLUS (§7): adding one individual to the situation cannot create a "dead end." Both presence and absence must be extensible in at least one direction.

                    • For + positions: q(a+1,b) or q(a,b+1) is true.
                    • For − positions: q(a+1,b) or q(a,b+1) is false.
                    Equations
                    Instances For

                      UNIF (§7): the addition experiment (a,b) → (a+1,b) and (a,b) → (a,b+1) always yields the same pattern for positions of the same truth value. The experiment result depends only on whether Q holds, not on where in the tree we are.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        The six postulates that §7 uses to characterize the Square of Opposition.

                        Instances For

                          @cite{van-benthem-1986} Thm 7.1: On the finite sets, the only CONSERV+QUANT quantifiers satisfying VAR, CONT, PLUS, and UNIF are precisely the four corners of the logical Square of Opposition: all, some, no, and not all.

                          Proof strategy: UNIF reduces every cell's truth value to four experiment booleans (tr, tu, fr, fu). PLUS eliminates 12 of the 16 combinations; CONT and VAR eliminate 2 more (via path inconsistencies). The 4 survivors each determine exactly one quantifier, proved via grid_ext.

                          noncomputable def Core.Quantification.toNumberTree {α : Type u_1} [Fintype α] (q : GQ α) :

                          Extract the number-tree representation of a CONSERV+QUANT quantifier. Under conservativity and quantity-invariance, Q(A,B) depends only on |A ∩ B| and |A \ B|. This definition picks a canonical witness pair for each (a,b) coordinate.

                          For (a,b) realizable in the domain (a + b ≤ |α|), the value is determined by any witness; for unrealizable pairs, we default to false.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem Core.Quantification.toNumberTree_spec {α : Type u_1} [Fintype α] [DecidableEq α] (q : GQ α) (hCons : Conservative q) (hQ : QuantityInvariant q) (A B : αBool) :
                            q A B = toNumberTree q {x : α | (A x && B x) = true}.card {x : α | (A x && !B x) = true}.card

                            The number-tree representation faithfully reflects the GQ on realizable coordinates: for any A, B, the GQ's truth value equals the number-tree value at (|A∩B|, |A\B|).

                            Proof: A and B themselves witness the existential in toNumberTree, so the dite takes the positive branch. The chosen witness pair has matching |A∩B| and |A\B| cardinalities, so gq_depends_on_card (via cell-preserving bijection) gives q A B = q A_chosen B_chosen.

                            Thm 5.4: On a finite set with n individuals, there are exactly 2^((n+1)(n+2)/2) conservative quantifiers (satisfying QUANT). The tree of numbers has (n+1)(n+2)/2 points at levels a + b ≤ n.

                            Equations
                            Instances For