Skip to content

Commit

Permalink
revert notation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Apr 9, 2024
1 parent f2c68ca commit 4a91f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SciLean/Core/Notation/CDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ macro_rules
| `(∂ $x:term, $b) => `(∂ (fun $x => $b))
| `(∂ $x:term := $val:term, $b) => `(∂ (fun $x => $b) $val)
| `(∂ $x:term : $type:term, $b) => `(∂ fun $x : $type => $b)
-- | `(∂ ($b:diffBinder), $f) => `(∂ $b, $f)
| `(∂ ($b:diffBinder), $f) => `(∂ $b, $f)

macro_rules
-- in some cases it is still necessary to call fun_trans multiple times
Expand Down
2 changes: 1 addition & 1 deletion SciLean/Core/Notation/FwdDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ macro_rules
| `(∂> $x:term := $val:term, $b) => `(∂> (fun $x => $b) $val)
| `(∂> $x:term : $type:term, $b) => `(∂> fun $x : $type => $b)
| `(∂> $x:term := $val:term ; $dir:term, $b) => `(∂> (fun $x => $b) $val $dir)
-- | `(∂> ($b:diffBinder), $f) => `(∂> $b, $f)
| `(∂> ($b:diffBinder), $f) => `(∂> $b, $f)


macro_rules
Expand Down

0 comments on commit 4a91f8f

Please sign in to comment.