Documentation

Linglib.Core.Order.ComparativeProbability.Systems

Comparative probability #

Comparative-likelihood orders on propositions (Set W) — "A is at least as likely as B" — after [HI13]: an axiom hierarchy, finitely- and qualitatively-additive measure semantics, the two world-ordering lifts, and the generalized finite cancellation theory of imprecise (multi-prior) comparative probability.

Main definitions #

Main statements #

Implementation notes #

EpistemicSystemW/F are coarse staging toward EpistemicSystemFA, not [HI13]'s logics W/F (whose W-to-F step is totality); labels R/T are mnemonic for the paper's Mon and reflexivity.

The measures are generic over an ordered field K: gives the paper's literal [0,1]-valued measures, the computable theory. On a finite state space the two agree (rational and real linear feasibility coincide), and only supports the constructive Farkas (FourierMotzkin.lean) and decide-checked models (Representability.lean) behind the representation theorems. FinAddMeasure overlaps mathlib's MeasureTheory.AddContent and could be re-founded on it; FinAddMeasure.inducedGe is Order.Preimage m.mu (· ≥ ·).

References #

[HI13], [Hal03], [vdH96], [KPS59], [HTHI16], [HTHI18]

Axioms #

Two likelihood-relation axioms of [HI13] with no mathlib or Defs.lean analog. The remaining axioms are mathlib's Reflexive and the Defs.lean mixin classes IsLikelihoodMono (monotonicity, the paper's Mon), IsQualitativeAdditive, and IsNontrivial; the systems below carry those as plain propositional fields.

def ComparativeProbability.RightUnion {W : Type u_1} (ge : Set WSet WProp) :

Right-union (axiom J of [HI13], Figure 4): A ≿ B → A ≿ C → A ≿ B ∪ C.

