Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BiCoq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MARCON Cecile
BiCoq
Commits
6a848392
Commit
6a848392
authored
3 months ago
by
MARCON Cecile
Browse files
Options
Downloads
Patches
Plain Diff
fixed import on inftype and sigparam
parent
a5d8f406
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/AbstractBigraphs.v
+8
-6
8 additions, 6 deletions
src/AbstractBigraphs.v
src/SignatureBig.v
+5
-7
5 additions, 7 deletions
src/SignatureBig.v
with
13 additions
and
13 deletions
src/AbstractBigraphs.v
+
8
−
6
View file @
6a848392
...
...
@@ -36,9 +36,11 @@ Import ListNotations.
(
**
This
module
implements
bigraphs
and
basic
operations
on
bigraphs
*
)
Module
Bigraphs
(
sp
:
SignatureParameter
)
(
np
:
InfType
).
Import
sp
.
Import
np
.
Module
s
:=
Signature
sp
.
Module
n
:=
infTs
np
.
I
nclude
s
.
I
mport
s
.
Import
n
.
(
**
*
Definition
of
a
bigraph
This
section
defines
the
Type
bigraph
*
)
...
...
@@ -72,7 +74,7 @@ Definition get_control {s r : nat} {i o : NoDupList} (bg : bigraph s i r o) : ge
@
control
s
i
r
o
bg
.
Definition
get_parent
{
s
r
:
nat
}
{
i
o
:
NoDupList
}
(
bg
:
bigraph
s
i
r
o
)
:
(
get_node
bg
)
+
(
ordinal
s
)
->
(
get_node
bg
)
+
(
ordinal
r
)
:=
@
parent
s
i
r
o
bg
.
Definition
get_link
{
s
r
:
nat
}
{
i
o
:
NoDupList
}
(
bg
:
bigraph
s
i
r
o
)
:
{
inner
:
np
.
infT
|
In
inner
i
}
+
Port
(
@
get_control
s
r
i
o
bg
)
->
{
outer
:
np
.
infT
|
In
outer
o
}
+
(
get_edge
bg
)
:=
Definition
get_link
{
s
r
:
nat
}
{
i
o
:
NoDupList
}
(
bg
:
bigraph
s
i
r
o
)
:
{
inner
:
infT
|
In
inner
i
}
+
Port
(
@
get_control
s
r
i
o
bg
)
->
{
outer
:
infT
|
In
outer
o
}
+
(
get_edge
bg
)
:=
@
link
s
i
r
o
bg
.
Definition
get_ap
{
s
r
:
nat
}
{
i
o
:
NoDupList
}
(
bg
:
bigraph
s
i
r
o
)
:
FiniteParent
(
get_parent
(
bg
:=
bg
))
:=
@
ap
s
i
r
o
bg
.
...
...
@@ -95,7 +97,7 @@ Theorem parent_proof_irrelevant {s i r o} (b:bigraph s i r o):
Qed
.
Theorem
innername_proof_irrelevant
{
s
i
r
o
}
(
b
:
bigraph
s
i
r
o
)
:
forall
n
:
np
.
infT
,
forall
Hn
:
In
n
i
,
forall
Hn
'
:
In
n
i
,
forall
n
:
infT
,
forall
Hn
:
In
n
i
,
forall
Hn
'
:
In
n
i
,
get_link
(
bg
:=
b
)
(
inl
(
exist
_
n
Hn
))
=
get_link
(
bg
:=
b
)
(
inl
(
exist
_
n
Hn
'
)).
Proof
.
intros
.
apply
f_equal
.
apply
f_equal
.
apply
subset_eq_compat
.
reflexivity
.
...
...
@@ -278,7 +280,7 @@ Definition symmetry_big (m:nat) (X:NoDupList) (n:nat) (Y:NoDupList) :
destruct
n
'
.
Defined
.
Definition
substitution
(
i
:
NoDupList
)
(
name
:
np
.
infT
)
:
bigraph
0
i
0
(
OneelNDL
name
).
Definition
substitution
(
i
:
NoDupList
)
(
name
:
infT
)
:
bigraph
0
i
0
(
OneelNDL
name
).
Proof
.
apply
(
@
Big
0
i
0
(
OneelNDL
name
)
void
(
*
node
:
∅
*
)
...
...
@@ -293,10 +295,10 @@ Definition substitution (i:NoDupList) (name:np.infT) : bigraph 0 i 0 (OneelNDL n
destruct
n
'
.
Defined
.
Definition
elementary_renaming
(
n
n
'
:
np
.
infT
)
:=
substitution
(
OneelNDL
n
)
n
'
.
Definition
elementary_renaming
(
n
n
'
:
infT
)
:=
substitution
(
OneelNDL
n
)
n
'
.
Definition
closure
(
name
:
np
.
infT
)
:
bigraph
0
(
OneelNDL
name
)
0
EmptyNDL
.
Definition
closure
(
name
:
infT
)
:
bigraph
0
(
OneelNDL
name
)
0
EmptyNDL
.
Proof
.
apply
(
@
Big
0
(
OneelNDL
name
)
0
EmptyNDL
void
(
*
node
:
∅
*
)
...
...
This diff is collapsed.
Click to expand it.
src/SignatureBig.v
+
5
−
7
View file @
6a848392
...
...
@@ -8,18 +8,16 @@ Require Import FunctionalExtensionality.
Require
Import
MathCompAddings
.
From
mathcomp
Require
Import
ssreflect
ssrfun
ssrbool
eqtype
ssrnat
seq
fintype
finfun
.
(
**
*
This
module
implements
a
signature
It
contains
a
Module
Type
with
Kappa
and
Arity
,
and
Ports
built
from
the
Signature
*
)
Module
Type
SignatureParameter
.
Parameter
Kappa
:
eqType
.
(
*
Parameter
EqDecK
:
forall
x
y
:
Kappa
,
{
x
=
y
}
+
{
x
<>
y
}
.
*
)
Parameter
Arity
:
Kappa
->
nat
.
End
SignatureParameter
.
Module
Signature
(
SP
:
SignatureParameter
).
I
nclude
SP
.
Module
Signature
(
SP
aram
:
SignatureParameter
).
I
mport
SParam
.
Definition
Port
{
node
:
Type
}
(
control
:
node
->
Kappa
)
:
Type
:=
{
n
:
node
&
'
I_
(
Arity
(
control
n
))
}
.
...
...
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