Documentation

Linglib.Syntax.Minimalist.Merge.MinimalSearch

Minimal Search: the generic (cut-policy-parameterized) Merge operator #

[MCB25]

MCB's Merge variants and the three coproducts (Δ^ρ/Δ^c/Δ^d) share one operator shape M = ⊔ ∘ (B ⊗ id) ∘ δ_{S,S'} ∘ Δ, differing only in the coproduct Δ. mergeOpG cuts parameterizes the operator over the cut enumeration (via comulAlgHomNG), recovering the Δ^ρ mergeOp as the instance cuts := cutSummandsN (definitional) and defining the Δ^c Merge mergeOpC τ as cuts := cutSummandsCN τ. This is the operator-level companion to the already-generic cut layer (cutSummandsG).

The Δ^c instance is the home of the Minimal-Search ε arc (MCB §1.5, Prop 1.5.1): the trace coproduct is where extraction depth is recoverable (RootedTree.Cut.depthC), so the ε-weighted graft and the ε → 0 Sideward-elimination belong on mergeOpC, not the Δ^ρ mergeOp.

Main definitions #

noncomputable def Minimalist.Merge.mergeOpG {R : Type u_1} [CommSemiring R] {α : Type u_2} [DecidableEq (RootedTree.Nonplanar α)] (cuts : RootedTree.Nonplanar αMultiset (RootedTree.Forest (RootedTree.Nonplanar α) × RootedTree.Nonplanar α)) (lbl : α) (S S' : RootedTree.Nonplanar α) :

The generic Merge operator M_{S,S'}^{cuts}, parameterized by the cut enumeration cuts: mergePost lbl S S' ∘ comulAlgHomNG cuts. The coproduct-agnostic post-chain mergePost (graft B, δ-projection, and multiplication ) is shared; only the coproduct comulAlgHomNG cuts varies.

Equations
Instances For
    theorem Minimalist.Merge.mergeOp_eq_G {R : Type u_1} [CommSemiring R] {α : Type u_2} [DecidableEq (RootedTree.Nonplanar α)] (lbl : α) (S S' : RootedTree.Nonplanar α) :

    The Δ^ρ Merge operator mergeOp is the generic operator at cuts := cutSummandsN — definitional, since comulAlgHomN = comulAlgHomNG cutSummandsN.

    noncomputable def Minimalist.Merge.mergeOpC {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :

    The Δ^c (trace) Merge operator mergeOpC τ, the generic operator at cuts := cutSummandsCN τ. Unlike the Δ^ρ mergeOp, this coproduct's quotients carry a trace leaf at each cut site at exactly the cut depth, so the Minimal-Search cost Cut.depthC is recoverable — making mergeOpC the faithful home of MCB's ε-weighted Merge (§1.5).

    Equations
    Instances For

      The Minimal-Search ε arc (MCB §1.5, Prop 1.5.1) #

      The ε-weighted Merge M^ε = ⊔ ∘ (Bᵉ ⊗ id) ∘ δ ∘ Δ (eq 1.5.1) scales the graft Bᵉ(α⊔β) = ε^{c(𝔐(α,β))} B(α⊔β) (eq 1.5.2) by the Minimal-Search cost ε^c. Since mergePost is linear and the graft is its only creation, scaling the graft by ε^c equals scaling the whole operator: mergeOpCEps = ε^c • mergeOpC. The net cost c is the sum of the two operands' signed depth-costs (MCB rules 1–2, RootedTree.Cut.extractionCost/quotientCost):

      At ε → 0, ε^0 = 1 keeps EM/IM, ε^{d>0} = 0 drops Sideward.

      def Minimalist.Merge.epsWeight {R : Type u_1} [CommSemiring R] (ε : R) (c : ) :
      R

      The Minimal-Search ε-weight of a merge with net cost c: ε^c (MCB eq 1.5.2).

      Equations
      Instances For
        @[simp]
        theorem Minimalist.Merge.epsWeight_zero_zero {R : Type u_1} [CommSemiring R] :
        epsWeight 0 0 = 1
        theorem Minimalist.Merge.epsWeight_zero_of_pos {R : Type u_1} [CommSemiring R] {c : } (hc : 0 < c) :
        epsWeight 0 c = 0
        @[simp]
        theorem Minimalist.Merge.epsWeight_one {R : Type u_1} [CommSemiring R] (c : ) :
        epsWeight 1 c = 1

        External Merge net cost (MCB rule 4, whole operands): 0.

        Equations
        Instances For
          def Minimalist.Merge.imNetCost {α : Type u_2} {β : Type u_3} (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) :

          Internal Merge net cost (MCB Prop 1.5.1, IM): the extracted crown's +d and its own quotient's −d cancel — the signed sum over the same cut p, truncated to (it is 0, see imNetCost_eq_zero).

          Equations
          Instances For
            def Minimalist.Merge.swNetCost {α : Type u_2} {β : Type u_3} (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) :

            Sideward Merge net cost (MCB Prop 1.5.1, Sideward 2b): the extracted crown's +d, with no quotient operand to cancel it. Equals Cut.depthC p.

            Equations
            Instances For
              @[simp]
              theorem Minimalist.Merge.imNetCost_eq_zero {α : Type u_2} {β : Type u_3} (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) :
              imNetCost p = 0
              theorem Minimalist.Merge.swNetCost_pos {α : Type u_2} {β : Type u_3} (τ : RootedTree.Nonplanar (α β)β) (T : RootedTree.Nonplanar (α β)) (a₀ : α) (hT : T.rootValue = Sum.inl a₀) (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) (hp : p RootedTree.cutSummandsCN τ T) (hproper : p.1 0) :

              A Sideward Merge of a lexical-rooted object has strictly positive net cost (MCB Prop 1.5.1) — the uncancelled extraction depth.

              noncomputable def Minimalist.Merge.mergeOpCEps {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (ε : R) (c : ) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :

              The ε-weighted Δ^c Merge operator (MCB §1.5, eq 1.5.2): the Δ^c merge scaled by the Minimal-Search weight ε^c.

              Equations
              Instances For
                @[simp]
                theorem Minimalist.Merge.mergeOpCEps_one {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (c : ) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :
                mergeOpCEps τ 1 c lbl S S' = mergeOpC τ lbl S S'

                At ε = 1 the weight is trivial and mergeOpCEps recovers the unweighted Δ^c Merge.

                @[simp]
                theorem Minimalist.Merge.mergeOpCEps_zero_em {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :
                mergeOpCEps τ 0 emNetCost lbl S S' = mergeOpC τ lbl S S'

                MCB Prop 1.5.1, External Merge survives ε → 0. EM has net cost 0, so its weight ε^0 = 1 is unaffected: mergeOpCEps τ 0 emNetCost = mergeOpC τ.

                @[simp]
                theorem Minimalist.Merge.mergeOpCEps_zero_im {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :
                mergeOpCEps τ 0 (imNetCost p) lbl S S' = mergeOpC τ lbl S S'

                MCB Prop 1.5.1, Internal Merge survives ε → 0. IM has net cost 0 — the extraction +d and its own quotient's −d cancel — so its weight is 1 and the operator is preserved at ε = 0.

                theorem Minimalist.Merge.mergeOpCEps_zero_sideward {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) {c : } (hc : 0 < c) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :
                mergeOpCEps τ 0 c lbl S S' = 0

                MCB Prop 1.5.1, Sideward Merge vanishes ε → 0. A Sideward Merge has net cost > 0 (the uncancelled extraction depth), so its weight ε^{>0} = 0 at ε = 0: the operator is annihilated.

                theorem Minimalist.Merge.mergeOpCEps_zero_sideward_of_cut {R : Type u_1} [CommSemiring R] {α : Type u_2} {β : Type u_3} [DecidableEq (RootedTree.Nonplanar (α β))] (τ : RootedTree.Nonplanar (α β)β) (T : RootedTree.Nonplanar (α β)) (a₀ : α) (hT : T.rootValue = Sum.inl a₀) (p : RootedTree.Forest (RootedTree.Nonplanar (α β)) × RootedTree.Nonplanar (α β)) (hp : p RootedTree.cutSummandsCN τ T) (hproper : p.1 0) (lbl : α β) (S S' : RootedTree.Nonplanar (α β)) :
                mergeOpCEps τ 0 (swNetCost p) lbl S S' = 0

                MCB Prop 1.5.1, Sideward Merge vanishes — instantiated at an actual Δ^c extraction p of a lexical-rooted object: the uncancelled depth makes swNetCost p > 0, so the operator is annihilated at ε = 0.