Domains for the monotonicity calculus #
This file interprets the marked types of the [IMT17]
monotonicity calculus as preordered domains: base types by a given
assignment, +-arrows as the monotone maps (→o), −-arrows as the
antitone maps (·ᵒᵈ →o ·), unmarked arrows as all maps, each with the
pointwise order. Each subtyping σ ≤ τ is interpreted as an
order-preserving coercion, functorial in ≤.
Main declarations #
Ty.Dom: the domain interpretation of a marked type.Ty.castLE: the coercion along subtyping — the identity on base types, conjugation by the inner coercions on arrows.Ty.castLE_rfl,Ty.castLE_castLE: the functor laws ([IMT17] Definition 3.5's coherence conditions).
References #
- [IMT17] — Definitions 3.5–3.6.
Equations
- NaturalLogic.instPreorderα_linglib D = D.str
Interpret each marked type as a preordered domain over the base
assignment Db ([IMT17] Definition 3.6): +-arrows
as the monotone maps, −-arrows as the antitone maps, unmarked
arrows as all maps, ordered pointwise.
Equations
- NaturalLogic.Ty.Dom Db (NaturalLogic.Ty.base b) = Db b
- NaturalLogic.Ty.Dom Db (σ.arr NaturalLogic.Marking.pos τ) = CategoryTheory.Bundled.of (↑(NaturalLogic.Ty.Dom Db σ) →o ↑(NaturalLogic.Ty.Dom Db τ))
- NaturalLogic.Ty.Dom Db (σ.arr NaturalLogic.Marking.neg τ) = CategoryTheory.Bundled.of ((↑(NaturalLogic.Ty.Dom Db σ))ᵒᵈ →o ↑(NaturalLogic.Ty.Dom Db τ))
- NaturalLogic.Ty.Dom Db (σ.arr NaturalLogic.Marking.unmarked τ) = CategoryTheory.Bundled.of (↑(NaturalLogic.Ty.Dom Db σ) → ↑(NaturalLogic.Ty.Dom Db τ))
Instances For
The coercion along subtyping ([IMT17]
Definition 3.5): the identity on base types; on arrows, conjugation
by the inner coercions, forgetting the order-behaviour where the
marking weakens to ·.
Equations
- One or more equations did not get rendered due to their size.
- NaturalLogic.Ty.castLE h_2 = OrderHom.id
- NaturalLogic.Ty.castLE h = absurd h ⋯
- NaturalLogic.Ty.castLE h = absurd h ⋯
- NaturalLogic.Ty.castLE h = absurd ⋯ NaturalLogic.Ty.castLE._proof_3
- NaturalLogic.Ty.castLE h = absurd ⋯ NaturalLogic.Ty.castLE._proof_5
- NaturalLogic.Ty.castLE h = absurd ⋯ NaturalLogic.Ty.castLE._proof_7
- NaturalLogic.Ty.castLE h = absurd ⋯ NaturalLogic.Ty.castLE._proof_9
Instances For
Application lemmas #
Functor laws #
The coercion along le_refl is the identity.