This is an archived version pinned as of the submission of my master's thesis. An up-to-date version may be found online.

Multiset-indexed dependent products of types

module trees.multiset-indexed-dependent-products-of-types where
Imports
open import elementary-number-theory.natural-numbers

open import foundation.universe-levels

open import trees.multisets
open import trees.w-types

Idea

Consider a multiset M. Then M can be seen as a tower of type families, via the inclusion from the type of all multisets, which are the well-founded trees, into the type of all trees.

This leads to the idea that we should be able to take the iterated dependent product of this tower of type families.

Definitions

The iterated dependent product of types indexed by a multiset

iterated-Π-𝕍 : {l : Level}    𝕍 l  UU l
iterated-Π-𝕍 zero-ℕ (tree-𝕎 X Y) = X
iterated-Π-𝕍 (succ-ℕ n) (tree-𝕎 X Y) = (x : X)  iterated-Π-𝕍 n (Y x)