Skip to content

cast vs subst in Data.Fin #1610

@conal

Description

@conal

I’m working on a collection of proofs for submission to Data.Fin.Properties. I can phrase & prove via cast or via subst Fin. For my own use, I need the subst versions, to fit into a setting more general than Fin. If cast is a better fit for Fin, I’m happy to adapt via an equivalence property cast≗subst : ∀ {m n} (m≡n : m ≡ n) → cast m≡n ≗ subst Fin m≡n (which could also go into Data.Fin.Properties).

Going with cast, I also need some properties of cast corresponding to ones about subst in Relation.Binary.PropositionalEquality.Properties, such as subst-sym-subst (which I’m calling cast-sym-cast for now). I don’t imagine we’d want to replicate all subst properties for cast, though.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions