Skip to content

Commit

Permalink
add a comment about the axiom-free destruct principle for lh
Browse files Browse the repository at this point in the history
  • Loading branch information
raoxiaojia committed Dec 7, 2023
1 parent 1e9c76f commit 0156dfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions theories/properties.v
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,8 @@ Ltac decide_eq_arg x y :=
let Hcontra := fresh "Hcontra" in
destruct (x == y) eqn:Heq; move/eqP in Heq; subst; last by right; move => Hcontra; injection Hcontra.

(* Destruct principle for a (lh n).
Usage: either direct application, or `destruct ... using lh_case.` *)
Definition lh_case: forall n (P: lholed n -> Type),
(forall (H: 0 = n) vs es, P (lholed_cast (LH_base vs es) H)) ->
(forall n' (H: S n' = n) vs k es (lh: lholed n') es', P (lholed_cast (LH_rec vs k es lh es') H)) ->
Expand Down

0 comments on commit 0156dfe

Please sign in to comment.