Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 3.13 KB

TODO.md

File metadata and controls

80 lines (54 loc) · 3.13 KB

Performance

  • change eq_kername to use comparison rather than eq_dec, check we're not using eq_dec unnecessarily so that erasure/typechecking runs faster inside Coq (and we avoid useless sumbool to bool conversions in ML/extracted code)

Small stuffs

  • assumption_context should be a boolean function.

  • Make wf Σ wf_ext Σ some typeclasses (as at the begining of PCUICCanonicity) et changer les : wf Σ -> en {wfΣ : wf Σ} partout, ce qui éviterait bien des conditions de bord triviales

  • Replace all eauto with pcuic by pcuic or somehing like this and make this tactic available everywhere.

  • Recompile the dpd-graph.

  • Remove funext axiom from PCUICConfluence.

  • Remove ProofIrrelevance axiom everywhere.

  • Clean Derives: always derive Siganture, NoConf, ... directly after the definition of the inductive. (To avoid doing it several times.) (Mostly done)

Medium Projects

  • Change Template-PCUIC translations to translate casts to applications of identity functions (vm_cast, default_cast etc) to make the back and forth the identity and derive weakening/substitution/etc.. from the PCUIC theorems. Template -> PCUIC -> Template (in an environment extended with the identity functions) becomes the identity, by translating back the cast function applications. PCUIC -> Template -> PCUIC is also the identity, even by special casing on cast functions

Big projects

  • Cleaner version of the system for writing term manipulation and prooofs about them.

    • Develop a cleaned-up syntax profiting from Coq's type system, e.g.:
      • HOAS representation of binding or first-order well-scoped binding representation (using fin for example)
      • Well-bounded global references?
      • Using vectors and fin for fixpoint bodies lists and index (no ill-formed fixpoints by construction)
    • Develop a proof mode for MetaCoq typing, à la Iris proof mode
  • Refine the longest-simple-path algorithm on universes with the Bender & al algorithm used in Coq, extended with edges of negative weight. Alternatively prove the spec for that algorithm. Refinement might be easier: it amounts to show that the new algorithm calculates the longest simple path between two universes.

  • Verify parsing and printing of terms / votour

  • Primitive projections: we could be more relaxed on the elimination sort of the inductive. If it is e.g. InProp, then all projections to types in Prop should be definable. Probably not very useful though because if the elimination is restricted then it means some Type is in the constructor and won't be projectable.

  • Verify the substitution calculus of P.M Pédrot using skewed lists at coq/coq#13537 and try to use it to implement efficient explicit substitutions.

Website

Put a demo using JS-coq on the webiste

Eta

Template <-> PCUIC

  • Prove that: Γ |- t : A iff [Γ] |- [t] : [A]

This is not obvious because we don't have that [ [t] ]⁻¹ = t. The casts are changed into β-redexes, hence it is only β-convertible and not a syntactical equality.

  • Deduce that we have weakening and substitution lemmas in Template from those of PCUIC.