Re: [Hol-info] Element assignment in structures

2018-12-17 Thread Michael.Norrish
HOL is not an imperative language, so you can’t “assign” fields of a record. However, you can write things like My_record with <| b := 3; rx := x’; distance := 10.6 |> to denote a chromosome value that is the same as My_record except that fields b, rx and distance have different values.

[Hol-info] Element assignment in structures

2018-12-17 Thread ????????
Hello! I defined the following data structure in HOL4. Datatype ` chromosome = <| r: num; b: num; distance: real;