coquedille icon indicating copy to clipboard operation
coquedille copied to clipboard

Fix identation for nested pattern matching / recursion

Open pedrotst opened this issue 5 years ago • 1 comments

pedrotst avatar Mar 25 '20 14:03 pedrotst

As an example, consider the translation of eqb

eqb : Π n : nat . Π m : nat . bool = λ n : nat . λ m : nat . μ eqb. n @(λ n : nat . Π m : nat . bool) {
  | O ➔ λ m : nat . μ' m @(λ m' : nat . bool) {
  | O ➔ true
  | S n' ➔ false
 }
  | S n' ➔ λ m : nat . μ' m @(λ m' : nat . bool) {
  | O ➔ false
  | S m' ➔ eqb n' m'
 }
 } m.

this is hideous

pedrotst avatar Mar 25 '20 14:03 pedrotst