Graded Propositions #
Infrastructure for graded/continuous-valued propositions (W → ℚ) used in probabilistic approaches to semantics.
A graded proposition assigns a truth degree in ℚ to each world.
Equations
- Core.GradedProposition.GProp W = (W → ℚ)
Instances For
Graded conjunction: P(A ∧ B) = P(A) × P(B) under independence.
Equations
- Core.GradedProposition.conj p q w = p w * q w
Instances For
Graded disjunction: P(A ∨ B) = P(A) + P(B) - P(A)P(B) under independence.
Equations
- Core.GradedProposition.disj p q w = p w + q w - p w * q w
Instances For
Minimum-based conjunction (alternative to product).
Equations
- Core.GradedProposition.conjMin p q w = min (p w) (q w)
Instances For
Maximum-based disjunction (alternative to probabilistic or).
Equations
- Core.GradedProposition.disjMax p q w = max (p w) (q w)
Instances For
The always-true graded proposition (degree 1 everywhere).
Equations
Instances For
The always-false graded proposition (degree 0 everywhere).
Equations
Instances For
Graded entailment: p entails q iff p(w) ≤ q(w) for all worlds.
Equations
- Core.GradedProposition.entails p q = ∀ (w : W), p w ≤ q w
Instances For
Graded equivalence: p and q have the same truth degree everywhere.
Equations
- Core.GradedProposition.equiv p q = ∀ (w : W), p w = q w
Instances For
Equations
Equations
- Core.GradedProposition.instPreorderGProp = { le := Core.GradedProposition.entails, toLT := Pi.preorder.toLT, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯ }
Equations
Equations
Partial order on graded propositions.
Equations
- One or more equations did not get rendered due to their size.
Alias matching the existing RSA function name.
Instances For
Equations
- Core.GradedProposition.«term∼_» = Lean.ParserDescr.node `Core.GradedProposition.«term∼_» 75 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "∼") (Lean.ParserDescr.cat `term 75))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
A graded predicate is a function from entities to truth degrees.
Equations
- Core.GradedProposition.GPred E = (E → ℚ)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Boolean (crisp) feature reliability.
Equations
Instances For
High reliability feature (like color).
Equations
- Core.GradedProposition.FeatureReliability.high = { onMatch := 99 / 100, onMismatch := 1 / 100, match_gt_mismatch := Core.GradedProposition.FeatureReliability.high._proof_1 }
Instances For
Medium reliability feature (like size).
Equations
- Core.GradedProposition.FeatureReliability.medium = { onMatch := 8 / 10, onMismatch := 2 / 10, match_gt_mismatch := Core.GradedProposition.FeatureReliability.medium._proof_1 }
Instances For
Apply a feature reliability to a Boolean match result.