Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RefinedC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
RefinedC
Commits
ff485877
Commit
ff485877
authored
4 years ago
by
Rodolphe Lepigre
Browse files
Options
Downloads
Patches
Plain Diff
Fixed adequacy in tutorial.
parent
42a0c166
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Dune build
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorial/adequacy/adequacy.v
+4
-5
4 additions, 5 deletions
tutorial/adequacy/adequacy.v
tutorial/adequacy/dune
+6
-7
6 additions, 7 deletions
tutorial/adequacy/dune
with
10 additions
and
12 deletions
tutorial/adequacy/adequacy.v
+
4
−
5
View file @
ff485877
...
...
@@ -38,8 +38,8 @@ Section adequate.
impl_free
loc_allocator_state
loc_sl_lock
loc_sl_unlock
;
impl_init_alloc
loc_allocator_state
loc_sl_init
;
impl_main
loc_initialized
loc_allocator_data
loc_test
loc_free
loc_init_alloc
loc_latch_release
;
impl_main2
loc_initialized
loc_test
loc_latch_wait
impl_main
loc_initialized
loc_allocator_data
loc_latch_release
loc_test
loc_free
loc_init_alloc
;
impl_main2
loc_initialized
loc_latch_wait
loc_test
]
.
Definition
function_locs
:
list
loc
:=
[
loc_sl_init
;
loc_sl_lock
;
loc_sl_unlock
;
...
...
@@ -65,12 +65,11 @@ Section adequate.
<
[
"initialized"
:=
loc_initialized
]
>
$
∅.
Definition
global_types
`{
!
typeG
Σ
}
`{
!
lockG
Σ
}
:
gmap
string
global_type
:=
<
[
"allocator_state"
:=
GT
unit
(
λ
'
(),
alloc_state
)]
>
$
<
[
"allocator_state"
:=
GT
unit
(
λ
'
(),
t04_alloc
.
spec
.
alloc_state
)]
>
$
(* We need to use initialized_raw to avoid a cyclic definition of globalG *)
<
[
"initialized"
:=
GT
unit
(
λ
'
(),
latch
(
initialized_raw
"allocator_state"
()
(
Some
loc_allocator_state
)
(
Some
(
GT
unit
(
λ
'
(),
alloc_state
)))))]
>
$
<
[
"initialized"
:=
GT
unit
(
λ
'
(),
latch
(
initialized_raw
"allocator_state"
()
(
Some
loc_allocator_state
)
(
Some
(
GT
unit
(
λ
'
(),
t04_alloc
.
spec
.
alloc_state
)))))]
>
$
∅.
Lemma
tutorial_adequate
n
κs
t2
σ2
:
NoDup
[
block_allocator_data
;
block_allocator_state
;
block_initialized
]
→
NoDup
function_locs
→
...
...
This diff is collapsed.
Click to expand it.
tutorial/adequacy/dune
+
6
−
7
View file @
ff485877
; FIXME
;(coq.theory
; (flags -w -notation-overridden -w -redundant-canonical-projection)
; (name refinedc.tutorial.adequacy)
; (theories refinedc.lang refinedc.typing refinedc.typing.automation refinedc.lithium
; refinedc.examples.spinlock refinedc.examples.latch
; refinedc.tutorial.t03_list refinedc.tutorial.t04_alloc refinedc.tutorial.t05_main))
(coq.theory
(flags -w -notation-overridden -w -redundant-canonical-projection)
(name refinedc.tutorial.adequacy)
(theories refinedc.lang refinedc.typing refinedc.typing.automation refinedc.lithium
refinedc.examples.spinlock refinedc.examples.latch
refinedc.tutorial.t03_list refinedc.tutorial.t04_alloc refinedc.tutorial.t05_main))
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