Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit arguments and := in Record #13165

Closed
artagnon opened this issue Oct 9, 2020 · 5 comments · Fixed by #13166
Closed

Implicit arguments and := in Record #13165

artagnon opened this issue Oct 9, 2020 · 5 comments · Fixed by #13166
Milestone

Comments

@artagnon
Copy link
Contributor

artagnon commented Oct 9, 2020

Running Coq 8.13+alpha.

Record Cubical {n : nat} :=
{
  csp {n'} (Hn' : n' <= n) : Type@{l'} ;
  hd {n'} {Hn' : S n' <= n} : csp Hn' -> csp (⇓ Hn') ;
  boxlayer {n' p} {Hn' : n' <= n} (Hp : p <= n') (D : csp Hn'):
    {b : Type@{l} & b -> Type@{l}} ;
  box {n' p} {Hn' : n' <= n} (Hp : p <= n') (D : csp Hn') := (boxlayer Hp D).1 ;
  layer {n' p} {Hn' : n' <= n} (Hp : p <= n') (D : csp Hn') := (boxlayer Hp D).2 ;
  tl {n'} {Hn' : S n' <= n} (D : csp Hn') : box (le_refl n') (hd D) -> Type@{l} ;
}.

When trying to define tl, the argument le_refl n' to box errors out: I expected to be passing Hp, the first non-implicit argument, while it's expecting a type nat.

@ppedrot
Copy link
Member

ppedrot commented Oct 9, 2020

Your snippet is not self-contained.

@SkySkimmer
Copy link
Contributor

Record bla := {
  f {A} (a:A) := a;
  xbar : forall A (a:A), f a = a; (* error a has type A but expected Type *)
}.

@herbelin
Copy link
Member

herbelin commented Oct 9, 2020

@SkySkimmer: are you working on it?

@SkySkimmer
Copy link
Contributor

No

@herbelin
Copy link
Member

herbelin commented Oct 9, 2020

Thanks, just wanted to be sure that we would not work the both of us on it. I'll submit something then.

@coqbot-app coqbot-app bot added this to the 8.13+beta1 milestone Oct 19, 2020
coqbot-app bot added a commit that referenced this issue Oct 19, 2020
…f record types not taken into account

Reviewed-by: SkySkimmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants