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

Subset type translation #1

Open
hfehrmann opened this issue Jul 6, 2017 · 0 comments
Open

Subset type translation #1

hfehrmann opened this issue Jul 6, 2017 · 0 comments

Comments

@hfehrmann
Copy link

Same old, same old (for the image)

I was translating things with the plugin using specifically exceptions. The problem arised when translated the following terms.

Inductive Hsig (A: Type) (P: A -> Type) : Type :=
| Hexist: forall (a : A), P a -> Hsig A P.

Arguments Hexist {_ _}.

Definition proj1_Hsig {A : Type} {P : A -> Type} (h : Hsig A P ) : A :=
match h with
| Hexist a Pa => a
end.

Definition proj2_Hsig (A : Type) (P : A -> Type) (h : Hsig A P) : P (proj1_Hsig h) :=
match h with
| Hexist a Pa => Pa
end.

--o--
Effect Translate Hsig using Exception.
-x-> Effect Translate proj1_Hsig using Exception.

Reported as suggested in the image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant