Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CoqOfRust/plonky3/air/links/air.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Require Import CoqOfRust.CoqOfRust.
Require Import CoqOfRust.links.M.

(*
pub trait BaseAir<F>: Sync {
/// The number of columns (a.k.a. registers) in this AIR.
fn width(&self) -> usize;

fn preprocessed_trace(&self) -> Option<RowMajorMatrix<F>> {
None
}
}
*)
Module BaseAir.
Definition trait (Self F : Set) (H_Self : Link Self) (H_F : Link F) : TraitMethod.Header.t :=
("BaseAir", [], [Φ F], Φ Self).

Definition Run_width (Self F : Set) {H_Self: Link Self} {H_F : Link F} : Set :=
TraitMethod.C (trait Self F H_Self H_F) "width" (fun method =>
forall (self : Ref.t Pointer.Kind.Ref Self),
Run.Trait method [] [] [ φ self ] Usize.t
).

End BaseAir.
Loading