Skip to Content.
Sympa Menu

ssreflect - Re: [ssreflect] Universe inconsistency with coq 8.5

Subject: Ssreflect Users Discussion List

List archive

Re: [ssreflect] Universe inconsistency with coq 8.5


Chronological Thread 
  • From: Florent Hivert <>
  • To: "" <>
  • Subject: Re: [ssreflect] Universe inconsistency with coq 8.5
  • Date: Mon, 14 Mar 2016 19:05:14 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:0hMtsBA4XCHzzi2xLvDLUyQJP3N1i/DPJgcQr6AfoPdwSP7zpMbcNUDSrc9gkEXOFd2CrakU1KyH7euxCSQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTokbHssMyDKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvCwZL8iQLJcAT86G2Uu/ojqswPCRE2O4GEdWyMYiFAAVxPe9hz0Wpr6rgP/rfA42S+APMSwTLYuWD3k4b09GzHyjyJSGTo+6mzRloRQjbxWug7p8zJ7xJTZZp3TFPtgc7nBVdcARCxPRJACBGR6HoqgYt5XXKI6NuFCotylqg==

Dear MathComp fans,

> Set Printing Universes.
>
> Require Import mathcomp.ssreflect.ssreflect.
> >From mathcomp Require Import ssrbool ssrfun ssrnat eqtype fintype choice
> >seq.
>
> Set Implicit Arguments.
> Unset Strict Implicit.
>
>
> (** * Shapes *)
> Definition is_in_shape sh r c := c < nth 0 sh r.
>
> (** ** A finite type [finType] for coordinate of boxes inside a shape *)
> Section BoxIn.
>
> Variable sh : seq nat.
>
> Definition is_box_in_shape b := is_in_shape sh b.1 b.2.
>
> Structure box_in : predArgType :=
> BoxIn {coord :> nat * nat; _ : is_box_in_shape coord}.

I should mention that the goal is to show that this sigma-type has a canonical
fintype structure. That's way I put predArgType here and not Set.

The full file is at :

https://github.com/hivert/Coq-Combi/blob/Coq-8.5/theories/Combi/partition.v


Cheers,

Florent



Archive powered by MHonArc 2.6.18.

Top of Page