I have a record type with a lot of fields:
Record r : Set :=
R {
field1 : nat;
field2 : nat;
field3 : nat;
...
field2137 : nat;
}
I would like to have a function that will update just one field in this record. In Haskell I would do it like this
update2019 record x = record {field2019 = x}
How can I perform such an action in Coq?