Class Inj {A B} (R : relation A) (S : relation B) (f : A -> B) : Prop :=
inj x y : S (f x) (f y) -> R x y.
Definition kmap {K1} {K2} {M1} {M2 : Type -> Type} {A} (f : K1 -> K2) (m : M1 A) : M2 A.
admit. Defined. Definition kmap_inj {K1} {K2} {M1} {M2 : Type -> Type} {A} (f : K1 -> K2) (m : M1 A) : Inj (@eq (M1 A)) (eq) (@kmap K1 K2 M1 M2 A f). Admitted.
ModuleExport functions.
Section dep_fn_insert.
Context {A : Type} `{forall x y:A, Decision (eq x y)} {T : A -> Type}.
Import EqNotations. Definition dep_fn_insert a0 (t : T a0) (f : forall a : A, T a) : forall a : A, T a. exact (fun a => matchdecide (a0 = a) with
| left E => rew E in t
| right _ => f a end). Defined. End dep_fn_insert.
End functions.
ModuleExport Sts.
Record sts {Label : Type} : Type :=
{ _state :> Type }.
#[global] Arguments sts _ : clear implicits.
Record t :=
{ Label : Type
; _sts :> sts Label }.
#[global] Arguments Build_t {_} _. Definition State (x : t) := x.(_sts).(_state). End Sts.
ModuleExport Compose.
Record config := {
name : Set;
external_event : Set;
sts_name : name -> Sts.t;
}. End Compose.
Section Compose.
Context (sf: config). Definition State : Type. exact (forall n, Sts.State (sts_name sf n)). Defined. Definition compose_lts : Sts.sts (external_event sf). exact ({|
Sts._state := State;
|}). Defined. End Compose.
Variant guestT := guest | host.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.