Skip to content

Commit

Permalink
Strenghten In_size lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Jan 24, 2024
1 parent 4dc7c47 commit c5cb1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/theories/MCList.v
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ Proof.
Qed.

Lemma In_size {A B} {x : A} {l : list A} (proj : A -> B) (size : B -> nat) :
In x l -> size (proj x) < S (list_size (size ∘ proj) l).
In x l -> size (proj x) < (list_size (size ∘ proj) l).
Proof.
induction l; cbn => //.
intros [->|hin]. lia. specialize (IHl hin); lia.
Expand Down

0 comments on commit c5cb1ab

Please sign in to comment.