Skip to content

Commit

Permalink
green
Browse files Browse the repository at this point in the history
  • Loading branch information
gert-smolka committed Jun 19, 2024
1 parent c737d26 commit d83b0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coq/more.v
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Qed.

Fact R {X Y f g} :
@inv (option X) (option Y) g f ->
forall x, Sigma y, match f (Some x) with Some y' => y = y' | None => f None = Some y end.
forall x, Sigma z, match f (Some x) with Some y => z = y | None => Some z = f None end.
Proof.
intros H x.
destruct (f (Some x)) as [y|] eqn:E1.
Expand All @@ -279,7 +279,7 @@ Proof.
revert H3 H4.
destruct (f (Some x)) as [y1|] eqn:E.
- intros <-. rewrite <-E, H1. easy.
- intros <-. rewrite H1. rewrite <-E, H1. congruence.
- intros ->. rewrite H1. rewrite <-E, H1. congruence.
Qed.

Theorem bijection_option X Y :
Expand All @@ -297,7 +297,7 @@ Proof.
- hnf. intros [x|]; congruence.
- hnf. intros [y|]; congruence.
Qed.

(*** Numeral Types *)

Fixpoint num n : Type :=
Expand Down

0 comments on commit d83b0b6

Please sign in to comment.