sv_pscale.miaou
← Le code · src/outil/miaou/sv_pscale.miaou · 22 lignes
(node sv_pscale
(params (c Grand) (p Po))
(returns Po)
(intent "le polynôme c × p, comme q_pscale de l'outil inter")
(origin "phase 8f6 : notre solveur en miaou, d'après le solveur (q_…) de l'outil inter")
(effects)
(uses sv_pcomb gr_de_nat)
(requires
true)
(ensures
true)
(examples
(ex ((record Grand (neg false) (mots (list 1))) (record Po (k (record Grand (neg true) (mots (list 5)))) (ts (list (record Tm (v 0) (c (record Grand (neg false) (mots (list 1)))))))))
(record Po
(k (record Grand (neg true) (mots (list 5))))
(ts (list (record Tm (v 0) (c (record Grand (neg false) (mots (list 1)))))))))
(ex ((record Grand (neg false) (mots (list))) (record Po (k (record Grand (neg true) (mots (list 5)))) (ts (list (record Tm (v 0) (c (record Grand (neg false) (mots (list 1)))))))))
(record Po (k (record Grand (neg false) (mots (list)))) (ts (list)))))
(equivalence exact)
(body.high
(sv_pcomb c p (gr_de_nat 0) p))
(end node sv_pscale))