Skip to content

Commit

Permalink
fix: add matrix notation stub for mathport (#3429)
Browse files Browse the repository at this point in the history
Part of the implementation of mathport support for the `matrix.notation`  user notation, see [Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/!4.233215.20and.20data.2Ematrix.2Enotation/near/349219891).
  • Loading branch information
digama0 committed Apr 13, 2023
1 parent 94c39a2 commit dfbb8aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Mathlib/Mathport/Syntax.lean
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,12 @@ namespace Command
/- E -/ syntax (name := assertNoInstance) "assert_no_instance " term : command

end Command

namespace Term

/- M -/ syntax (name := matrixNotation)
"!![" sepBy1(term,+,?, ";", "; ", allowTrailingSep) "]" : term
/- M -/ syntax (name := matrixNotationRx0) "!![" ";"* "]" : term
/- M -/ syntax (name := matrixNotation0xC) "!![" ","+ "]" : term

end Term

0 comments on commit dfbb8aa

Please sign in to comment.