Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Coq Exercises
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
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
Max Ole Elliger
Coq Exercises
Commits
71ca25d6
Commit
71ca25d6
authored
1 year ago
by
Max Ole Elliger
Browse files
Options
Downloads
Plain Diff
Merge branch 'more-examples' into 'main'
More examples See merge request
!32
parents
3f5e008a
8fcb5d6b
No related branches found
Branches containing commit
Tags
comoex-v1.1.0
Tags containing commit
1 merge request
!32
More examples
Pipeline
#113602
passed
1 year ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Forall.v
+101
-0
101 additions, 0 deletions
src/Forall.v
src/SomeExamples.v
+46
-0
46 additions, 0 deletions
src/SomeExamples.v
with
147 additions
and
0 deletions
src/Forall.v
+
101
−
0
View file @
71ca25d6
...
...
@@ -163,3 +163,104 @@ Section forall_comm_ops.
End
forall_comm_iff_2
.
End
forall_comm_ops
.
Section
forall_ex_1
.
Variable
T
:
Set
.
Variable
P
:
T
->
T
->
Prop
.
Hypothesis
A1
:
exists
x
,
forall
y
,
P
x
y
.
Theorem
forall_ex_1_1
:
forall
y
,
exists
x
,
P
x
y
.
Proof
.
Admitted
.
End
forall_ex_1
.
Section
forall_ex_2
.
Variable
T
:
Set
.
Variables
P
Q
:
T
->
Prop
.
Variable
R
:
T
->
T
->
Prop
.
Hypothesis
A1
:
forall
x
,
exists
y
,
R
x
y
/
\
P
y
.
Hypothesis
A2
:
forall
x
,
P
x
->
Q
x
.
Theorem
forall_ex_2_1
:
forall
x
,
exists
y
,
R
x
y
/
\
Q
y
.
Proof
.
Admitted
.
End
forall_ex_2
.
Section
forall_ex_3
.
Variable
T
:
Set
.
Variables
P
Q
:
T
->
Prop
.
Variable
R
:
T
->
T
->
Prop
.
Hypothesis
A1
:
forall
x
y
z
,
(
R
x
y
/
\
R
x
z
)
->
R
y
z
.
Hypothesis
A2
:
forall
x
,
R
x
x
.
Hypothesis
A3
:
forall
x
,
exists
y
,
R
x
y
/
\
P
y
.
Theorem
forall_ex_3_1
:
forall
x
,
exists
y
,
R
y
x
/
\
P
y
.
Proof
.
Admitted
.
End
forall_ex_3
.
Section
forall_ex_4
.
Variable
T
:
Set
.
Variable
P
:
T
->
Prop
.
Variables
R
S
:
T
->
T
->
Prop
.
Hypothesis
A1
:
forall
x
y
,
S
x
y
->
P
y
.
Hypothesis
A2
:
forall
x
y
,
R
x
y
->
exists
z
,
S
z
y
.
Theorem
forall_ex_4_1
:
forall
x
y
,
R
x
y
->
P
y
.
Proof
.
Admitted
.
End
forall_ex_4
.
Section
forall_ex_5
.
Variable
T
:
Set
.
Variable
R
:
T
->
T
->
Prop
.
Hypothesis
A1
:
forall
x
,
exists
y
,
R
x
y
.
Hypothesis
A2
:
forall
x
y
z
,
(
R
x
y
/
\
R
y
z
)
->
R
x
z
.
Hypothesis
A3
:
forall
x
y
,
R
x
y
->
R
y
x
.
Theorem
forall_ex_5_1
:
forall
x
,
R
x
x
.
Proof
.
Admitted
.
End
forall_ex_5
.
Section
forall_ex_6
.
Variable
T
:
Set
.
Variable
z
:
T
.
Variable
P
:
T
->
Prop
.
Variable
R
:
T
->
T
->
Prop
.
Hypothesis
A1
:
forall
x
,
exists
y
,
R
x
y
.
Hypothesis
A2
:
forall
y
,
R
z
y
->
~
P
y
.
Theorem
forall_ex_6_1
:
~
forall
y
,
R
z
y
->
P
y
.
Proof
.
Admitted
.
End
forall_ex_6
.
Section
forall_ex_7
.
Variable
T
:
Set
.
Variable
P
:
T
->
T
->
Prop
.
Theorem
forall_ex_7_1
:
forall
x
,
exists
y
,
P
x
y
\
/
P
y
x
->
forall
x
,
(
exists
y
,
P
x
y
)
\
/
exists
y
,
P
y
x
.
Proof
.
Admitted
.
End
forall_ex_7
.
This diff is collapsed.
Click to expand it.
src/SomeExamples.v
+
46
−
0
View file @
71ca25d6
...
...
@@ -103,3 +103,49 @@ Section se_3.
Admitted
.
End
se_3
.
Section
se_4
.
Variables
p1
p2
p3
:
Prop
.
Hypothesis
A1
:
(
p1
->
p2
)
/
\
(
p2
->
p3
)
/
\
(
p3
->
~
p1
).
Theorem
se_4_1
:
~
p1
.
Proof
.
Admitted
.
End
se_4
.
Section
se_5
.
Variables
p1
p2
:
Prop
.
Hypothesis
A1
:
(
~
p1
/
\
p2
)
\
/
(
~
p2
/
\
p1
).
Theorem
se_5_1
:
~
(
p1
/
\
p2
).
Proof
.
Admitted
.
End
se_5
.
Section
se_6
.
Variables
p1
p2
:
Prop
.
Hypothesis
A1
:
(
p1
->
(
p1
->
p2
))
->
~
p1
.
Theorem
se_6_1
:
~
(
p1
/
\
p2
).
Proof
.
Admitted
.
End
se_6
.
Section
se_7
.
Variables
p1
p2
:
Prop
.
Theorem
se_7_1
:
((
p1
->
~
(
p1
->
p2
))
->
~
(
p1
->
p1
))
->
p2
.
Proof
.
Admitted
.
End
se_7
.
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