Equations
Instances For
    def ComparativeProbability.DeterminedBySingletons {W : Type u_1} (ge : Set WSet WProp) :

    Determination by singletons: A ≿ {b} → ∃ a ∈ A, {a} ≿ {b}.

    Equations
    Instances For

      Axiom systems #

      EpistemicSystemW/F are coarse staging toward EpistemicSystemFA. Fields hold the bare propositions; the matching Defs.lean mixin instances are below.

      A reflexive, monotone likelihood relation (weaker than [HI13]'s logic W; see the module docstring).

      • ge : Set WSet WProp

        The "at least as likely as" relation on propositions.

      • refl : Reflexive self.ge

        Reflexivity.

      • mono (A B : Set W) : A Bself.ge B A

        Monotonicity: supersets are at least as likely.

      Instances For

        Adds Ω ≿ ∅ and non-triviality.

        • ge : Set WSet WProp
        • refl : Reflexive self.ge
        • mono (A B : Set W) : A Bself.ge B A
        • bottom : self.ge Set.univ

          The tautology is at least as likely as the contradiction.

        • nonTrivial : ¬self.ge Set.univ

          Non-triviality: excludes the degenerate all-equivalent order.

        Instances For

          [HI13]'s logic FA: a total, transitive, qualitatively additive likelihood order. Sound and complete for qualitatively additive measure semantics (Theorem 6; [vdH96]), and strictly weaker than finite additivity for |W| ≥ 5 (Theorem 8, after [KPS59]).

          • ge : Set WSet WProp
          • refl : Reflexive self.ge
          • mono (A B : Set W) : A Bself.ge B A
          • bottom : self.ge Set.univ
          • nonTrivial : ¬self.ge Set.univ
          • total (A B : Set W) : self.ge A B self.ge B A

            Totality: any two propositions are comparable.

          • trans (A B C : Set W) : self.ge A Bself.ge B Cself.ge A C

            Transitivity.

          • additive (A B : Set W) : self.ge A B self.ge (A \ B) (B \ A)

            Qualitative additivity: A ≿ B ↔ (A \ B) ≿ (B \ A).

          Instances For

            FA systems carry the comparative-probability mixins #

            An FA system's fields are defeq the Defs.lean mixin classes (a ≤ b is a ⊆ b on Set W), so the instances below register its relation as a comparative- probability order, and the validity patterns V1–V13 transfer from ComparativeProbability.Patterns by instance resolution.

            instance ComparativeProbability.instIsTransSetGe {W : Type u_1} (sys : EpistemicSystemFA W) :
            IsTrans (Set W) sys.ge

            Consequences of the FA axioms #

            theorem ComparativeProbability.ge_union_context {W : Type u_1} (sys : EpistemicSystemFA W) (X Y C : Set W) (hCX : Disjoint C X := by grind) (hCY : Disjoint C Y := by grind) :
            sys.ge X Y sys.ge (X C) (Y C)

            Add common context: for C disjoint from both X and Y, X ≿ Y ↔ (X ∪ C) ≿ (Y ∪ C).

            theorem ComparativeProbability.ge_add_context {W : Type u_1} (sys : EpistemicSystemFA W) {X Y C : Set W} (h : sys.ge X Y) (hCX : Disjoint C X := by grind) (hCY : Disjoint C Y := by grind) :
            sys.ge (X C) (Y C)

            Forward form of ge_union_context: context C disjoint from both sides preserves .

            theorem ComparativeProbability.ge_generalized_merge {W : Type u_1} (sys : EpistemicSystemFA W) {X₁ Y₁ X₂ Y₂ : Set W} (h1 : sys.ge X₁ Y₁) (h2 : sys.ge X₂ Y₂) (hX : Disjoint X₁ X₂) (hY : Disjoint Y₁ Y₂) :
            sys.ge (X₁ X₂) (Y₁ Y₂)

            Generalized merge: two valid comparisons with disjoint left parts and disjoint right parts merge into their union, even with pivot overlaps. Derivation: add context to each side, transit through X₂ ∪ Y₁, then restore the pivot X₂ ∩ Y₁ via Axiom A.

            theorem ComparativeProbability.ge_mono_dominated {W : Type u_1} (sys : EpistemicSystemFA W) {X Y P Q : Set W} (h : sys.ge X Y) (hXP : X P) (hQY : Q Y) :
            sys.ge P Q

            Mono-domination: a valid comparison X ≿ Y with X ⊆ P and Q ⊆ Y proves P ≿ Q.

            theorem ComparativeProbability.ge_empty_target {W : Type u_1} (sys : EpistemicSystemFA W) (P : Set W) :
            sys.ge P

            P ≿ ∅ always (monotonicity).

            Measure semantics #

            structure ComparativeProbability.FinAddMeasure (K : Type u_1) [Field K] [LinearOrder K] [IsStrictOrderedRing K] (W : Type u_2) :
            Type (max u_1 u_2)

            A finitely additive probability measure on subsets of W, valued in an ordered field K. The value type is left generic: instantiate at for the constructive, decide-able representation theory and at for the paper's literal [0,1]-valued measures (see the module docstring).

            • mu : Set WK

              The measure function

            • nonneg (A : Set W) : 0 self.mu A

              Non-negativity

            • additive (A B : Set W) : Disjoint A Bself.mu (A B) = self.mu A + self.mu B

              Finite additivity: μ(A ∪ B) = μ(A) + μ(B) for disjoint A, B

            • total : self.mu Set.univ = 1

              Normalization

            Instances For
              def ComparativeProbability.FinAddMeasure.inducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) (A B : Set W) :

              Measure-induced comparative likelihood: A ≿ B ↔ μ(A) ≥ μ(B).

              Equations
              Instances For
                @[simp]
                theorem ComparativeProbability.FinAddMeasure.mu_empty {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :
                m.mu = 0

                μ(∅) = 0 for any finitely additive measure. Follows from additivity: μ(∅ ∪ ∅) = μ(∅) + μ(∅), but ∅ ∪ ∅ = ∅.

                theorem ComparativeProbability.FinAddMeasure.mu_mono {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) {A B : Set W} (h : A B) :
                m.mu A m.mu B

                Subset monotonicity: A ⊆ B → μ(A) ≤ μ(B).

                theorem ComparativeProbability.FinAddMeasure.mu_compl {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) (A : Set W) :
                m.mu A + m.mu A = 1

                Complement measure: μ(A) + μ(Aᶜ) = 1.

                theorem ComparativeProbability.FinAddMeasure.mu_qadd {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) (A B : Set W) :
                m.mu A m.mu B m.mu (A \ B) m.mu (B \ A)

                Qualitative additivity for a finitely additive measure: splitting A and B into the shared part A ∩ B and the private parts cancels the shared part.

                def ComparativeProbability.FinAddMeasure.toSystemFA {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :

                Every finitely additive measure satisfies the FA axioms. A fortiori from [HI13] Theorem 6 soundness, since every finitely additive measure is qualitatively additive.

                Equations
                • m.toSystemFA = { ge := m.inducedGe, refl := , mono := , bottom := , nonTrivial := , total := , trans := , additive := }
                Instances For

                  Qualitatively additive measures #

                  structure ComparativeProbability.QualAddMeasure (K : Type u_1) [Field K] [LinearOrder K] [IsStrictOrderedRing K] (W : Type u_2) :
                  Type (max u_1 u_2)

                  A qualitatively additive measure on subsets of W. Unlike FinAddMeasure, this does NOT require μ(A ∪ B) = μ(A) + μ(B) for disjoint A, B. Instead it requires the weaker qualitative additivity condition: μ(A) ≥ μ(B) ↔ μ(A \ B) ≥ μ(B \ A).

                  [HI13] Theorem 6: System FA is sound and complete with respect to qualitatively additive measure models. The completeness construction (exists_qualAddMeasure_repr) realises μ(∅) = 0 by an affine renormalisation of the dominated-set count.

                  • mu : Set WK

                    The measure function

                  • nonneg (A : Set W) : 0 self.mu A

                    Non-negativity

                  • mu_empty : self.mu = 0

                    The impossible proposition has measure zero

                  • total : self.mu Set.univ = 1

                    Normalization

                  • qualAdd (A B : Set W) : self.mu A self.mu B self.mu (A \ B) self.mu (B \ A)

                    Qualitative additivity: μ(A) ≥ μ(B) ↔ μ(A \ B) ≥ μ(B \ A)

                  Instances For
                    def ComparativeProbability.QualAddMeasure.inducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : QualAddMeasure K W) (A B : Set W) :

                    Measure-induced comparative likelihood: A ≿ B ↔ μ(A) ≥ μ(B).

                    Equations
                    Instances For
                      theorem ComparativeProbability.QualAddMeasure.mu_mono {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : QualAddMeasure K W) {A B : Set W} (h : A B) :
                      m.mu A m.mu B

                      Subset monotonicity: A ⊆ B → μ(A) ≤ μ(B). From qualAdd + μ(∅) = 0 + nonneg.

                      def ComparativeProbability.QualAddMeasure.toSystemFA {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : QualAddMeasure K W) :

                      A qualitatively additive measure induces System FA. Soundness direction of [HI13] Theorem 6: every qualitatively additive measure model satisfies the FA axioms.

                      Equations
                      • m.toSystemFA = { ge := m.inducedGe, refl := , mono := , bottom := , nonTrivial := , total := , trans := , additive := }
                      Instances For
                        def ComparativeProbability.FinAddMeasure.toQualAdd {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :

                        Every finitely additive measure is qualitatively additive. Proof: μ(A) = μ(A \ B) + μ(A ∩ B) and μ(B) = μ(B \ A) + μ(A ∩ B), so μ(A) ≥ μ(B) ↔ μ(A \ B) ≥ μ(B \ A).

                        Equations
                        • m.toQualAdd = { mu := m.mu, nonneg := , mu_empty := , total := , qualAdd := }
                        Instances For

                          World-ordering lifts #

                          The l-lifting (Lewis's lifting; [HI13], §5) and its injection refinement, the m-lifting (§9). The l-lifting is the Smyth (upper powerdomain) order; the m-lifting requires distinct dominators (an injection), which avoids the disjunction problem (invalidates I1–I3) while validating V1–V13 (Fact 5).

                          def ComparativeProbability.dominationLift {W : Type u_1} (ge_w : WWProp) (A B : Set W) :

                          The l-lifting: A ≿ B iff every b ∈ B is dominated by some a ∈ A.

                          Equations
                          Instances For
                            def ComparativeProbability.matchingLift {W : Type u_1} (ge_w : WWProp) (A B : Set W) :

                            The m-lifting: A ≿ B iff some injection f : B ↪ A dominates pointwise.

                            Equations
                            • ComparativeProbability.matchingLift ge_w A B = ∃ (f : WW), (∀ bB, f b A ge_w (f b) b) ∀ (b₁ b₂ : W), b₁ Bb₂ Bf b₁ = f b₂b₁ = b₂
                            Instances For
                              theorem ComparativeProbability.dominationLift_axiomR {W : Type u_1} {ge_w : WWProp} (hRefl : ∀ (w : W), ge_w w w) :
                              Reflexive (dominationLift ge_w)

                              The l-lifting of a reflexive relation is reflexive.

                              theorem ComparativeProbability.dominationLift_axiomT {W : Type u_1} {ge_w : WWProp} (hRefl : ∀ (w : W), ge_w w w) (A B : Set W) :
                              A BdominationLift ge_w B A

                              The l-lifting of a reflexive relation is monotone.

                              theorem ComparativeProbability.dominationLift_axiomJ {W : Type u_1} {ge_w : WWProp} :

                              The l-lifting satisfies right-union.

                              theorem ComparativeProbability.strict_dominationLift_iff {W : Type u_1} {ge_w : WWProp} (hTotal : ∀ (a b : W), ge_w a b ge_w b a) (A B : Set W) :
                              Strict (dominationLift ge_w) A B aA, bB, ge_w a b ¬ge_w b a

                              Over a total relation, the strict l-lifting collapses to Lewis's ∃∀ comparative possibility: some A-point strictly dominates every B-point. This is the form the metalinguistic comparative takes in [RK24] (there bounded to the cone below an evaluation index, with worlds read as semantic interpretations).

                              theorem ComparativeProbability.strict_dominationLift_iff_below {W : Type u_1} {ge_w below : WWProp} (hTotal : ∀ (a b : W), ge_w a b ge_w b a) (hBelow : ∀ (a b : W), below a b ge_w b a ¬ge_w a b) (A B : Set W) :
                              Strict (dominationLift ge_w) A B aA, bB, below b a

                              strict_dominationLift_iff with the strict pair packaged as a dominance relation: whenever below is the strict form of the total ge_w, strict l-lifting is an ∃∀ clause in below.

                              def ComparativeProbability.coneStrictLift {W : Type u_1} (le below : WWProp) (P Q : WProp) (i : W) :

                              Lewis's ∃∀ comparative-possibility clause, localized to the le-cone at an index and comparing difference sets (P∖Q against Q∖P, the shape of [Kra12]'s revised lifting), with the dominance relation a parameter — the single clause behind [RK24]'s ≻ (below the strict ordering) and ≫ (below = far-below).

                              Equations
                              Instances For
                                @[implicit_reducible]
                                instance ComparativeProbability.instDecidableConeStrictLiftOfFintypeOfDecidableRelOfDecidablePred {W : Type u_1} (le below : WWProp) (P Q : WProp) (i : W) [Fintype W] [DecidableRel le] [DecidableRel below] [DecidablePred P] [DecidablePred Q] :
                                Decidable (coneStrictLift le below P Q i)
                                Equations
                                theorem ComparativeProbability.coneStrictLift_iff_strict_dominationLift {W : Type u_1} {ge_w le below : WWProp} (hTotal : ∀ (a b : W), ge_w a b ge_w b a) (hBelow : ∀ (a b : W), below a b ge_w b a ¬ge_w a b) (P Q : WProp) (i : W) :
                                coneStrictLift le below P Q i Strict (dominationLift ge_w) {x : W | le x i P x ¬Q x} {x : W | le x i Q x ¬P x}

                                Whenever below is the strict form of the total ge_w, the cone-localized clause is the strict l-lifting on the cone difference sets.

                                The l-lifting satisfies determination by singletons.

                                theorem ComparativeProbability.matchingLift_axiomR {W : Type u_1} {ge_w : WWProp} (hRefl : ∀ (w : W), ge_w w w) :
                                Reflexive (matchingLift ge_w)

                                The m-lifting of a reflexive relation is reflexive.

                                theorem ComparativeProbability.matchingLift_axiomT {W : Type u_1} {ge_w : WWProp} (hRefl : ∀ (w : W), ge_w w w) (A B : Set W) :
                                A BmatchingLift ge_w B A

                                The m-lifting of a reflexive relation is monotone.

                                def ComparativeProbability.dominationLiftSystemW {W : Type u_1} (ge_w : WWProp) (hRefl : ∀ (w : W), ge_w w w) :

                                The l-lifting of a reflexive preorder yields a System W (soundness).

                                Equations
                                Instances For
                                  def ComparativeProbability.matchingLiftSystemW {W : Type u_1} (ge_w : WWProp) (hRefl : ∀ (w : W), ge_w w w) :

                                  The m-lifting of a reflexive preorder yields a System W.

                                  Equations
                                  Instances For

                                    Connection to the ComparativeProbability theory #

                                    Every finitely-additive measure's induced order is a comparative-probability order (monotone, transitive, qualitatively additive, non-trivial), so the validity patterns V1–V13 transfer for free from ComparativeProbability.Patterns by instance resolution — no per-measure arithmetic.

                                    instance ComparativeProbability.instIsLikelihoodMonoSetInducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :
                                    instance ComparativeProbability.instIsTransSetInducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :
                                    IsTrans (Set W) m.inducedGe
                                    instance ComparativeProbability.instIsQualitativeAdditiveSetInducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :
                                    instance ComparativeProbability.instIsNontrivialSetInducedGe {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) :

                                    Generalized finite cancellation and GFC orders #

                                    The cancellation theory of imprecise (multi-prior) comparative probability, following [HTHI16] (after Ríos Insua 1992 and Alon–Lehrer 2014) and used by [HTHI18]. A pair of event-sequences is balanced when every state lies in equally many events on each side; Finite Cancellation (Scott) and its Generalized strengthening are the cancellation axioms whose Refl + Positivity + Non-triviality companions characterize representability by a single, resp. a set of, additive measures.

                                    noncomputable def ComparativeProbability.seqCount {W : Type u_1} (s : W) (Es : List (Set W)) :

                                    Indicator count of a state across an event sequence.

                                    Equations
                                    Instances For
                                      def ComparativeProbability.Balanced {W : Type u_1} (Es Fs : List (Set W)) :

                                      A balanced pair of event-sequences ([HTHI16]): every state lies in equally many events on the left as on the right.

                                      Equations
                                      Instances For
                                        def ComparativeProbability.FiniteCancellation {W : Type u_1} (ge : Set WSet WProp) :

                                        Finite Cancellation (Scott's axiom; [HTHI16]): for every balanced pair ⟨…, X⟩ / ⟨…, Y⟩ whose premise comparisons all hold, Y ≿ X. (prem carries the paired premise events; X/Y are the heads.)

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def ComparativeProbability.GeneralizedFiniteCancellation {W : Type u_1} (ge : Set WSet WProp) :

                                          Generalized Finite Cancellation (Ríos Insua; Alon–Lehrer; the form of [HTHI16]): like FiniteCancellation, but the distinguished pair may be repeated r ≥ 1 times. Strictly stronger than FiniteCancellation for incomplete relations; equivalent under totality.

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

                                            GFC implies FC (the r = 1 instance).

                                            structure ComparativeProbability.GFCOrder (W : Type u_1) :
                                            Type u_1

                                            A GFC order ([HTHI18], after [HTHI16]): reflexivity, positivity, non-triviality, and generalized finite cancellation. These four axioms characterize representability by a nonempty set of additive measures (E ≿ F ↔ ∀ μ ∈ P, μ E ≥ μ F). Transitivity, monotonicity, and complement reversal are derived from cancellation (GFCOrder.trans/mono/complRev), not stipulated.

                                            • ge : Set WSet WProp

                                              The "at least as likely as" relation on propositions.

                                            • refl (A : Set W) : self.ge A A

                                              Reflexivity.

                                            • positivity (A : Set W) : self.ge A

                                              Positivity: every proposition is at least as likely as the contradiction.

                                            • nonTriviality : ¬self.ge Set.univ

                                              Non-triviality: the contradiction is not at least as likely as the tautology.

                                            • Generalized finite cancellation.

                                            Instances For

                                              A GFC order satisfies finite cancellation.

                                              theorem ComparativeProbability.GFCOrder.trans {W : Type u_1} (G : GFCOrder W) {A B C : Set W} (hAB : G.ge A B) (hBC : G.ge B C) :
                                              G.ge A C

                                              Transitivity is derived from cancellation (balanced sequence ⟨A,B,C⟩/⟨B,C,A⟩).

                                              theorem ComparativeProbability.GFCOrder.mono {W : Type u_1} (G : GFCOrder W) {A B : Set W} (hAB : A B) :
                                              G.ge B A

                                              Monotonicity is derived from positivity + cancellation (balanced sequence ⟨B∖A, A⟩/⟨∅, B⟩).

                                              theorem ComparativeProbability.GFCOrder.complRev {W : Type u_1} (G : GFCOrder W) {A B : Set W} (hAB : G.ge A B) :
                                              G.ge B A

                                              Complement reversal is derived from cancellation (balanced sequence ⟨A, Aᶜ⟩/⟨B, Bᶜ⟩).

                                              Measures induce GFC orders #

                                              theorem ComparativeProbability.FinAddMeasure.muFinsetSum {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} (m : FinAddMeasure K W) (S : Finset W) :
                                              m.mu S = iS, m.mu {i}

                                              The measure of a finite set is the sum of its singleton measures.

                                              def ComparativeProbability.FinAddMeasure.toGFCOrder {K : Type u_1} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : Type u_2} [Fintype W] (m : FinAddMeasure K W) :

                                              Every finitely additive measure's induced order is a GFC order: the Scott / Alon–Lehrer soundness direction (a single measure μ is the nonempty set {μ}).

                                              Equations
                                              Instances For