Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flocq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flocq
flocq
Commits
c74e88d4
Commit
c74e88d4
authored
Aug 20, 2010
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a function for recovering bracket location.
parent
72dcf8b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/Calc/Fcalc_bracket.v
src/Calc/Fcalc_bracket.v
+19
-0
No files found.
src/Calc/Fcalc_bracket.v
View file @
c74e88d4
...
...
@@ -9,10 +9,29 @@ Inductive location := loc_Exact | loc_Inexact : comparison -> location.
Variable
x
:
R
.
Definition
inbetween_loc
:=
match
Rcompare
x
d
with
|
Gt
=>
loc_Inexact
(
Rcompare
x
((
d
+
u
)
/
2
))
|
_
=>
loc_Exact
end
.
Inductive
inbetween
:
location
->
Prop
:=
|
inbetween_Exact
:
x
=
d
->
inbetween
loc_Exact
|
inbetween_Inexact
l
:
(
d
<
x
<
u
)
%
R
->
Rcompare
x
((
d
+
u
)
/
2
)
%
R
=
l
->
inbetween
(
loc_Inexact
l
).
Theorem
inbetween_spec
:
(
d
<=
x
<
u
)
%
R
->
inbetween
inbetween_loc
.
Proof
.
intros
Hx
.
unfold
inbetween_loc
.
destruct
(
Rcompare_spec
x
d
)
as
[
H
|
H
|
H
].
now
elim
Rle_not_lt
with
(
1
:=
proj1
Hx
).
now
constructor
.
constructor
.
now
split
.
easy
.
Qed
.
Section
Fcalc_bracket_any
.
Variable
l
:
location
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment