intellij-arend icon indicating copy to clipboard operation
intellij-arend copied to clipboard

Generate signatures for field implementations in instances

Open valis opened this issue 5 years ago • 1 comments

Signature of functions defined in instances (and other functions) must be specified explicitly. It is possible to generate them automatically. This can be implemented as an intention.

Before:

\class D
  | func (x y : Nat) : Nat

\instance D-inst : D
  | func => {?}

After:

\instance D-inst : D
  | \infix 3 func (x y : Nat) : Nat => {?}

valis avatar Feb 10 '20 21:02 valis

Is it ok that the example in "after" does not typecheck correctly (it reports the error "elim expected got =>")

sxhya avatar Apr 30 '20 23:04 sxhya