Skip to content
Snippets Groups Projects

Jonas/more polymorphism

Merged Jonas Kastberg requested to merge jonas/more_polymorphism into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
24
25 (** An eliminator for elements of [ktele_fun].
26 We use a [fix] because, for some reason, that makes stuff print nicer
27 in the proofs in iris:bi/lib/telescopes.v *)
28 Definition ktele_fold {Σ X Y} {kt : ktele Σ}
29 (step : {k}, (lty Σ k Y) Y) (base : X Y) : (kt -k> X) Y :=
30 (fix rec {kt} : (kt -k> X) Y :=
31 match kt as kt return (kt -k> X) Y with
32 | KTeleO => λ x : X, base x
33 | KTeleS b => λ f, step (λ x, rec (f x))
34 end) kt.
35 Arguments ktele_fold {_ _ _ !_} _ _ _ /.
36
37 (** A sigma-like type for an "element" of a telescope, i.e. the data it *)
38 (* takes to get a [T] from a [kt -t> T]. *)
39 Inductive ltys {Σ} : ktele Σ Type :=
  • Jonas Kastberg added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Jonas Kastberg unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Jonas Kastberg mentioned in commit 860d808b

    mentioned in commit 860d808b

  • Please register or sign in to reply
    Loading