Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Commits
835d3d76
Commit
835d3d76
authored
2 years ago
by
Gregory Malecha
Committed by
Gregory Malecha
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use unicode and fix comment.
parent
a0d4deb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!368
Define [tele_arg] as a fixpoint
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/telescopes.v
+3
-2
3 additions, 2 deletions
tests/telescopes.v
theories/telescopes.v
+4
-3
4 additions, 3 deletions
theories/telescopes.v
with
7 additions
and
5 deletions
tests/telescopes.v
+
3
−
2
View file @
835d3d76
...
@@ -48,6 +48,7 @@ is essentially just a (dependent) product.
...
@@ -48,6 +48,7 @@ is essentially just a (dependent) product.
*)
*)
Definition
no_bump
@
{
u
}
(
t
:
tele
@
{
u
})
:
Type
@
{
u
}
:=
tele_arg
@
{
u
}
t
.
Definition
no_bump
@
{
u
}
(
t
:
tele
@
{
u
})
:
Type
@
{
u
}
:=
tele_arg
@
{
u
}
t
.
Lemma
texist_exist_universes
(
X
:
Type
)
(
P
:
TeleS
(
fun
_
:
X
=>
TeleO
)
->
Prop
)
:
(** This test would fail without [Unset Universe Minimization ToSet] in [telescopes.v]. *)
texist
P
<->
ex
P
.
Lemma
texist_exist_universes
(
X
:
Type
)
(
P
:
TeleS
(
λ
_
:
X
,
TeleO
)
→
Prop
)
:
texist
P
↔
ex
P
.
Proof
.
by
rewrite
texist_exist
.
Qed
.
Proof
.
by
rewrite
texist_exist
.
Qed
.
This diff is collapsed.
Click to expand it.
theories/telescopes.v
+
4
−
3
View file @
835d3d76
...
@@ -3,8 +3,9 @@ From stdpp Require Import options.
...
@@ -3,8 +3,9 @@ From stdpp Require Import options.
Local
Set
Universe
Polymorphism
.
Local
Set
Universe
Polymorphism
.
(* Without this flag, Coq minimizes some universes to [Set] when they
(** Without this flag, Coq minimizes some universes to [Set] when they
should not be, e.g. in [texist_exist]. *)
should not be, e.g. in [texist_exist].
See the [texist_exist_universes] test. *)
Local
Unset
Universe
Minimization
ToSet
.
Local
Unset
Universe
Minimization
ToSet
.
(** Telescopes *)
(** Telescopes *)
...
@@ -75,7 +76,7 @@ Lemma tele_arg_inv {TT : tele} (a : tele_arg TT) :
...
@@ -75,7 +76,7 @@ Lemma tele_arg_inv {TT : tele} (a : tele_arg TT) :
|
TeleS
f
=>
λ
a
,
∃
x
a'
,
a
=
TargS
x
a'
|
TeleS
f
=>
λ
a
,
∃
x
a'
,
a
=
TargS
x
a'
end
a
.
end
a
.
Proof
.
destruct
TT
;
destruct
a
;
eauto
.
Qed
.
Proof
.
destruct
TT
;
destruct
a
;
eauto
.
Qed
.
Lemma
tele_arg_O_inv
(
a
:
TeleO
)
:
a
=
()
.
Lemma
tele_arg_O_inv
(
a
:
TeleO
)
:
a
=
TargO
.
Proof
.
exact
(
tele_arg_inv
a
)
.
Qed
.
Proof
.
exact
(
tele_arg_inv
a
)
.
Qed
.
Lemma
tele_arg_S_inv
{
X
}
{
f
:
X
→
tele
}
(
a
:
TeleS
f
)
:
Lemma
tele_arg_S_inv
{
X
}
{
f
:
X
→
tele
}
(
a
:
TeleS
f
)
:
∃
x
a'
,
a
=
TargS
x
a'
.
∃
x
a'
,
a
=
TargS
x
a'
.
...
...
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