Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Numerical Analysis in Coq
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
Micaela Mayero
Numerical Analysis in Coq
Commits
904b122c
Commit
904b122c
authored
3 weeks ago
by
François Clément
Browse files
Options
Downloads
Patches
Plain Diff
Make pure aliases abbreviations.
Mv fun_ext2 stuff to Function.
parent
5155131b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10364
waiting for manual action
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Logic/logic_compl.v
+8
-29
8 additions, 29 deletions
Logic/logic_compl.v
Subsets/Function.v
+13
-0
13 additions, 0 deletions
Subsets/Function.v
with
21 additions
and
29 deletions
Logic/logic_compl.v
+
8
−
29
View file @
904b122c
...
...
@@ -62,53 +62,32 @@ From Coq Require Export ClassicalDescription ClassicalChoice.
From
Coq
Require
Export
IndefiniteDescription
.
Notation
fun_ext_rev
:=
(
equal_f
).
Notation
prop_ext
:=
(
propositional_extensionality
).
Notation
proof_irrel
:=
(
proof_irrelevance
).
Notation
classic_dec
:=
(
excluded_middle_informative
).
Notation
ex_EX
:=
(
constructive_indefinite_description
).
Section
Aliases
.
(
*
Make
functions
implicit
!
*
)
Lemma
fun_ext
:
forall
{
T1
T2
:
Type
}
{
f
g
:
T1
->
T2
}
,
(
forall
x1
,
f
x1
=
g
x1
)
->
f
=
g
.
Proof
.
intros
T1
T2
;
exact
functional_extensionality
.
Qed
.
Lemma
fun_ext_rev
:
forall
{
T1
T2
:
Type
}
{
f
g
:
T1
->
T2
}
,
f
=
g
->
forall
x1
,
f
x1
=
g
x1
.
Proof
.
intros
T1
T2
f
g
;
exact
equal_f
.
Qed
.
Lemma
fun_ext2
:
forall
{
T1
T2
T3
:
Type
}
{
f
g
:
T1
->
T2
->
T3
}
,
(
forall
x1
x2
,
f
x1
x2
=
g
x1
x2
)
->
f
=
g
.
Proof
.
intros
;
do
2
(
apply
fun_ext
;
intro
);
easy
.
Qed
.
Lemma
fun_ext2_rev
:
forall
{
T1
T2
T3
:
Type
}
{
f
g
:
T1
->
T2
->
T3
}
,
f
=
g
->
forall
x1
x2
,
f
x1
x2
=
g
x1
x2
.
Proof
.
intros
;
do
2
apply
fun_ext_rev
;
easy
.
Qed
.
Lemma
prop_ext
:
forall
(
P
Q
:
Prop
),
P
<->
Q
->
P
=
Q
.
Proof
.
exact
propositional_extensionality
.
Qed
.
Lemma
proof_irrel
:
forall
(
H
:
Prop
)
(
P
Q
:
H
),
P
=
Q
.
Proof
.
exact
proof_irrelevance
.
Qed
.
Lemma
classic_dec
:
forall
(
P
:
Prop
),
{
P
}
+
{~
P
}
.
Proof
.
exact
excluded_middle_informative
.
Qed
.
(
*
Make
types
implicit
!
*
)
Lemma
unique_choice
:
forall
{
A
B
:
Type
}
(
R
:
A
->
B
->
Prop
),
(
forall
x
,
exists
!
y
,
R
x
y
)
->
exists
f
,
forall
x
,
R
x
(
f
x
).
Proof
.
exact
unique_choice
.
Qed
.
Lemma
ex_EX
:
forall
{
T
:
Type
}
(
P
:
T
->
Prop
),
(
exists
x
,
P
x
)
->
{
x
|
P
x
}
.
Proof
.
exact
constructive_indefinite_description
.
Qed
.
End
Aliases
.
Tactic
Notation
"fun_ext"
:=
apply
fun_ext
;
intro
.
Tactic
Notation
"fun_ext"
ident
(
x
)
:=
apply
fun_ext
;
intros
x
.
Tactic
Notation
"fun_ext"
ident
(
x
)
ident
(
y
)
:=
fun_ext
x
;
fun_ext
y
.
Tactic
Notation
"fun_ext2"
:=
apply
fun_ext2
;
intro
;
intro
.
Tactic
Notation
"fun_ext2"
ident
(
x
)
ident
(
y
)
:=
fun_ext
x
y
.
Section
Logic_Def
.
...
...
This diff is collapsed.
Click to expand it.
Subsets/Function.v
+
13
−
0
View file @
904b122c
...
...
@@ -161,6 +161,16 @@ Lemma fun_ext_contra_equiv :
forall
{
f
g
:
U1
->
U2
}
,
f
<>
g
<->
exists
x1
,
f
x1
<>
g
x1
.
Proof
.
intros
;
split
;
[
apply
fun_ext_contra
|
apply
fun_ext_contra_rev
].
Qed
.
Lemma
fun_ext2
:
forall
{
T1
T2
T3
:
Type
}
{
f
g
:
T1
->
T2
->
T3
}
,
(
forall
x1
x2
,
f
x1
x2
=
g
x1
x2
)
->
f
=
g
.
Proof
.
intros
;
do
2
(
apply
fun_ext
;
intro
);
easy
.
Qed
.
Lemma
fun_ext2_rev
:
forall
{
T1
T2
T3
:
Type
}
{
f
g
:
T1
->
T2
->
T3
}
,
f
=
g
->
forall
x1
x2
,
f
x1
x2
=
g
x1
x2
.
Proof
.
intros
;
do
2
apply
fun_ext_rev
;
easy
.
Qed
.
End
Prop_Facts0
.
...
...
@@ -172,6 +182,9 @@ Ltac fun_unfold :=
Ltac
fun_auto
:=
fun_unfold
;
subset_auto
.
Tactic
Notation
"fun_ext_auto"
ident
(
x
)
:=
fun_ext
x
;
fun_auto
.
Tactic
Notation
"fun_ext2"
:=
apply
fun_ext2
;
intro
;
intro
.
Tactic
Notation
"fun_ext2"
ident
(
x
)
ident
(
y
)
:=
fun_ext
x
y
.
Tactic
Notation
"fun_ext2_auto"
ident
(
x
)
ident
(
y
)
:=
fun_ext2
x
y
;
fun_auto
.
...
...
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