We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf64674 commit c45abd0Copy full SHA for c45abd0
1 file changed
src/Rewriter/Language/Language.v
@@ -166,6 +166,14 @@ Module Compilers.
166
167
Notation is_not_higher_order := (@is_not_higher_order_than 1).
168
169
+ Lemma eqv_of_is_not_higher_order {base_type base_interp t}
170
+ (H : is_not_higher_order t = true)
171
+ : forall v, Proper (@related base_type base_interp (fun _ => eq) t) v.
172
+ Proof.
173
+ cbv [Proper]; induction t; cbn; eauto; try apply HR; repeat intro; cbn in *.
174
+ cbv [is_base Proper] in *; break_innermost_match_hyps; cbn in *; subst; try congruence; eauto.
175
+ Qed.
176
+
177
Section interpM.
178
Context {base_type} (M : Type -> Type) (base_interp : base_type -> Type).
179
(** half-monadic denotation function; denote [type]s into their
0 commit comments