(* Takes a constellation, a ray and a (ray,ray) list and extracts rays from stars number i (respectively j) that are not ri (respectively rj) when ri (respectively rj) isn't in the prob list *)
(* Takes a constellation, a ray and a (ray,ray) list and extracts rays from stars number i (respectively j) that are not ri (respectively rj) when ri (respectively rj) isn't in the prob list *)
letstar_filterconst((i,j),(ri,rj))prob=
letstar_filterconst((i,j),(ri,rj))prob=
let(prob_a,prob_b)=List.splitprobin
let(prob_a,prob_b)=List.splitprobin
(ifList.memriprob_athen
(ifList.memriprob_athen[]
[]
else(List.filter(funa->a<>ri)(get_starconsti))
else(List.filter(funa->a<>ri)(get_starconsti))
)@(
)@(
ifList.memrjprob_bthen
ifList.memrjprob_bthen[]
[]
else(List.filter(funa->a<>rj)(get_starconstj))
else(List.filter(funa->a<>rj)(get_starconstj))
)
)
(* TODO faire un filtre post application, const_filter*)
(* convert the (ray,ray) list part of a link to an equation, converting its rays to terms *)
(* convert the (ray,ray) list part of a link to an equation, converting its rays to terms *)