Documentation

Studies.Dunn2025

Dunn (2025): Syntactic Variation from Individuals to Populations: Language as a Complex System #

Dunn measures syntactic variation as differences in how individuals, populations and registers use one umbrella construction grammar. A construction is a contiguous sequence of slot-constraints, each drawn from one of three ontologies, lexical, syntactic or semantic. The grammar emerges in stages: two early grammars each draw on one ontology, lexical or syntactic, and the late grammar on all three. First-order constructions are bundled into third-order constructions and these into fourth-order ones, and a construction is central or peripheral by its frequency in a reference corpus. Two samples of usage are compared by the pipeline of Figure 3: token frequencies are standardized across the samples, weighted by how much the classifiers rely on each construction, compared by cosine distance, and the distances standardized across the sampled comparisons.

The two standardizations do what the book says they are for. Standardizing frequencies makes the distances blind to how frequent a construction is overall, standardizing distances keeps their ranking, and the sign of a set of comparisons' mean standardized distance says whether its samples are more or less similar than the average pair.

Main statements #

Implementation notes #

TODO #

References #

Constructions and the stages of emergence #

(1a) is a ditransitive, with a semantic constraint on the verb and two noun phrases, as in send me the bill.

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

    (1c) puts lexical constraints in place of the semantic one and of the second noun phrase, as in give me a hand.

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

      (2) is an early noun phrase with two syntactic constraints, as in peanut butter cup.

      Equations
      Instances For

        (3) is a late noun phrase drawing on all three ontologies, as in the happiest person.

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

          (5) is a late construction with semantic constraints only, as in i know i'm.

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

            The stages of emergence are the columns of Figure 1, two early grammars and a late one.

            • lexOnly : Stage

              LEX-Only is an early grammar with lexical constraints only.

            • synOnly : Stage

              SYN-Only is an early grammar with syntactic constraints only.

            • semPlus : Stage

              SEM+ is the late grammar, with constraints from all three ontologies.

            Instances For
              @[instance_reducible]
              instance Dunn2025.instDecidableEqStage :
              DecidableEq Stage
              Equations
              @[instance_reducible]
              Equations

              The grammar of a stage can contain a construction when it draws on the level of each of the construction's slot-constraints.

              Equations
              Instances For
                @[instance_reducible]
                instance Dunn2025.instDecidableAdmits {Lex : Type u_1} (st : Stage) (form : ConstructionGrammar.TypedForm Lex) :
                Decidable (st.Admits form)
                Equations
                theorem Dunn2025.Stage.eq_semPlus_of_admits_of_ne {Lex : Type u_1} {st : Stage} {form : ConstructionGrammar.TypedForm Lex} {s t : ConstructionGrammar.Slot Lex} (h : st.Admits form) (hs : s ∈ form) (ht : t ∈ form) (hst : s.filler.level ≠ t.filler.level) :
                st = semPlus

                A construction whose slot-constraints come from two ontologies emerges only in the late grammar.

                A construction with a semantic constraint emerges only in the late grammar.

                The network #

                structure Dunn2025.Network (C₁ : Type u_1) (C₃ : Type u_2) (C₄ : Type u_3) :
                Type (max (max u_1 u_2) u_3)

                A network bundles every first-order construction into a third-order construction and every third-order construction into a fourth-order one.

                • thirdOrder : C₁ → C₃

                  thirdOrder c is the third-order construction bundling c.

                • fourthOrder : C₃ → C₄

                  fourthOrder d is the fourth-order construction bundling d.

                Instances For
                  def Dunn2025.Network.siblings {C₁ : Type u_1} {C₃ : Type u_2} {C₄ : Type u_3} (n : Network C₁ C₃ C₄) :
                  Setoid C₁

                  Two first-order constructions are siblings when they belong to one third-order construction.

                  Equations
                  Instances For
                    def Dunn2025.Network.cousins {C₁ : Type u_1} {C₃ : Type u_2} {C₄ : Type u_3} (n : Network C₁ C₃ C₄) :
                    Setoid C₁

                    Two first-order constructions are cousins when they belong to one fourth-order construction.

                    Equations
                    Instances For
                      @[instance_reducible]
                      instance Dunn2025.Network.instDecidableRelROfDecidableEq {C₁ : Type u_1} {C₃ : Type u_2} {C₄ : Type u_3} (n : Network C₁ C₃ C₄) [DecidableEq C₃] :
                      DecidableRel ⇑n.siblings
                      Equations
                      @[instance_reducible]
                      instance Dunn2025.Network.instDecidableRelROfDecidableEq_1 {C₁ : Type u_1} {C₃ : Type u_2} {C₄ : Type u_3} (n : Network C₁ C₃ C₄) [DecidableEq C₄] :
                      DecidableRel ⇑n.cousins
                      Equations
                      theorem Dunn2025.Network.siblings_le_cousins {C₁ : Type u_1} {C₃ : Type u_2} {C₄ : Type u_3} (n : Network C₁ C₃ C₄) :
                      def Dunn2025.network6to11 :
                      Network (Fin 6) (Fin 4) Unit

                      This network places (6) to (11), indexed in order. (6), (7) and (8) are siblings, and (9), (10) and (11) belong to other third-order constructions of the same fourth-order construction, here each to its own.

                      Equations
                      Instances For

                        Centrality, footnote 2 #

                        def Dunn2025.IsCentral {C : Type u_1} [MeasurableSpace C] (ref : C → ℝ) (c : C) :

                        A construction is central when its frequency in the reference corpus is more than one standard deviation above the mean over the grammar's constructions.

                        Equations
                        Instances For
                          def Dunn2025.IsPeripheral {C : Type u_1} [MeasurableSpace C] (ref : C → ℝ) (c : C) :

                          A construction is peripheral when its frequency in the reference corpus is below the mean; the constructions neither central nor peripheral are mid-frequency.

                          Equations
                          Instances For
                            theorem Dunn2025.IsCentral.not_isPeripheral {C : Type u_1} [MeasurableSpace C] {ref : C → ℝ} {c : C} (h : IsCentral ref c) :
                            ¬IsPeripheral ref c
                            theorem Dunn2025.isCentral_iff {C : Type u_1} [MeasurableSpace C] {ref : C → ℝ} {c : C} (h : 0 < ProbabilityTheory.variance ref (ProbabilityTheory.uniformOn Set.univ)) :
                            IsCentral ref c ↔ ∫ (x : C), ref x ∂ProbabilityTheory.uniformOn Set.univ + √(ProbabilityTheory.variance ref (ProbabilityTheory.uniformOn Set.univ)) < ref c
                            theorem Dunn2025.isPeripheral_iff {C : Type u_1} [MeasurableSpace C] {ref : C → ℝ} {c : C} (h : 0 < ProbabilityTheory.variance ref (ProbabilityTheory.uniformOn Set.univ)) :
                            IsPeripheral ref c ↔ ref c < ∫ (x : C), ref x ∂ProbabilityTheory.uniformOn Set.univ

                            The similarity pipeline, Figure 3 #

                            noncomputable def Dunn2025.saliency {C : Type u_2} {K : Type u_3} [Fintype K] (W : K → C → ℝ) (c : C) :
                            ℝ

                            The saliency of a construction is the mean absolute weight the classifiers give it across their classes.

                            Equations
                            Instances For
                              noncomputable def Dunn2025.standardizedUsage {S : Type u_1} {C : Type u_2} {K : Type u_3} [MeasurableSpace S] [Fintype K] (freq : S → C → ℝ) (W : K → C → ℝ) (s : S) :
                              EuclideanSpace ℝ C

                              The standardized usage of a sample, steps 1 to 3, weights each construction's token frequency, standardized across the samples, by the construction's saliency.

                              Equations
                              Instances For
                                theorem Dunn2025.standardizedUsage_const_mul_add_const {S : Type u_1} {C : Type u_2} {K : Type u_3} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} [Finite S] [Nonempty S] [MeasurableSingletonClass S] {a : C → ℝ} (ha : ∀ (c : C), 0 < a c) (b : C → ℝ) :
                                standardizedUsage (fun (s : S) (c : C) => a c * freq s c + b c) W = standardizedUsage freq W

                                Rescaling and shifting a construction's frequencies across all the samples changes no sample's standardized usage.

                                noncomputable def Dunn2025.cosineDistance {V : Type u_5} [NormedAddCommGroup V] [InnerProductSpace ℝ V] (x y : V) :
                                ℝ

                                The cosine distance of two vectors is one minus the cosine of the angle between them.

                                Equations
                                Instances For
                                  theorem Dunn2025.cosineDistance_comm {V : Type u_5} [NormedAddCommGroup V] [InnerProductSpace ℝ V] (x y : V) :
                                  noncomputable def Dunn2025.sampleDistance {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] [Fintype C] (freq : S → C → ℝ) (W : K → C → ℝ) (pair : P → S × S) (p : P) :
                                  ℝ

                                  The distance of a sampled comparison, step 4, is the cosine distance between the standardized usage of its two samples.

                                  Equations
                                  Instances For
                                    theorem Dunn2025.sampleDistance_swap {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} {pair : P → S × S} [Fintype C] :
                                    sampleDistance freq W (Prod.swap ∘ pair) = sampleDistance freq W pair

                                    Distances are symmetric, so a comparison does not depend on the order of its samples.

                                    noncomputable def Dunn2025.standardizedDistance {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] [Fintype C] [MeasurableSpace P] (freq : S → C → ℝ) (W : K → C → ℝ) (pair : P → S × S) :
                                    P → ℝ

                                    The standardized distances, step 5, are the sample distances standardized across the comparisons.

                                    Equations
                                    Instances For
                                      theorem Dunn2025.standardizedDistance_const_mul_add_const {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} {pair : P → S × S} [Fintype C] [MeasurableSpace P] [Finite S] [Nonempty S] [MeasurableSingletonClass S] {a : C → ℝ} (ha : ∀ (c : C), 0 < a c) (b : C → ℝ) :
                                      standardizedDistance (fun (s : S) (c : C) => a c * freq s c + b c) W pair = standardizedDistance freq W pair

                                      How frequent a construction is overall does not affect any standardized distance.

                                      theorem Dunn2025.standardizedDistance_le_standardizedDistance_iff {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} {pair : P → S × S} [Fintype C] [MeasurableSpace P] (h : 0 < ProbabilityTheory.variance (sampleDistance freq W pair) (ProbabilityTheory.uniformOn Set.univ)) {p q : P} :
                                      standardizedDistance freq W pair p ≤ standardizedDistance freq W pair q ↔ sampleDistance freq W pair p ≤ sampleDistance freq W pair q

                                      Standardizing the distances keeps their ranking, from the most to the least similar pair.

                                      theorem Dunn2025.integral_standardizedDistance {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} {pair : P → S × S} [Fintype C] [MeasurableSpace P] [Finite P] [MeasurableSingletonClass P] [Nonempty P] :
                                      ∫ (x : P), standardizedDistance freq W pair x ∂ProbabilityTheory.uniformOn Set.univ = 0

                                      A standardized distance of 0 is the average distance.

                                      theorem Dunn2025.sign_integral_standardizedDistance {S : Type u_1} {C : Type u_2} {K : Type u_3} {P : Type u_4} [MeasurableSpace S] [Fintype K] {freq : S → C → ℝ} {W : K → C → ℝ} {pair : P → S × S} [Fintype C] [MeasurableSpace P] [Finite P] [MeasurableSingletonClass P] {T : Finset P} (hT : T.Nonempty) :
                                      SignType.sign (∫ (x : P), standardizedDistance freq W pair x ∂ProbabilityTheory.uniformOn ↑T) = SignType.sign (∫ (x : P), sampleDistance freq W pair x ∂ProbabilityTheory.uniformOn ↑T - ∫ (x : P), sampleDistance freq W pair x ∂ProbabilityTheory.uniformOn Set.univ)

                                      Comparisons within T are more similar than average exactly when their mean standardized distance is negative, and more different exactly when it is positive.