fix: sigma notation precedence

This commit is contained in:
Leonardo de Moura 2020-12-26 09:35:40 -08:00
parent c94bb0fa2b
commit 4450b8567d
2 changed files with 10 additions and 2 deletions

View file

@ -83,8 +83,8 @@ macro "∃" xs:explicitBinders ", " b:term : term => expandExplicitBinders `Exis
macro "exists" xs:explicitBinders ", " b:term : term => expandExplicitBinders `Exists xs b
macro "Σ" xs:explicitBinders ", " b:term : term => expandExplicitBinders `Sigma xs b
macro "Σ'" xs:explicitBinders ", " b:term : term => expandExplicitBinders `PSigma xs b
macro:25 xs:bracketedExplicitBinders "×" b:term : term => expandBrackedBinders `Sigma xs b
macro:25 xs:bracketedExplicitBinders "×'" b:term : term => expandBrackedBinders `PSigma xs b
macro:35 xs:bracketedExplicitBinders "×" b:term:35 : term => expandBrackedBinders `Sigma xs b
macro:35 xs:bracketedExplicitBinders "×'" b:term:35 : term => expandBrackedBinders `PSigma xs b
syntax "funext " (colGt term:max)+ : tactic

View file

@ -0,0 +1,8 @@
def f1 : Nat × Bool → Nat
| _ => 0
def f2 : (α : Type) × α × α → Nat
| _ => 0
def f3 : (x : Nat) × Bool → Nat
| _ => 0