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

Filtering with a Migration #169

Open
jpfairbanks opened this issue Aug 23, 2024 · 1 comment
Open

Filtering with a Migration #169

jpfairbanks opened this issue Aug 23, 2024 · 1 comment

Comments

@jpfairbanks
Copy link
Member

@KevinDCarlson I was reading the tests and I don't see why this migration filters things. Shouldn't I have to assert that d == l somewhere?

#Filter impossible edges out of a mechanical linkage
M = @migration SchMechLink SchMechLink begin
  V => V
  E => @join begin
          e :: E
          L :: Len
          (l:eL) :: (x->len(x)^2)
          (d:eL) :: (x->sum((pos(src(x))-pos(tgt(x))).^2))
      end
  Pos => Pos
  Len => Len
  src => src(e)
  tgt => tgt(e)
  pos => pos
  len => len(e)
end
@KevinDCarlson
Copy link
Collaborator

It's a conjunctive migration, so when you run it it takes the limit of that diagram E's mapping to, i.e. precisely the equalizer of d,l!

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

2 participants