xpile 0.1.615

Polyglot transpile workbench (Python/C/C++/Rust/Ruchy/Lean ↔ Rust/Ruchy/PTX/WGSL/SPIR-V) with provable contracts at every layer.
1
2
3
4
5
6
7
8
# PMAT-502h (Tranche 2): 1-arg min(xs)/max(xs) over a list[float].
# f64 lacks Ord, so the codegen uses a fold with f64::min / f64::max.
def lowest(xs: list[float]) -> float:
    return min(xs)


def highest(xs: list[float]) -> float:
    return max(xs)