Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
a8a18953
Commit
a8a18953
authored
14 years ago
by
Viktor Kuncak
Browse files
Options
Downloads
Patches
Plain Diff
one can use lemmas by conjoining their instances
parent
48adb815
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testcases/RedBlackTree.scala
+5
-0
5 additions, 0 deletions
testcases/RedBlackTree.scala
testcases/UseContradictoryLemma.scala
+15
-0
15 additions, 0 deletions
testcases/UseContradictoryLemma.scala
with
20 additions
and
0 deletions
testcases/RedBlackTree.scala
+
5
−
0
View file @
a8a18953
...
...
@@ -51,4 +51,9 @@ object RedBlackTree {
case
Node
(
Red
(),
l
,
v
,
r
)
=>
Node
(
Black
(),
l
,
v
,
r
)
case
_
=>
n
}
def
flip
(
t
:
Tree
)
:
Tree
=
t
match
{
case
Empty
()
=>
Empty
()
case
Node
(
color
,
l
,
e
,
r
)
=>
Node
(
color
,
flip
(
r
),
e
,
flip
(
l
))
}
}
This diff is collapsed.
Click to expand it.
testcases/UseContradictoryLemma.scala
0 → 100644
+
15
−
0
View file @
a8a18953
import
scala.collection.immutable.Set
import
funcheck.Utils._
import
funcheck.Annotations._
object
UseContradictoryLemma
{
def
lemma1
(
x
:
Int
)
:
Boolean
=
{
x
==
1
}
holds
def
f
(
x
:
Int
)
:
Int
=
{
5
}
ensuring
(
x
=>
lemma1
(
x
)
&&
x
==
1
)
}
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