Growth.Growth.vitality_up_preserves_health: law of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/growth.bend as Growth Lines 167-174 of gralha-bendquest@0.1.0.0/growth.bend: https://jend.leeeet.dev/read.txt?path=gralha-bendquest@0.1.0.0/growth.bend&start_line=167&end_line=174 import Base import gralha-bendquest@0.1.0.0/game.bend as G law Growth.vitality_up_preserves_health: for +hp: U32 for +level: Nat for +vitality: Nat for +bonus: U32 for +ceiling: U32 for +valid: {G.Bq.Nat.le(U32.to_nat(hp), U32.to_nat(Growth.maximum(level, vitality, bonus, ceiling))) == True{} : Bool} {G.Bq.Nat.le(U32.to_nat(hp), U32.to_nat(Growth.maximum(level, Succ{vitality}, bonus, ceiling))) == True{} : Bool} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.Nat.le https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.le_succ_r https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/growth.bend&name=Growth.health_preserved https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/growth.bend&name=Growth.maximum https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/health.bend&name=Health.le_refl