Navigation

Compose-laws

fx.experimental.desc-interp.compose-laws: kernel-checked one-shot meta-theorem for composeHandlers. Two clauses (inl/inr); both discharge by H.refl.

composeHandlersInlLemma

Inl clause proof: 12 lams + H.refl. checkHoas succeeds because kernel conv decides composeHandlers' iota universally.

composeHandlersInlLemmaTy

Inl clause Π-type: composeHandlers on (inl op_A, pair s_A s_B) ≡ sumElim … (H_A op_A s_A) (mkResume_composed …) (mkAbort_composed …) with s_B threaded.

composeHandlersInrLemma

Inr clause proof: 12 lams + H.refl.

composeHandlersInrLemmaTy

Inr clause Π-type: mirror of the inl clause with the state-slot roles swapped.