Skip to content

Commit

Permalink
Merge pull request #1086 from MevenBertrand/correct-noccur
Browse files Browse the repository at this point in the history
Correct noccur for Template
  • Loading branch information
mattam82 authored Sep 16, 2024
2 parents ac6100e + 4c4fc2a commit d4a0fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template-coq/theories/Ast.v
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ Notation closed t := (closedn 0 t).

Fixpoint noccur_between k n (t : term) : bool :=
match t with
| tRel i => Nat.ltb i k && Nat.leb (k + n) i
| tRel i => Nat.ltb i k || Nat.leb (k + n) i
| tEvar ev args => List.forallb (noccur_between k n) args
| tLambda _ T M | tProd _ T M => noccur_between k n T && noccur_between (S k) n M
| tApp u v => noccur_between k n u && List.forallb (noccur_between k n) v
Expand Down

0 comments on commit d4a0fff

Please sign in to comment.