Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:24:43+00:00 2026-06-15T22:24:43+00:00

In COQ the type prod (with one constructor pair) corresponds to cartesian product and

  • 0

In COQ the type prod (with one constructor pair) corresponds to cartesian product and the type sig (with one constructor exist) to dependent sum but how is described the fact that the cartesian product is a particular case of dependent sum? I wonder there is a link between prod and sig, for instance some definitional equality but I don’t find it explicitely in the reference manual.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:24:45+00:00Added an answer on June 15, 2026 at 10:24 pm

    As a matter of fact, the type prod is more akin to sigT than sig:

    Inductive prod (A B : Type) : Type :=
      pair : A -> B -> A * B
    
    Inductive sig (A : Type) (P : A -> Prop) : Type :=
      exist : forall x : A, P x -> sig P
    
    Inductive sigT (A : Type) (P : A -> Type) : Type :=
      existT : forall x : A, P x -> sigT P
    

    From a meta-theoretic point of view, prod is just a special case of sigT where your snd component does not depend on your fst component. That is, you could define:

    Definition prod' A B := @sigT A (fun _ => B).
    
    Definition pair' {A B : Type} : A -> B -> prod' A B := @existT A (fun _ => B).
    
    Definition onetwo := pair' 1 2.
    

    They can not be definitionally equal though, since they are different types. You could show a bijection:

    Definition from {A B : Type} (x : @sigT A (fun _ => B)) : prod A B.
    Proof. destruct x as [a b]. auto. Defined.
    
    Definition to {A B : Type} (x : prod A B) : @sigT A (fun _ => B).
    Proof. destruct x as [a b]. econstructor; eauto. Defined.
    
    Theorem fromto : forall {A B : Type} (x : prod A B), from (to x) = x.
    Proof. intros. unfold from, to. now destruct x. Qed.
    
    Theorem tofrom : forall {A B : Type} (x : @sigT A (fun _ => B)), to (from x) = x.
    Proof. intros. unfold from, to. now destruct x. Qed.
    

    But that’s not very interesting… 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to use coq as a programming language with dependent type. I created
I'm learning COQ and I'm stuck on one of the book exercises. The book
I'm having trouble importing definitions from modules in Coq. I'm new to Coq, but
I'm trying to use coq with ProofGeneral, but the built-in Verilog mode shadows *.v
How does one prove (forall x, P x /\ Q x) -> (forall x,
How can I in coq, prove that a function f that accepts a bool
Is .v for verification? validation? vamanos? Why not use a .coq extension?
I am learning Coq at school, and I have an assignment to do for
My proof scripts are giving me stupid type equalities like nat = bool or
I am having trouble understanding the principles of what a constructor is and how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.