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

unification issue with overly applied constant #22

Closed
lecopivo opened this issue Sep 11, 2023 · 0 comments
Closed

unification issue with overly applied constant #22

lecopivo opened this issue Sep 11, 2023 · 0 comments
Labels
bug Something isn't working fprop Tactic `fprop` that proves function properties ftrans Tactic `ftrans` for function transformation

Comments

@lecopivo
Copy link
Owner

Applying ftrans/fprop rules fails when a constant has more applied arguments then its normal number of arguments. For example Prof.fst has only one argument but Prod.fst (f,g) x has two applied arguments.

This issue is effectively a reverse situation of #9 when there are too few applied arguments

This should work

import SciLean

open SciLean

variable 
  {K : Type _} [IsROrC K]
  {α : Type _}

set_option trace.Meta.Tactic.simp.unify true
example (i : α) : IsDifferentiable K (fun (xy : (α → K) × (α → K)) => xy.fst i) := by fprop


set_option trace.Meta.Tactic.simp.unify true
example (i : α) 
  : cderiv K (fun (xy : (α → K) × (α → K)) => xy.fst i)
    =
    fun xy dxy => 
      dxy.1 i := by ftrans only
@lecopivo lecopivo added bug Something isn't working fprop Tactic `fprop` that proves function properties ftrans Tactic `ftrans` for function transformation labels Sep 11, 2023
lecopivo added a commit that referenced this issue Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fprop Tactic `fprop` that proves function properties ftrans Tactic `ftrans` for function transformation
Projects
None yet
Development

No branches or pull requests

1 participant