File: PrintingTests.ref

package info (click to toggle)
coq-record-update 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 208 kB
  • sloc: makefile: 38; sed: 6
file content (19 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
setA = fun (x : X) (n : nat) => x <| B := n |>
     : X -> nat -> X
updateA =
fun (x : X) (n : nat) => x <| B ::= Nat.add n |>
     : X -> nat -> X
setXB = fun n : Nested => n <| anX; B := 3 |>
     : Nested -> Nested
updateXB = fun n : Nested => n <| anX; B ::= S |>
     : Nested -> Nested
1 goal
  
  ============================
  {| anX := {| A := 2; B := 3 |}; aNat := 4 |} =
  {| anX := {| A := 2; B := 3 |}; aNat := 4 |}
1 goal
  
  ============================
  {| anX := {| A := 3; B := 2 |}; aNat := 1 |} =
  {| anX := {| A := 3; B := 2 |}; aNat := 1 |}