Observation fibres and decision functions
DefinitionCouret_DecisionInterface_d4e860afd684For arbitrary universe levels , let , , and , allowing empty types. For and , the fibre is the predicate on . Refining a predicate by a function at gives the predicate . A decision is known on when every satisfying has , for ; this is vacuous if has no members. Fibre constancy of relative to means implies for every . The observed image is the subtype of for which some satisfies . On that subtype, the induced decision selects such an input using classical choice and returns its value under . This definition itself requires no fibre-constancy hypothesis, so agreement with every input in a fibre is a separate property. If is empty, its observed image is empty, and the induced function still has that empty domain even if is empty.
import Init
/- Source-only draft: NOT compiled in this package. No `sorry` placeholders.
This module states the logical interface, not the cost/parity theorem.
No connection to the Python implementation is formally proved here. -/
set_option autoImplicit false
universe u v w t
namespace Couret.DecisionInterface
variable {X : Type u} {Y : Type v} {A : Type w} {B : Type t}
def Fibre (O : X → Y) (y : Y) : X → Prop := fun x => O x = y
def Refine (C : X → Prop) (q : X → B) (b : B) : X → Prop :=
fun x => C x ∧ q x = b
def KnownDecision (C : X → Prop) (D : X → A) (a : A) : Prop :=
∀ x, C x → D x = a
def FibreConstant (O : X → Y) (D : X → A) : Prop :=
∀ x y, O x = O y → D x = D y
def ObservedImage (O : X → Y) := {y : Y // ∃ x : X, O x = y}
noncomputable def inducedDecision (O : X → Y) (D : X → A)
(y : ObservedImage O) : A := D (Classical.choose y.property)
end Couret.DecisionInterface