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
Package Registry
Model registry
Operate
Terraform modules
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
Adam
stdpp
Commits
928684f9
Commit
928684f9
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add test for mk_evar and things that coerce to types
parent
e0492901
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/tactics.v
+15
-0
15 additions, 0 deletions
tests/tactics.v
with
15 additions
and
0 deletions
tests/tactics.v
+
15
−
0
View file @
928684f9
...
...
@@ -54,3 +54,18 @@ Proof. intros ?. rename select nat into m. exists m. done. Qed.
Goal
∀
(
P
:
nat
→
Prop
),
P
3
→
P
4
→
P
4
.
Proof
.
intros
P
**.
rename
select
(
P
_)
into
HP4
.
apply
HP4
.
Qed
.
(** [mk_evar] works on things that coerce to types. *)
(** This is a feature when we have packed structures, for example Iris's [ofe]
(fields other than the carrier omitted). *)
Structure
ofe
:=
Ofe
{
ofe_car
:>
Type
}
.
Goal
∀
A
:
ofe
,
True
.
intros
A
.
let
x
:=
mk_evar
A
in
idtac
.
Abort
.
(** More surprisingly, it also works for other coercions into a
universe, like [Is_true : bool → Prop]. *)
Goal
True
.
let
x
:=
mk_evar
true
in
idtac
.
Abort
.
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