Skip to content

Commit

Permalink
clean up ML module
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Dec 4, 2023
1 parent 09f2449 commit f4195e2
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 356 deletions.
6 changes: 3 additions & 3 deletions SciLean/Data/ArrayType/Notation.lean
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ abbrev introElemNotation {Cont Idx Elem} [ArrayType Cont Idx Elem] [ArrayTypeNot
:= introElem (Cont := arrayTypeCont Idx Elem) f

open Lean.TSyntax.Compat in
macro "⊞ " xs:Lean.explicitBinders " => " b:term:51 : term => Lean.expandExplicitBinders ``introElemNotation xs b
macro "⊞ " x:term " => " b:term:51 : term => `(introElem fun $x => $b)

@[app_unexpander introElemNotation]
def unexpandIntroElemNotation : Lean.PrettyPrinter.Unexpander
| `($(_) fun $x:ident => $b) =>
`(⊞ $x:ident => $b)
| `($(_) fun $x:term => $b) =>
`(⊞ $x:term => $b)
| _ => throw ()


Expand Down
Loading

0 comments on commit f4195e2

Please sign in to comment.