Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
stdpp
Commits
099e760b
Commit
099e760b
authored
Aug 04, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unfolding properties for Nat.iter.
parent
cac96811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
theories/numbers.v
theories/numbers.v
+6
-1
No files found.
theories/numbers.v
View file @
099e760b
...
...
@@ -82,7 +82,7 @@ Proof. intros. destruct (Nat_mul_split_l n x2 x1 y2 y1); auto with lia. Qed.
Notation
lcm
:
=
Nat
.
lcm
.
Notation
divide
:
=
Nat
.
divide
.
Notation
"( x | y )"
:
=
(
divide
x
y
)
:
nat_scope
.
Instance
divide_dec
x
y
:
Decision
(
x
|
y
).
Instance
Nat_
divide_dec
x
y
:
Decision
(
x
|
y
).
Proof
.
refine
(
cast_if
(
decide
(
lcm
x
y
=
y
)))
;
by
rewrite
Nat
.
divide_lcm_iff
.
Defined
.
...
...
@@ -94,6 +94,11 @@ Hint Extern 0 (_ | _) => reflexivity.
Lemma
Nat_divide_ne_0
x
y
:
(
x
|
y
)
→
y
≠
0
→
x
≠
0
.
Proof
.
intros
Hxy
Hy
->.
by
apply
Hy
,
Nat
.
divide_0_l
.
Qed
.
Lemma
Nat_iter_S
{
A
}
n
(
f
:
A
→
A
)
x
:
Nat
.
iter
(
S
n
)
f
x
=
f
(
Nat
.
iter
n
f
x
).
Proof
.
done
.
Qed
.
Lemma
Nat_iter_S_r
{
A
}
n
(
f
:
A
→
A
)
x
:
Nat
.
iter
(
S
n
)
f
x
=
Nat
.
iter
n
f
(
f
x
).
Proof
.
induction
n
;
f_equal
/=
;
auto
.
Qed
.
(** * Notations and properties of [positive] *)
Open
Scope
positive_scope
.
...
...
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