Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Mar 9, 2024
2 parents 914eee2 + bbd3a39 commit 3cc8c3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SciLean/Tactic/Autodiff.lean
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ simproc_decl lift_lets_simproc (_) := fun e => do

-- todo: add option, discharger, only and [...] syntax
macro "autodiff" : conv =>
`(conv| fun_trans (config:={zeta:=false,singlePass:=true}) (disch:=sorry) only [ftrans_simp,lift_lets_simproc])
`(conv| (fun_trans (config:={zeta:=false,singlePass:=true}) (disch:=sorry) only [ftrans_simp,lift_lets_simproc];
simp (config:={zeta:=false,failIfUnchanged:=false}) only [ftrans_simp,lift_lets_simproc]))

macro "autodiff" : tactic =>
`(tactic| fun_trans (config:={zeta:=false,singlePass:=true}) (disch:=sorry) only [ftrans_simp,lift_lets_simproc])
`(tactic| (fun_trans (config:={zeta:=false,singlePass:=true}) (disch:=sorry) only [ftrans_simp,lift_lets_simproc];
simp (config:={zeta:=false,failIfUnchanged:=false}) only [ftrans_simp,lift_lets_simproc]))

0 comments on commit 3cc8c3e

Please sign in to comment.