6.5. Property value and value scale (Dybkær Ch. 9, 16, 10, 17)
-
PropertyKindCalculus.PropertyValue[complete]
A property value (§9.15) bundles its kind-of-property, a numeral (the numerical value, §16.10), and the reference the numeral is taken against — a metrological unit for a quantity value, a designation for a nominal one. A value is a quantity value (§16.10) iff its kind has magnitude, and two values are comparable iff they are of the same kind.
Lean code for Definition6.5.1●1 definition
Associated Lean declarations
-
PropertyKindCalculus.PropertyValue[complete]
-
PropertyKindCalculus.PropertyValue[complete]
-
structuredefined in PropertyKindCalculus/PropertyValue.leancomplete
structure PropertyKindCalculus.PropertyValue : Type
structure PropertyKindCalculus.PropertyValue : Type
**§9.15 property value** — an inherent feature of a property used in comparing it with other properties of the *same* kind-of-property. Carried as a kind together with its representation (§9.15 Note 2): a numeral and the reference the numeral is taken against.
Fields
kind : PropertyKindCalculus.KindOfProperty
§9.15 — the kind-of-property this value belongs to; a value is comparable only with values of the same kind.
numeral : Int
§16.10 — the numerical value (numeral). For a quantity value the magnitude is this number times the `reference`; for a nominal value (§12.4) it is a bare type-number / label.
reference : String
§16.10 — the reference the numeral is taken against: a metrological unit id for a quantity value (§18.12), or a category/designation id for a nominal one.
A structure with DecidableEq. scale, IsQuantityValue, and Comparable are
definitional projections over the kind field.
Comparability of values is an equivalence. Two property values are comparable iff they are of the same kind (§9.15); the relation is
reflexive, symmetric, and transitive. Comparable values are moreover governed by
the same scale type, so the same operators are defined on both
(scale_eq_of_comparable). Transitivity is exactly the algebraic law a
description logic cannot state.
Lean code for Theorem6.5.2●1 theorem
Associated Lean declarations
-
theoremdefined in PropertyKindCalculus/PropertyValue.leancomplete
theorem PropertyKindCalculus.PropertyValue.Comparable.trans {u v w : PropertyKindCalculus.PropertyValue} (h₁ : u.Comparable v) (h₂ : v.Comparable w) : u.Comparable w
theorem PropertyKindCalculus.PropertyValue.Comparable.trans {u v w : PropertyKindCalculus.PropertyValue} (h₁ : u.Comparable v) (h₂ : v.Comparable w) : u.Comparable w
Comparability is transitive — the law a description logic cannot state.
Comparability unfolds to equality of the kind field, so reflexivity, symmetry,
and transitivity are those of Eq; scale_eq_of_comparable is congrArg on the
scale projection.
-
PropertyKindCalculus.ValueScale[complete]
A property value scale (§10.14) is the ordered set of possible, mutually
comparable values of one kind. It carries that kind
and a provenance — true (consistent with the property's definition, §10.16.1) or
examined (obtained by an examination procedure, §10.16.2). Its scaleType is
the kind's scale, the datum Table 17.4 uses to gate which manipulations a scale
admits, and KindOfProperty.valueScale gives the canonical true scale of a kind
(§9.15 ↔ §10.14).
Lean code for Definition6.5.3●1 definition
Associated Lean declarations
-
PropertyKindCalculus.ValueScale[complete]
-
PropertyKindCalculus.ValueScale[complete]
-
structuredefined in PropertyKindCalculus/ValueScale.leancomplete
structure PropertyKindCalculus.ValueScale : Type
structure PropertyKindCalculus.ValueScale : Type
**§10.14 property value scale** — the ordered set of possible, mutually comparable property values of one kind. Carried as that kind together with its provenance (§10.16).
Fields
kind : PropertyKindCalculus.KindOfProperty
§10.14 — the kind-of-property whose values this scale orders.
provenance : PropertyKindCalculus.ScaleProvenance
§10.16 — whether this is a true or an examined property-value scale.
A structure carrying kind and a ScaleProvenance; Admits v is
v.kind = s.kind, and KindOfProperty.valueScale builds the canonical true scale.
A value scale holds only mutually comparable values. Any two values a
value scale admits are of the scale's kind, hence
comparable (§10.14) — the defining property of a value
scale, quantified over its members. The scale type further licenses operations
monotonically (allows_mono_of_le): a richer value scale supports every
manipulation a poorer one does (Table 17.4), inherited from operator monotonicity.
Lean code for Theorem6.5.4●1 theorem
Associated Lean declarations
-
theoremdefined in PropertyKindCalculus/ValueScale.leancomplete
theorem PropertyKindCalculus.ValueScale.comparable_of_mem {s : PropertyKindCalculus.ValueScale} {v w : PropertyKindCalculus.PropertyValue} (hv : s.Admits v) (hw : s.Admits w) : v.Comparable w
theorem PropertyKindCalculus.ValueScale.comparable_of_mem {s : PropertyKindCalculus.ValueScale} {v w : PropertyKindCalculus.PropertyValue} (hv : s.Admits v) (hw : s.Admits w) : v.Comparable w
**§10.14 — a value scale holds only mutually comparable values.** Any two values a scale admits are of the scale's kind, and so are comparable. This is the defining property of a value scale, and it quantifies over the scale's members.
Membership unfolds to equality with the scale's kind, so two members' kinds are
equal by trans/symm; operator monotonicity is the scale-layer allows_mono
re-exported through scaleType.