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
824e9723
Commit
824e9723
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'robbert/seal_fresh_generic' into 'master'
Seal `fresh_generic`. See merge request
!54
parents
a99446f9
f0b073ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!54
Seal `fresh_generic`.
Pipeline
#14460
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/infinite.v
+9
-3
9 additions, 3 deletions
theories/infinite.v
with
9 additions
and
3 deletions
theories/infinite.v
+
9
−
3
View file @
824e9723
...
...
@@ -41,7 +41,11 @@ Qed.
various set implementations, e.g. [Pset] and [natset], we have an efficient
implementation of [Fresh], which should always be used. Only for specific set
implementations like [gset], which are not meant to be computationally
efficient in the first place, we make [fresh_generic] an instance. *)
efficient in the first place, we make [fresh_generic] an instance.
Since [fresh_generic] is too inefficient for all practical purposes, we seal
off its definition. That way, Coq will not accidentally unfold it during
unification or other tactics. *)
Section
fresh_generic
.
Context
`{
FinCollection
A
C
,
Infinite
A
,
!
RelDecision
(
∈@
{
C
})}
.
...
...
@@ -52,12 +56,14 @@ Section fresh_generic.
|
right
_
=>
cand
end
.
Definition
fresh_generic_fix
:
C
→
nat
→
A
:=
Fix
(
wf_guard
20
collection_wf
)
(
const
(
nat
→
A
))
fresh_generic_body
.
Definition
fresh_generic_fix_aux
:
seal
(
Fix
collection_wf
(
const
(
nat
→
A
))
fresh_generic_body
)
.
by
eexists
.
Qed
.
Definition
fresh_generic_fix
:=
fresh_generic_fix_aux
.(
unseal
)
.
Lemma
fresh_generic_fixpoint_unfold
s
n
:
fresh_generic_fix
s
n
=
fresh_generic_body
s
(
λ
s'
_,
fresh_generic_fix
s'
)
n
.
Proof
.
unfold
fresh_generic_fix
.
rewrite
fresh_generic_fix_aux
.(
seal_eq
)
.
refine
(
Fix_unfold_rel
_
_
(
const
(
pointwise_relation
nat
(
=
)))
_
_
s
n
)
.
intros
s'
f
g
Hfg
i
.
unfold
fresh_generic_body
.
case_decide
;
naive_solver
.
Qed
.
...
...
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