Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftrans applies incorrect rule #25

Open
lecopivo opened this issue Oct 3, 2023 · 0 comments
Open

ftrans applies incorrect rule #25

lecopivo opened this issue Oct 3, 2023 · 0 comments

Comments

@lecopivo
Copy link
Owner

lecopivo commented Oct 3, 2023

ftrans fails in the following example with the error

failed to synthesize
   SemiInnerProductSpace K (X → X)

which is indication that is has to be applying incorrect rule

example
  (f : Y → Z) (g : X → Y) 
  (hf : HasAdjDiff K f) (hg : HasAdjDiff K g)
  : revDerivUpdate K (fun x : X => f (g x))
    = 
    fun x =>
      let ydg := revDerivUpdate K g x
      let zdf := revDerivUpdate K (fun x' => f (ydg.1 + semiAdjoint K (ydg.2 · 1 0) (x' - x))) x
      zdf := 
by
  have ⟨_,_⟩ := hf
  have ⟨_,_⟩ := hg
  unfold revDerivUpdate
  funext _; 
  ftrans -- error
lecopivo added a commit that referenced this issue Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant