Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Commits
ca55de72
Commit
ca55de72
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add some tests.
parent
13287fd5
No related branches found
No related tags found
1 merge request
!428
Tweak `f_equiv` to use `reflexivity` in a way similar to `f_equal`.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/proper.v
+18
-0
18 additions, 0 deletions
tests/proper.v
with
18 additions
and
0 deletions
tests/proper.v
+
18
−
0
View file @
ca55de72
From
stdpp
Require
Import
prelude
fin_maps
propset
.
(** Some tests for f_equiv. *)
(* Similar to [f_equal], it should solve goals by [reflexivity]. *)
Lemma
test_f_equiv_refl
{
A
}
(
R
:
relation
A
)
`{
!
Equivalence
R
}
x
:
R
x
x
.
Proof
.
f_equiv
.
Qed
.
(* And immediately solve sub-goals by reflexivity *)
Lemma
test_f_equiv_refl_nested
{
A
}
(
R
:
relation
A
)
`{
!
Equivalence
R
}
g
x
y
z
:
Proper
(
R
==>
R
==>
R
)
g
→
R
y
z
→
R
(
g
x
y
)
(
g
x
z
)
.
Proof
.
intros
?
Hyz
.
f_equiv
.
apply
Hyz
.
Qed
.
Section
f_equiv
.
Context
`{
!
Equiv
A
,
!
Equiv
B
,
!
SubsetEq
A
}
.
...
...
@@ -31,6 +43,12 @@ Section f_equiv.
End
f_equiv
.
(** Some tests for solve_proper (also testing f_equiv indirectly). *)
(** Test case for #161 *)
Lemma
test_solve_proper_const
{
A
}
(
R
:
relation
A
)
`{
!
Equivalence
R
}
x
:
Proper
(
R
==>
R
)
(
λ
_,
x
)
.
Proof
.
solve_proper
.
Qed
.
Section
tests
.
Context
{
A
B
:
Type
}
`{
!
Equiv
A
,
!
Equiv
B
}
.
Context
(
foo
:
A
→
A
)
(
bar
:
A
→
B
)
(
baz
:
B
→
A
→
A
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment